Click here to Skip to main content
15,900,108 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have a .mdf file in my application in App_Data folder and it is not there in sql server..How can i access that database.
please help me

Thank you
Posted
Comments
faisal23 15-Nov-12 6:03am    
you have to find your dsn name and from server explorer add database and follow steps for access database

 
Share this answer
 
Hi
For internal SQL in .net framework

1)Open server explorer tab in .net
2)Select Data connection
3)by right click select add connection
4)Now you get add connection wizard
5)insert nessesary info in wizard and you access database

For External SQL server
1)you can attach database by just rightclick on database
 
Share this answer
 

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