dbTalk Databases Forums  

DTS and Stored Procedures with # tables

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS and Stored Procedures with # tables in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shyam venkatram
 
Posts: n/a

Default DTS and Stored Procedures with # tables - 04-22-2004 , 04:52 PM






Hello,

I have a Stored Procedure that returns data from a # temp table. This proc
works fine with query analyzer. When I try to run this query from a DTS
package exporting the data to an excel , I cant seem to parse the query in
the "Transform Data Task Properties" as it cannot find the #temptable. Any
idea of how to get around this and have dts to pump data to excel by
executing a storeproc having #tables.

Thanks
Shyam



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS and Stored Procedures with # tables - 04-23-2004 , 01:04 AM






Do you create the # table up front of the transformation task and then try
to reuse in the transformation task?

That won't work.

You could try using a ## table

The fact that you are constantly using a # table would for me make it a
candidate to be made a permanent table.



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"shyam venkatram" <shyam (AT) vmware (DOT) com> wrote

Quote:
Hello,

I have a Stored Procedure that returns data from a # temp table. This proc
works fine with query analyzer. When I try to run this query from a DTS
package exporting the data to an excel , I cant seem to parse the query in
the "Transform Data Task Properties" as it cannot find the #temptable. Any
idea of how to get around this and have dts to pump data to excel by
executing a storeproc having #tables.

Thanks
Shyam





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.