Click here to Skip to main content
15,894,720 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends

The following is my code for connection string
string sProvider = "Data Source=.;Initial Catalog=" + sDBName + ";UserID=sa;Password=" + sPassword;
			
CN.ConnectionString=sProvider;
CN.Open();


The error is
Keyword not supported: 'userid'
Posted

1 solution

It is User ID, with a space.
 
Share this answer
 
Comments
Maciej Los 13-May-13 14:43pm    
Good work. +5!

@baskaran chellasamy951, i would recommend you to see this: http://www.connectionstrings.com/[^]
Hemant__Sharma 13-May-13 21:19pm    
perfect +5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900