all groups > sql server new users > april 2006 >
You're in the

sql server new users

group:

Generate SQL Script using a DTS


Generate SQL Script using a DTS Matt C
4/19/2006 6:23:54 AM
sql server new users:
Hi

Each month I back up the structure of our databases by right-clicking
on each database and select Generate SQL Script...

[quoted text, click to view]
tab I select script database, along with script indexes and script
primary keys.

As we have several databases this can take some time. Is there away to
automate this using a DTS?


Thanks
Matt
Re: Generate SQL Script using a DTS Stu
4/19/2006 7:46:25 PM
Google scptxfr; it's a command line utility that will script out a SQL
database. Combine that with VBScript in a DTS package, and you should
be good to go.

HTH,
Stu
Re: Generate SQL Script using a DTS Matt C
4/20/2006 1:32:16 AM
Thanks for your reply.

Where do I get hold of scptxfr?

Thanks
Matt
Re: Generate SQL Script using a DTS Stu
4/20/2006 2:55:59 AM
It gets installed as part of the Upgrade Tools when you install SQL
Server; if you have the disks, I would simply do an install with the
Upgrade Tools, and then you can copy the scptxfr executable to any
machine you wish.
AddThis Social Bookmark Button