SSIS connection package configuration throwing error (SQLNCLI.1 is not registered) when executed from sql agent.
I'm storing the connection string in sql table (ssis_config) and the Provider=SQLNCLI10.1; but when it executes from sql agent I get the message that: "Description: SSIS Error Code DTS_E_OLEDB_NOPROVIDER_64BIT_ERROR. The requested OLE DB provider
SQLNCLI.1 is not registered -- perhaps no 64-bit provider is available. " What gives?
May 9th, 2011 1:20pm
If it runs outside the SQL Agent job, will the package succeed?Arthur My Blog
Free Windows Admin Tool Kit Click here and download it now
May 9th, 2011 1:24pm
Yes, it indicates it is "attempting to configure from SQL server using the configuration string" and works fine. I can check the 'data sources' tab in the job step and everything looks good there too (Provider=SQLNCLI10.1).
May 9th, 2011 1:26pm
Then the culprit lies somewhere in the way the SQL Agent job is configured and I can tell you specifically it would be the account the Agent Job is running under. This account cannot access the database driver (SQLNCLI10.1) to connect to the table containing
the config setting.Arthur My Blog
Free Windows Admin Tool Kit Click here and download it now
May 9th, 2011 1:31pm
ok, I know how to find the account the agent is running under but how do I verify what has access to the database driver?
May 9th, 2011 1:44pm
One common way of figuring out is to create a test UDL connection.
Creating and Configuring Universal Data Link (.udl) Files:
http://msdn.microsoft.com/en-us/library/e38h511e%28v=vs.71%29.aspxArthur My Blog
Free Windows Admin Tool Kit Click here and download it now
May 9th, 2011 1:50pm
When you said it "runs fine outside of Agent", please let us know EXACTLY how you intiated package execution - on what machine, and with what tool.
Second, please describe your server environment. Do you have a 32-bit or 64-bit OS? Is the SQL install 32-bit or 64-bit?
Talk to me now on
May 9th, 2011 1:51pm
Environment for the sql server is is Windows Server Enterprise service pack 1, SQL server 2008 service pack 1, both 64 bit. I am able to run the package successfully from the 'run package' option in integration services from my personal machine.
Free Windows Admin Tool Kit Click here and download it now
May 9th, 2011 2:05pm
Running a package on your personal machine does not equal running it on the server. Todd (I think) and I suspect you do not have the driver even installed.
Arthur My Blog
May 9th, 2011 2:12pm
I think you're on to something, when I run it from integration services on the sql server I get: "Error: SSIS Error Code DTS_E_OLEDB_NOPROVIDER_ERROR. The requested OLE DB provider SQLNCLI.1 is not registered...".
Free Windows Admin Tool Kit Click here and download it now
May 9th, 2011 2:29pm
Strange that in this error message it is not Provider=SQLNCLI10.1, but SQLNCLI.1
What should it be? But in any case it is driver related, thinking may be you tinkered with the conn. string?
Arthur My Blog
May 9th, 2011 3:19pm
no, ran it directly from the server from SSMS integration services. That is the message I get when it tries to read from the ssis_config
table. Since it's a sql 2008 instance shouldn't it be SQLNCLI10.1?
Free Windows Admin Tool Kit Click here and download it now
May 9th, 2011 3:29pm
Yes, but make sure there is no typo anywhere in the conn string, this is what I meant.
Arthur My Blog
May 9th, 2011 3:53pm
That means you do not have the SQL Server Native Client provider ("SQLNCLI") installed on the client computer. Install the SQL Server Native Client tools or you can try to change the provider to "sqloledb" to use OLE DB and see if that
works.
http://uk.linkedin.com/in/ramjaddu
Free Windows Admin Tool Kit Click here and download it now
May 9th, 2011 4:00pm
Arthur, thank you. The real issue turned out to be a leftover attribute from an earlier attempt in one of the connection strings. Thanks everybody for your help.
May 9th, 2011 4:38pm
I am having the same problem - could you tell me what leftover attribute was causing your problem?
Free Windows Admin Tool Kit Click here and download it now
May 11th, 2011 9:42pm