|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, July 13, 2005 10:53 AM
Points: 98,
Visits: 1
|
|
I was thinking in terms of using DTS to transfer and manage all the files created by the scripting process.
-Isaiah
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Monday, April 25, 2011 1:09 AM
Points: 73,
Visits: 68
|
|
I guess the issue here is 'you get what you pay for' - this is a great article and provides an excellent (and free!) way to version your databases. You could even do a little more scripting and push the scripts into a SourceSafe project incrementally every night. i.e check everything out and then overlay the scripts on disk with the newly scripted DB. Then check it all back in, add and new scripts and delete any that are now missing and you have an audit trail of what changed on your development/test/production database that day. However, this won't tell you who changed things and, crucially, why. For a full change management process for SQL Server code I recommend you take a look at DB Ghost (www.dbghost.com). It can compare databases, build databases from drop/create scripts under source control (with no dependency issues) and can script out entire databases (including permissions!). All this can be run from the command line as well as the UI to acheive a fully automated process. Having the developers modify the drop/create scripts in source control means that the DB Ghost Process is perfectly aligned with configuration management best principles (who changed what, why and when) and is therefore also a huge step towards Sarbanes Oxley / HIPAA / BASEL II compliance etc. Once you've used it you'll wonder why no one thought of it before. - Malcolm
Malcolm DB Ghost - Build, compare and synchronize from source control = Database Change Management for SQL Server www.dbghost.com
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Wednesday, April 03, 2013 8:23 AM
Points: 966,
Visits: 927
|
|
One thing I have noticed with SCPTXFR is that it changes the name of most of my Primary Keys. Example: Source database PK Index: PK_tblBox_BoxID Dest database PK index: PK__tblBox__1A69E950 I'd like to retain the descriptive names. Does anyone know a way to accomplish this? Chris
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, March 13, 2012 9:34 AM
Points: 141,
Visits: 61
|
|
I don't unfortunately Chris. However, from memory, I think it's replacing the name of the primary key with its objectid. Quite why MS did this I don't know. Jon.
Jon
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, January 14, 2013 5:42 PM
Points: 6,
Visits: 181
|
|
Thank you for the article; very helpful. Also a minor discrepancy: In the introduction to Real World Examples it states "NB: All examples use a database server called DEVSVR." but some examples use svdb3
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, June 12, 2008 3:47 PM
Points: 1,
Visits: 5
|
|
| Any idea why Enterprise Manager generates extra blank lines when generating scripts? After several cycles of scripting and rebuilding a db, there is a lot of white space in the script.
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 9:18 AM
Points: 772,
Visits: 1,825
|
|
You said "although it appears to be missing in SQL Server 2005 beta." While that might be true it seems to be missing from the release version as well. Could this be because it is not compatible with some of the new objects?
ATB
Charles Kincaid
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, April 29, 2013 5:56 PM
Points: 6,
Visits: 150
|
|
ApexSQL Script is the best for doing this type of this. Correct dependency order, scripting, custom tags + much more. Great product. Great support.
http://www.apexsql.com/sql_tools_script.asp
Rod
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, August 29, 2007 3:35 PM
Points: 1,
Visits: 1
|
|
| I'm trying to use the sql 2000 version of scptxfr on sql 2005 however the script seems to keep running for days in databases where there are a lot of dependencies. Has anyone else experienced this or knows of a workaround?
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 2:46 AM
Points: 41,
Visits: 148
|
|
Is it me ?
I get all sorts of spurious errors if the command string is not all on one line.
|
|
|
|