dbTalk Databases Forums  

sybase stored proc in DTS

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


Discuss sybase stored proc in DTS in the microsoft.public.sqlserver.dts forum.



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

Default sybase stored proc in DTS - 01-05-2004 , 04:00 PM






Hello All,
I'd like to run a sybase sp in a DTS package and insert
the results in a table in SQL Server 7. I was able to
create the connection successfully but do not know how to
accomplish the insert.
Thanks,
-Melounjan

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: sybase stored proc in DTS - 01-05-2004 , 06:25 PM






In message <086801c3d3ce$f54f8960$a001280a (AT) phx (DOT) gbl>, Melounjan
<anonymous (AT) discussions (DOT) microsoft.com> writes
Quote:
Hello All,
I'd like to run a sybase sp in a DTS package and insert
the results in a table in SQL Server 7. I was able to
create the connection successfully but do not know how to
accomplish the insert.
Thanks,
-Melounjan
Never used Sybase, but assuming you can create an OLE-DB (or ODBC) DTS
connection OK, just add another SQL Server connection, then join the two
with a DataPump task (thick black line).

Enter the execute statement for the stored procedure as your source
query, then select the SQL server destination table, and finally use the
default transforms unless you require some more functionality/

If Sybase as the equivalent of the SET NOCOUNT ON option ensure this is
include at the top of your stored procedure code.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



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

Default sybase stored proc in DTS - 01-06-2004 , 08:56 AM



Darren, when I click on your reply all I see is message
unavailable. Could you post it again?
Thanks.
Quote:
-----Original Message-----
Hello All,
I'd like to run a sybase sp in a DTS package and insert
the results in a table in SQL Server 7. I was able to
create the connection successfully but do not know how to
accomplish the insert.
Thanks,
-Melounjan
.


Reply With Quote
  #4  
Old   
Darren Green
 
Posts: n/a

Default Re: sybase stored proc in DTS - 01-06-2004 , 01:36 PM



In message <041301c3d45c$e04824d0$a001280a (AT) phx (DOT) gbl>, Melounjan
<anonymous (AT) discussions (DOT) microsoft.com> writes
Quote:
Darren, when I click on your reply all I see is message
unavailable. Could you post it again?
Thanks.
-----Original Message-----
Hello All,
I'd like to run a sybase sp in a DTS package and insert
the results in a table in SQL Server 7. I was able to
create the connection successfully but do not know how to
accomplish the insert.
Thanks,
-Melounjan
.

Here you go-

Never used Sybase, but assuming you can create an OLE-DB (or ODBC) DTS
connection OK, just add another SQL Server connection, then join the two
with a DataPump task (thick black line).

Enter the execute statement for the stored procedure as your source
query, then select the SQL server destination table, and finally use the
default transforms unless you require some more functionality/

If Sybase as the equivalent of the SET NOCOUNT ON option ensure this is
include at the top of your stored procedure code.
--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



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.