-2

I got an error An OLE DB Provider was not specified in the Connection String. I tried these Connection String also

Provider=SQLOLEDB;
Koopakiller
  • 2,838
  • 3
  • 32
  • 47
Waqas Ali
  • 33
  • 6
  • You're using the native client? The provider name is SQLNCLI + version number, e.g. SQLNCLI10 or SQLNCLI11. – James Z Feb 13 '15 at 08:25

1 Answers1

0

Go to http://www.connectionstrings.com/sql-server/ and find correct string for your database.

If you use SQL Server Native Client 10.0 OLE DB Provider, add "Provider=SQLNCLI10.1"

Example,

<add name="WorkflowConnStr" 
connectionString="Provider=SQLNCLI10.1;Data Source=Server;Initial Catalog=DBName;user id=usr;password=password"
providerName="System.Data.OleDb.OleDbConnection"/>

An OLE DB Provider was not specified in the ConnectionString. 'Provider=SQLOLEDB;

Community
  • 1
  • 1
user2316116
  • 6,726
  • 1
  • 21
  • 35