Click here to Skip to main content
15,915,336 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
where should I check the which database is used for website.
Posted
Comments
Praveen Kumar Upadhyay 8-Dec-14 4:36am    
This is not the question you should post. Please elaborate the question, mention your problem,mention what you have tried so far and put the code where you have stucked.
Murthy_RDV 9-Dec-14 11:05am    
For which web site you need the database name? Is yours or Pubic sites?

Check connection string. It might be in connectionstring.config file or web.config file.
 
Share this answer
 
Go to web.config file -> find the code

<connection>
<add name="xxx" connectionstring="datasource=xx;database=xx;uid=xx;pwd=xx">
<connection />

Here you can get the database name which you are using in your project.

Thanks
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900