Keyword not supported: 'provider'.

  • Thread starter Thread starter John A Grandy
  • Start date Start date
J

John A Grandy

Sql Server 2005 SP3 , .NET 2.0 , Visual Studio 2005

For the following connection string :

string connectionString = "Data Source=localhost;Initial
Catalog=Database1;Integrated Security=SSPI;Provider=SQLNCLI.1;";

I am attempting to establish a SqlConnection object

SqlConnection connection = new SqlConnection(connectionString);

This used to work fine, but now I receive error :

"Keyword not supported: 'provider'."
 
Back
Top