467,149 Members | 1,269 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,149 developers. It's quick & easy.

database exist or not

how to check if database exist or not in sqlserver through asp.net code.
if not exists i will give msgbox to user
otherwise i will allow the user to create reports

pls any one give me solution.its urgent
Jan 30 '09 #1
  • viewed: 1944
Share:
3 Replies
amitpatel66
Expert 2GB
Do you need to check if the database exist or not
OR
Do you want to check if the database is UP and RUNNING or SHUT DOWN?
Jan 30 '09 #2
no.only i want to check database exists or not through asp.net code

so i need a query for this
Jan 30 '09 #3
ck9663
Expert 2GB
Try using this function.


-- CK
Jan 30 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Bob Bedford | last post: by
2 posts views Thread by Robert McGregor | last post: by
25 posts views Thread by Colin McKinnon | last post: by
reply views Thread by Jonathan Wood | last post: by
2 posts views Thread by Patrick F | last post: by
27 posts views Thread by Cleverbum@hotmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.