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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 design of DB at run time??

Author  Topic 

under2811
Constraint Violating Yak Guru

366 Posts

Posted - 2006-09-26 : 06:56:12
hello friends!!

i want to transfer my base tables from one DB to another DB with all views and SPs and table with constraints

i generated one script for it but i want it run by dynamically..i.e attaching my base objects to newly created DB

what can i do??

I want stored procedure for it

T.I.A

nr
SQLTeam MVY

12543 Posts

Posted - 2006-09-26 : 07:01:34
Have a look at dmo transfer
http://www.nigelrivett.net/DMO/SQL-DMOTransfer.html

You could also use osql to run the generated scripts (you can generate them using dmo - look at other articles on that site).

==========================================
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.
Go to Top of Page
   

- Advertisement -