problem about checking of a particular database in SQL Server through ASP

R

Rupali

I need to find out whether a database exists in SQL Server
or not through ASP. I will open the connection for that
database only if the database exists.Can someone help me
out!!


Thanks
 
T

Tim Ferguson

I need to find out whether a database exists in SQL Server
or not through ASP.

If you connect to the Master database, you can use one of the system stored
procedures (I think it's called spDatabases?) to scan the databases on the
server.

HTH


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top