Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 14th, 2003, 02:40 AM
Authorized User
 
Join Date: Jun 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default Genrate SQL Script

I use this feature in EM and for documenting SPs. My question is can this feature be automatated with a SQL script. So that I can schedule to run with a Local Package/Job?

TIA - Ian
 
Old July 16th, 2003, 12:02 PM
Authorized User
 
Join Date: Jun 2003
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you explain further "what" feature it is that your referring too?

Thanks,
Jesse
 
Old July 16th, 2003, 08:17 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think he is talking about script generation from EM.

regards
David Cameron
 
Old July 16th, 2003, 08:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Aparently there is a script method in SQLDMO (which is an API to SQL Server). I don't know SQLDMO, but it might be worth looking into it.

regards
David Cameron
 
Old July 17th, 2003, 02:17 AM
Authorized User
 
Join Date: Jun 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, i'll investigate

Regards
Ian
 
Old July 17th, 2003, 05:51 AM
Authorized User
 
Join Date: Jun 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks to DC for the pointer. I have come across the following VB example, within the SQL Server install directory

C:\Program Files\Microsoft SQL Server\80\Tools\Devtools\Samples\Sqldmo\Vb\SQLScri pts

It is possible to change this vb program to dump a file with a date stamp affixed to the filename e.g. pubs20030717.txt, though it is just as easy to stick with the Generate SQL Script within EM.!!!





Similar Threads
Thread Thread Starter Forum Replies Last Post
How Run .sql Script file in MS SQL Server 2000? aarkaycee SQL Server 2000 5 October 12th, 2009 05:43 AM
sql script ttpdotcom BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 March 9th, 2008 03:08 PM
SQL script auto_increment vickr1z MySQL 3 January 22nd, 2007 08:22 AM
Autono genrate to_vishal01 VB.NET 2002/2003 Basics 0 October 14th, 2006 02:42 AM
SQL Script !! ciko1973 Access 2 June 13th, 2003 07:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.