Dts.Variables("SQL").Value = "Select * from TableName"
EvaluateAsExpression is set to true for SQL. But inside the Data Flow task, the OLE DB Source is not accepting this variable for its "SQL Command from variable". In the editor I am getting the following error.
TITLE: Microsoft Visual Studio
------------------------------
Error at Data Flow Task [OLE DB Source [1]]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E0C.
An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E0C Description: "Command text was not set for the command object.".
------------------------------
ADDITIONAL INFORMATION:
Exception from HRESULT: 0xC0202009 (Microsoft.SqlServer.DTSPipelineWrap)
------------------------------
BUTTONS:
OK
------------------------------
Need to support users over the internet? click here try our remote control online beta




