Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
toddhd
Yak Posting Veteran
55 Posts |
Posted - 2005-07-06 : 13:51:23
|
| In SQL Enterprise Manager (or even Query Analyzer) you can generally right click on a table or SPROC, and select "Generate SQL Script" in order to have the IDE create a nicely formatted CREATE script for you.I would like to be able to imitate this functionality from a program I am writing (in VB.NET). Anyway, I was hoping that this functionality was actually stored somewhere that I could access it - perhaps in a stored proc somewhere in SQL that would spit back the code I need. Or in a *.dll that I can access the functions. I didn't know where to start, and thought this might be a good place. |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2005-07-06 : 13:59:58
|
| seehttp://www.mindsdoor.net/DMO/DMOScriptAllDatabases.htmlhttp://www.mindsdoor.net/DMO/DMOScripting.html==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
toddhd
Yak Posting Veteran
55 Posts |
Posted - 2005-07-10 : 12:19:27
|
| I forgot to thank you for this - it worked perfectly |
 |
|
|
|
|
|