Setting up Adaptive Server and DirectConnect connections  Configuring Adaptive Server for remote access

Chapter 7: Issuing Remote Procedure Calls

Creating a SQL Server stored procedure

The following example shows a SQL Server stored procedure that can execute a remote stored procedure (RSP). The SQL Server stored procedure must specify an existing RSP and provide any arguments that the RSP requires.

create procedure newcust @custname varchar(nn), @custno varchar (nn) as 
begin
 	execute servername...addcust
 	@addname=custname, @addno=@custno
end

where:





Copyright © 2005. Sybase Inc. All rights reserved. Configuring Adaptive Server for remote access

View this book as PDF