Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble exporting stored procedure results to Excel

Status
Not open for further replies.

DayLaborer

Programmer
Jan 3, 2006
347
0
0
US
I am trying to create a DTS package that will execute a stored procedure and save the results into an Excel file. When I use the DTS wizard, I get an error 'Invalid Object Name '#TempDataTable'. Context: Error calling GetColumnInfo.

The stored procedure creates a temporary table called #TempDataTable, inserts rows into it, selects from it, and then drops it. The same error occurs with global temporary tables and I don't have the option of creating a regular table due to permissions.

Are there any other ways to send results of the stored proc to Excel? I tried some ActiveX code I found but it converts decimal fields into a "custom" field which it ends up formatting as a date field.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top