Question

I am attempting to add a database to a Visual Studio 2010 VB.Net Windows Forms project to interrogate it with Linq-to-SQL. I have added the Linq-to-SQL Entities to the project.

I can connect to the required database with SQL Server Manager using the Server Name, and SQL Server credentials. But using the Add Database feature in Visual Studio requires me to know the database file name, which I don't.

Is there any way to specify the new database using the server name and credentials in Visual Studio 2010, or alternatively to find out what the file name is from SQL Server Manager, or is there a tutorial anywhere I should be following, in case I am doing the whole thing completely wrong?

Was it helpful?

Solution

The file name will be the database name with a mdf extenstion. You can find this out in Management Studio by selecting the db and right click Properties and then click the files tab. last column will have the file name.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top