I am using VS2010 and created a database using SQL server residing in VS2010. the database is stored in the folder APP_DATA with an extension .mdf
My PC name is rvivek and it resides in a domain. below is my connection string.
myConnection = New SqlConnection("server=rvivek; uid=; pwd=; database=Database1.mdf;")
when i run my program i am getting the below error.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.
Kindly advice how to specify the server name. and also i've not given any username and password for the database. kindly help me.