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 |
zubair
Yak Posting Veteran
67 Posts |
Posted - 2009-02-05 : 11:13:16
|
I need to perform the following task:1.get a sql script of a table including primary key, foreign keys and contraints2. running the sql script above in another databaseI need to do this on a regular basis. Is there a way to automate this task instead of manually having to get the script via enterprise manager and then copying and pasting into query anayluser and running against new database? I think this can be done via OSQL? Does anyone have an example i could base mine on? Thx |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|