My code:
SqlConnection conn = new SqlConnection("DataSource=a;InitialCatalog=b;User ID=c;Password=d");
And I get error:
Keyword not supported: 'datasource'.
What to do?
Data Source
is two words.
It should be in this form:
Data Source=
The keyword is "Data Source", with a blank.
The usage is:
Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With