dbTalk Databases Forums  

DTS call SP with problem

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


Discuss DTS call SP with problem in the microsoft.public.sqlserver.dts forum.



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

Default DTS call SP with problem - 03-23-2006 , 01:01 AM






hi,

i'm using SQL Server 7.
wanna use DTS to run a SP and save the result in Excel.
In SP, temp table ( #xyz ) is created & used. however during the DTS
creation, DTS will generate error msg " Error Desciption : Invalid object
name '#xyz ' "
do you have any idea how to overcome ?

next, can the result of SP, further set some condition to filter out
unwanted data before store to Excel ?

many thanks


Reply With Quote
  #2  
Old   
Rajesh Kasturi
 
Posts: n/a

Default RE: DTS call SP with problem - 03-23-2006 , 03:06 AM







Hi you can use temp tables in SP checkout the SP in sql query analyzer
before running it in dts package i did same in sql server 2000 it worked for
me okey...

make sure you are using this #xyz temp table with in the sp....

"TA" wrote:

Quote:
hi,

i'm using SQL Server 7.
wanna use DTS to run a SP and save the result in Excel.
In SP, temp table ( #xyz ) is created & used. however during the DTS
creation, DTS will generate error msg " Error Desciption : Invalid object
name '#xyz ' "
do you have any idea how to overcome ?

next, can the result of SP, further set some condition to filter out
unwanted data before store to Excel ?

many thanks


Reply With Quote
  #3  
Old   
TA
 
Posts: n/a

Default RE: DTS call SP with problem - 03-23-2006 , 08:55 AM



Thanks.

How u call the SP in dts ?
In the SQL query box, i put "exec spABC <parameter_1>, <parameter2>

when click 'parse the SQL' button, it shows the error msg as mentioned.

cheers,

"Rajesh Kasturi" wrote:

Quote:
Hi you can use temp tables in SP checkout the SP in sql query analyzer
before running it in dts package i did same in sql server 2000 it worked for
me okey...

make sure you are using this #xyz temp table with in the sp....

"TA" wrote:

hi,

i'm using SQL Server 7.
wanna use DTS to run a SP and save the result in Excel.
In SP, temp table ( #xyz ) is created & used. however during the DTS
creation, DTS will generate error msg " Error Desciption : Invalid object
name '#xyz ' "
do you have any idea how to overcome ?

next, can the result of SP, further set some condition to filter out
unwanted data before store to Excel ?

many thanks


Reply With Quote
  #4  
Old   
Rajesh Kasturi
 
Posts: n/a

Default RE: DTS call SP with problem - 03-24-2006 , 06:33 AM



Yes that is right in sql query box you can execute sp's
Example:
exec spname
but i have not executed sp with input and output parameters for more
information how to execute sp's with parameter go to www.sqldts.com
and search in google and msdn and www.live.com

Have a nice day





"TA" wrote:

Quote:
Thanks.

How u call the SP in dts ?
In the SQL query box, i put "exec spABC <parameter_1>, <parameter2

when click 'parse the SQL' button, it shows the error msg as mentioned.

cheers,

"Rajesh Kasturi" wrote:


Hi you can use temp tables in SP checkout the SP in sql query analyzer
before running it in dts package i did same in sql server 2000 it worked for
me okey...

make sure you are using this #xyz temp table with in the sp....

"TA" wrote:

hi,

i'm using SQL Server 7.
wanna use DTS to run a SP and save the result in Excel.
In SP, temp table ( #xyz ) is created & used. however during the DTS
creation, DTS will generate error msg " Error Desciption : Invalid object
name '#xyz ' "
do you have any idea how to overcome ?

next, can the result of SP, further set some condition to filter out
unwanted data before store to Excel ?

many thanks


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.