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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Create Database

Author  Topic 

RyanAustin
Yak Posting Veteran

50 Posts

Posted - 2007-06-22 : 13:25:56
Is there a correct way to create a new database using a Stored Proc??

I know that CREATE DATABASE isn't allowed in a multi-transaction statement.

Thanks.

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-06-22 : 13:33:23
dynamic sql only.

and this forum is for posting working scripts.
moved from script library.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
   

- Advertisement -