Error - SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D

  • Hi ,

    I have a problem with SQL server Job . Job keep failing while executing package . Job and Package on Same server.

    If you run package from MANAGEMENT STUDIO from the same server , its works fine.

    "DestinationDB" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D. An OLE DB record is available.

    Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E4D

    Description: "Login failed for user 'DOMAIN\SERVER$'.". End Error Error: 2015-05-26 11:27:37.65 Code: 0xC00291EC

    Source: EST_NameOfTASK Execute SQL Task

    Description: Failed to acquire connection "DBnameDestination".

    Connection may not be configured correctly or you may not have the right permissions on this connection. End Error

    DTExec: The package execution returned DTSER_FAILURE (1). Started: 11:27:36 Finished: 11:27:37 Elapsed: 1.328 seconds. The package execution failed. The step failed.

  • HI

    You have to save the password in configuration file.

    Regards

    Mike

  • Thanks you ..

    I got the issue now . In the configuration file , connection string was defined for Windows authentication . Since I am logged in and running through the management studio its works . But on SQL job its doesn't use windows authentication hence failed . As solution i have configured my connection string with SQL Authentication and worked well.:-P

  • Hi,

    is there any other way to achieve this without configuration

  • yes. you can create a credential with windows credentials, and then a proxy in SQL agent.

    with that in place, you can modify the job step that calls the SSIS package to use that credential instead of the default.

    here's a decent article on how to set it up:

    https://www.simple-talk.com/sql/database-administration/setting-up-your-sql-server-agent-correctly/

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • yes. you can create a credential with windows credentials, and then a proxy in SQL agent.

    with that in place, you can modify the job step that calls the SSIS package to use that credential instead of the default.

    here's a decent article on how to set it up:

    https://www.simple-talk.com/sql/database-administration/setting-up-your-sql-server-agent-correctly-via-essaydune-dataaccess

     

    @ Lowell, thank you for the recommended resource. I had the same error when the maximum DB table size was reached before the package finished executing. The solution was simply to remove the size limit on the table where the package was importing to. Some other reasons and variants for the error fix: https://blogs.msdn.microsoft.com/dataaccesstechnologies/2009/11/09/ssis-error-code-dts_e_oledberror-an-ole-db-error-has-occurred-reasons-and-troubleshooting

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply