Jul 27, 2004 #1 xloop Programmer Nov 12, 2001 86 GB How would i go about automatactially creating SQL scrips for all the tables, views and stored procedures in a particular database? Need to do this every night (automatically) Any help much appreciated
How would i go about automatactially creating SQL scrips for all the tables, views and stored procedures in a particular database? Need to do this every night (automatically) Any help much appreciated
Jul 27, 2004 #2 dbomrrsm Programmer Feb 20, 2004 1,709 GB In enterprise Manager: Expand a server group, and then expand a server. Expand Databases, right-click the database to script, point to All Tasks, and then click Generate SQL Scripts. On the General tab, select the database objects to script. By default, all objects in the database are scripted. Script what you like !!! DBomrrsm Upvote 0 Downvote
In enterprise Manager: Expand a server group, and then expand a server. Expand Databases, right-click the database to script, point to All Tasks, and then click Generate SQL Scripts. On the General tab, select the database objects to script. By default, all objects in the database are scripted. Script what you like !!! DBomrrsm
Jul 27, 2004 Thread starter #3 xloop Programmer Nov 12, 2001 86 GB The key word here is "automatically" We need to run it every night without having to go into enterprise manager. Any ideas? Upvote 0 Downvote
The key word here is "automatically" We need to run it every night without having to go into enterprise manager. Any ideas?
Jul 27, 2004 #4 dbomrrsm Programmer Feb 20, 2004 1,709 GB Try this link to a SP created by NigelRivett http://www.nigelrivett.net/DMOScripting.html Probably a good start. DBomrrsm Upvote 0 Downvote
Try this link to a SP created by NigelRivett http://www.nigelrivett.net/DMOScripting.html Probably a good start. DBomrrsm