Hi all
I Have one openrowset Query
SELECT * into Temp
FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0;Database=?', 'SELECT * FROM [sheet$]')
and I have one variable FilePath=E:\Tesing\Test.xlsx
now I need this variable in Excute sql task and I used above Query.
and in Paramater Mapping I mapp
VAribaleName:User::FilePath
Direction=Input
Datatype=Long
ParamterName=0
ParametrSize :500
But it gives me error
[Execute SQL Task] Error: Executing the query "
SELECT * into Temp ..." failed with the following error: "Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".". Possible failure
reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
Kindly help .
Thanks