I need to copy all objects(procedures, functions, tables) from a master database to a newly created database. The database name is unknown until the user selects it from within a vb application so it doesn't appear that a standard DTS package will work.
Is DTS capable of accepting a variable database name and copying objects to it? Or is there some better way to accomplish this?
The scenario is that there is a master facility database that contains all objects needed to create a new facility. When a new facility is to be created, the user gives a name for the new database instance and the application should create the database and then populate it with all objects from the master facility database.
I am using Sql Server 2000.
Thanks,
J
Is DTS capable of accepting a variable database name and copying objects to it? Or is there some better way to accomplish this?
The scenario is that there is a master facility database that contains all objects needed to create a new facility. When a new facility is to be created, the user gives a name for the new database instance and the application should create the database and then populate it with all objects from the master facility database.
I am using Sql Server 2000.
Thanks,
J