My code is:
SqlConnection conn = new SqlConnection("DataSource=a;InitialCatalog=b;User ID=c;Password=d");
And I get the error message:
Keyword not supported: 'datasource'.
What to do?
Data Source - two words.
Data Source
Using:
Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
It should be in this form:
Data Source=
The keyword is "Data Source" with a space.
There is a space between the data and the source "Data source = a;"