Just how best to manuscript picked tables and also information on SQL Server 2008?

The SQL Server Management Studio has the capacity create manuscripts. The trouble is that it damages on identification columns. I can not find a link to this bug presently yet Microsoft primarily proclaimed it as a "attribute".

This is specifically vital for:

  • Seedning a development or new examination setting; and also
  • Reproducing information from manufacturing back to examination or development.

Exists a very easy remedy to this that in fact functions?

2019-05-04 13:34:28
Source Share
Answers: 5

These 2 Red Gate devices are great for contrasting distinctions in between data sources and also scripting the architectural, or information, distinctions.

Red Gate Sql Compare - for framework contrast and also replication

Red Gate Sql Data Compare - for information contrast and also replication

They market a SQL package that includes both items I assume.

We've utilized them thoroughly to arrangement growth data sources and also replicate the adjustments back and more. You can additionally make use of the Data Compare one to sync information in between data sources.

2019-05-11 19:11:48

Have you attempted Microsoft's Database Publishing Wizard?
Please note : I just utilized it on SQL 2005 ... do not recognize if it collaborates with SQL 2008.

2019-05-10 20:48:00

There's 2 components to this inquiry.

First, just how do you copy/move information with identification areas?

If you're mosting likely to be doing this consistently in between 2 or even more web servers, you require to set up their identification seeds to be various. As an example, if you have 2 web servers sharing a table with a percentage of documents, you could set one up with an identification seed of 1, and also the various other with an identification seed of 1,000,000. One web server will certainly start its identification area at 1 and also rise, and also the various other at the greater number. Certainly, you still need to watch on this to see to it you do not wind up with overlapping documents.

After that, when you intend to replicate information from one web server to an additional, you prefix your inserts with the SET IDENTITY_INSERT command as referenced below :


Then you can momentarily disable the identification area so you can pump information from one web server to an additional.

Second, just how do you copy/move information as a whole?

There's a number of means to do this :

  • SQL Server replication - can instantly sync information in between numerous web servers. It's constructed right into the item, and also it's adaptable, yet it's a discomfort in the back to set up and also take care of. It's except syncing dev/test settings like you're seeking.
  • Scripting with SQL Server Management Studio - jobs, yet it does not have adaptability, and also it's a hand-operated discomfort in the back also.
  • Data/schema contrasts with 3rd event items - devices like Toad for SQL Server will certainly contrast schemas and also information in between 2 web servers and also bring 'em in sync. (Disclaimer : I benefit Quest, the manufacturers of Toad.)

If you're relocating information in between manufacturing & dev/test, after that recover the manufacturing information onto your dev/test web server as an additional database name, and afterwards do your database synchronizes there. It'll be much faster, it will not influence your manufacturing box, and also if you do glitch (like sync information the upside-down) it will not ravage manufacturing.

2019-05-10 15:05:11

I have not totally assessed this device, yet have a look at it. It's free when I downloaded it (it still is, i think)


2019-05-08 01:55:10

Scriptio functioned well with SQL Server 2005 and also is from SQL Server MVP Bill Graziano. It resembles you'll need to do a repair and also recompile for SQL Server 2008, however.

If you're seeking 3rd event devices, Red Gate's SQL Compare is wonderful (complete disclosure - I'm a Friend of Red Gate).

2019-05-08 01:18:49