Execute sybase stored procedure as linked server procedure sql server 2008

Mauro picture Mauro · Feb 22, 2011 · Viewed 8k times · Source

EDIT


The final goal is to call a stored procedure hosted in sybase with input and output parameters from SQL Server 2008 via Linked Server


I think title is pretty clear.

My goal is to execute a stored procedure hosted in Sybase SQL Anywhere 8 in SQL Server 2008 through the linked server I already created.

Any SQL query made through the linked server is working. In addition I was able to execute a function but I don't now how to get the return value like that

EXEC ('CALL "dbname"."procedurename"(''param1'', ''param2'', ''param3'')') AT LinkedServerAlias;

Thanks 4 all your help!

Mauro

Answer

Piotr Rodak picture Piotr Rodak · Feb 22, 2011

can you use four part naming convention?

like

exec LinkedServerName.dbname.dbo.procedurename @param1, @param2, @param3