private static string connStr = ConfigurationManager.ConnectionStrings ["data"] .ConnectionString;
what does that mean? I don"t understand. I"m going to connect to the database and winform
. What is["data"]
copy it from a blogger.
private static string connStr = ConfigurationManager.ConnectionStrings ["data"] .ConnectionString;
what does that mean? I don"t understand. I"m going to connect to the database and winform
. What is["data"]
copy it from a blogger.
private static string connStr =ConfigurationManager.ConnectionStrings["data"].ConnectionString;
this is the string that links the database
["data"]
to connect ConnectionStrings ["data"]
look at it this way
get the data named data
field
this is the connection string in app.config. App.config has multiple connection strings. This data means to find the connection string whose key is "data".
the result returned is empty ! [picture upload.] obviously I have created a field ...
I want to use the Sqlcommand of C-sharp to execute DROP LOGIN (user) to delete the login account of SQL Server, but it seems that Sqlcommand cannot execute this statement. I can successfully execute it under SQL Server management studio and console. Is ...