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 2008 Forums
 Other SQL Server 2008 Topics
 Create new database in asp.net

Author  Topic 

prasadnk
Starting Member

1 Post

Posted - 2011-05-04 : 08:14:49
I want to create new database in asp.net.

I have selected windows authentication.

but, when i give random database name it gives error saying the database does not exist. so, how should i proceed while creating new database?

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2011-05-04 : 08:44:39
You would have to issue a create databse statement.
Are you expecting to connect to an existing dtabase though? Are you sure you have the correct sql server name/instance?

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

MichelleLaRue
Starting Member

1 Post

Posted - 2011-05-25 : 07:35:42
I think according to me this problem may be due to the path of the database you have created. So,It would be nice if you would try and use external database.
Hope this will solve your problem.


Go to Top of Page
   

- Advertisement -