3
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 in a form to mecher offline and speaks at the beginning
Warning 1 The field 'Windowsformsapplication1.Form3.dataRead' is Never used C:... Windowsformsapplication1 Form3.Cs 23 23 Windowsformsapplication1
and at the time to press save of this error.
Instance-specific or network error when connecting to SQL Server. The server was not found or not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (Preview: Named Pipe Provider, error: 40 - Unable to open 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
Didn’t have to have the base path inside the string Connection?
– Jéf Bueno