Groups | Blog | Home
all groups > sql server dts > december 2004 >

sql server dts : Calling Sybase stored procedure from DTS Execute SQL Task


John Doody
12/7/2004 11:20:54 PM
Is it possible to call a Sybase stored procedure from DTS using the
Execute SQL Task. I'll expect to pass input variables from global
variables and receive a result set from the stored procedure. Looks
like this is no problem with SQL Server.

The Sybase connection will be via ODBC.

Thanks in advance.
Darren Green
12/8/2004 1:31:07 PM
In message <qVqtd.100853$7i4.66204@bgtnsc05-news.ops.worldnet.att.net>,
John Doody <perseid@worldnet.att.net> writes
[quoted text, click to view]


The Sybase provider does not support (implement) parameter support, so
you need to do it the hard way -

Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)


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

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org
John Doody
12/10/2004 6:02:54 PM
Is this true for database views also? Thanks.

[quoted text, click to view]
Darren Green
12/11/2004 12:00:08 PM
In message <ixlud.110821$7i4.110553@bgtnsc05-news.ops.worldnet.att.net>,
John Doody <perseid@worldnet.att.net> writes
[quoted text, click to view]

This is true for parameters, so regardless of the object you cannot use
parameters through OLE-DB. This is not the same as a stored procedure
parameter, it is only when you use the ? token for an OLE-DB parameter
in the SQL. The view SQL may look like this and would work against SQL
Server -

SELECT Col1, Col2 FROM ViewName WHERE Col3 = ?


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

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