SqlConnection ABC = new SqlConnection(
"Data Source=(local);Initial Catalog=Database1;Integrated Security=SSPI");
SqlCommand command = new SqlCommand();
SqlDataReader dataRead;
I'm using this code to make a save button on a form to go offline and speak at the beginning
Warning 1 The field 'WindowsFormsApplication1.Form3.dataRead' is never used C: ... WindowsFormsApplication1 \ Form3.cs 23 23 WindowsFormsApplication1
and at the time of pressing the save of this error.
Network-specific or instance-specific error when connecting to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
My base date is
Data Source = C: \ Users \ Somline \ Documents \ Visual Studio 2008 \ Projects \ PROGRAM \ WindowsFormsApplication1 \ Database1.sdf; Persist Security Info = True