I created a Stored Proc, which pulls data into a temp (named - #temp) table and then selects “all” from the #temp table. All of the data is returned as it should and the proc “runs” as it should – no exceptions or errors.
I then create a DTS package with a connection From SQL and a connection To an Access Database with a “Transformation Data Task (TDT)” between the two.
On the source for the “TDT” I use query: “EXEC ReportProc”. I can preview the query and get the data I saw when I ran the proc in the query analyzer. No problems.
I cannot create a destination or any transformations – i.e. I cannot send the data to Access. I get the following error:
Error Description: Invalid object name `#temp`
I figure this error occurs because this is a “temp” table and it is dropped after the PROC is run – however, that does not explain why I can get the data in the preview by exec the PROC but still cannot drop the data into access.
Is there any way to gather data from a Stored Proc, Exec it in a DTS package, and then export it to Access from the DTS
Thanks
I then create a DTS package with a connection From SQL and a connection To an Access Database with a “Transformation Data Task (TDT)” between the two.
On the source for the “TDT” I use query: “EXEC ReportProc”. I can preview the query and get the data I saw when I ran the proc in the query analyzer. No problems.
I cannot create a destination or any transformations – i.e. I cannot send the data to Access. I get the following error:
Error Description: Invalid object name `#temp`
I figure this error occurs because this is a “temp” table and it is dropped after the PROC is run – however, that does not explain why I can get the data in the preview by exec the PROC but still cannot drop the data into access.
Is there any way to gather data from a Stored Proc, Exec it in a DTS package, and then export it to Access from the DTS
Thanks