2013-12-10 89 views

回答

1

你可以嘗試要麼

SqlConnection con = new SqlConnection(@"Data source=BIMESH-PC\SQLEXPRESS;initial catalog=LibrSystem;integrated security=true"); 
SqlConnection con = new SqlConnection("Data source=BIMESH-PC\\SQLEXPRESS;initial catalog=LibrSystem;integrated security=true"); 

You should have a look at verbatim string literals, and escaped string literals

+0

你可以試試這個也:'的SqlConnection CON =新的SqlConnection(); con.connectionstring = @「Data source = BIMESH-PC \ SQLEXPRESS; initial catalog = LibrSystem; integrated security = true」;' –

相關問題