January 23, 2013 at 10:53 pm
hi
i need to create database dynamically and table and procedures by passing database name pls give me ideas
thanks
with best reagards
pradeep
January 24, 2013 at 2:17 pm
.
Igor Micev,My blog: www.igormicev.com
January 24, 2013 at 2:44 pm
Just curious as to what the use caseeed is for this.
January 24, 2013 at 2:55 pm
since the proc would create the same tables all the time, it seems to me a stored proc which simply restores a backup as a new database name might be easier than a boatload of dynamic SQL..
you know, a proc in master, with EXECUTE AS, to restore a backup.
so create the model of the database you want with all the objects and even some default data, and restore that.
Lowell
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply