Home All Groups Group Topic Archive Search About

Creating DB using SMO

Author
23 May 2006 11:55 AM
Rujith Anand
Hi,

I am trying to create a new database using SMO, I am getting Set_Parent
Failure Error when try to create a new database.
This is the code I am using to create the database.
Database database= new Database("DbServer", "MyNewDB");
database.Create();

I know if you just use the first line it will try to attach the database,
and u will get set_parent failure error, but I am using .Create() also....
still I am getting the  error.... can anyone help me in this ?

Thanks
Rujith

AddThis Social Bookmark Button