Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

error Expand / Collapse
Author
Message
Posted Wednesday, January 23, 2013 2:05 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Saturday, February 9, 2013 6:00 AM
Points: 27, Visits: 65
I just want to run this from command line , not by GUI mode ( cz database is too large )
Post #1410408
Posted Wednesday, January 23, 2013 2:07 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 4:10 AM
Points: 5,221, Visits: 5,119
Do you have a script in the location c:\script.sql which contains the database schema and data to create a new copy of the CZ database?

Or

Do you want to export the CZ database to a file called c:\script.sql which contains all the schemas and data?





Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger

Post #1410412
Posted Wednesday, January 23, 2013 2:10 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Saturday, February 9, 2013 6:00 AM
Points: 27, Visits: 65
export the database to a file called c:\script.sql which contains all the schemas and data

i want to do this
Post #1410414
Posted Wednesday, January 23, 2013 2:12 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 4:10 AM
Points: 5,221, Visits: 5,119
Well then you will need to write a command line based application which interfaces with SQL SMO and script out your database to a file.

As detailed, do a search for "Script Database via Command Line" and you will find help on what you want to do.




Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger

Post #1410415
Posted Wednesday, January 23, 2013 2:19 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Saturday, February 9, 2013 6:00 AM
Points: 27, Visits: 65
i will look into this

Thank you so much for your time


Post #1410417
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse