Microsoft
Software
Hardware
Network
Question : How to copy / replace tables in MS SQL Server Management Studio 2005?
I develop against a test database and then move my changes to a live database - as probably do 95% of the rest of you out there! Back in the good ole days in previous versions of Enterprise manager, this was as simple as running the Export Data wizard, selecting your tables, telling it to copy indexes and PKs, and to replace the existing table.
But no - MS seems to have messed all this up in SQL MS 2005... or at least I can't figure out how to do it. When I run the export wizard it will not create any indexes or PKs on new tables, and if the old table does not match the structure of the current table, it just decides to ignore the new columns. Now if my "drop destination table first" option was not greyed out - that might work but I have never actually see it available.
How in the heck do we accomplish this simple, routine function with SQL 2005 without creating scripts, and then going back and exporting the data to the new tables. I have done this but this is a real PITA where for years it was a 2 minute point and click exercise.
Am I missing something or did Microsoft really mess this up?
Answer : How to copy / replace tables in MS SQL Server Management Studio 2005?
>>How in the heck do we accomplish this simple, routine function with SQL 2005 without creating scripts,<<
You will find most professional shops use something like Red-Gate's SQL Compare to achieve this. It is a snap with this tool.
Random Solutions
How do I export a Flash scene to an image format via ActionScript?
When printing from Outlook E-mail Print is VERY small
MS-SQL (msde) backup, restore, import, export questions
Move /srv on RHEL5 backup server to separate LVM LV
Access Return to Original Form Color
Local shared profile
compare two columns then match the text and cell colour
HP BIOS Upgrade Website Confusion
Flash player will not work in IE6
/3GB on Enterprise server with 16GB of RAM