I am trying to generate script for my sql local database created using visual studio 2010. When i open sql server manager and connect to localhost or SQLEXPRESS the database created does not seem to appear.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After you generated your
.mdfwith Visual Studio – did you attach it to your SQL Server instance??In VS, you can setup stand-alone
.mdffiles which are not automatically visible inside SQL Server Management Studio. Those are typically referenced by your application using a connection string that containsIf you have such an
.mdfdatabase – you need to first attach it to your SQL Server instance before you see it in SQL Server Management Studio.