SSIS :Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done

when we try to use table name as parameter is Execute sql task in SSIS Then we got this error

[Execute SQL Task] Error: Executing the query "delete ? where [group] ='HTTP'
" failed with the following error: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.


After many trails we came to know that it i snot possible to pass table name as input parameter for the Execute Sql Task .

Work Around to solve this issue : Create a Variable to build dynamic query . In the Expression of the Neqvarible pass the Tablename variable .

"Delete "+ @[User::DestRateTableName]+ "  where [Group] ='HTTP'"

In Execute Sql task select the SQLSourceType as Variable and  select the new variable in Sourcevariable column.

Comments

Popular posts from this blog

SSAS : A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient). + Solution

SSIS Error : Unable to infer the XSD from the XML file. The XML contains multiple namespaces