When the proxy table is a procedure-type table, you must provide a column list that matches the description of the remote procedure’s result set. create existing table does not verify the accuracy of this column list.
No indexes are created for procedures.
alter table
create index
delete
insert
truncate table
update
create existing table rpc1 ( a int, b int, c int, _p1 int null, _p2 int null ) external procedure at "SYBASE.sybsystemprocs.dbo.myproc"
select a, b, c from t1 where _p1 = 10 and _p2 = 20
CIS passes the search arguments to the remote procedure as parameters, using the names @p1 and @p2.
Must allow a null value.
Cannot precede regular result columns—they must appear at the end of the column list.
If a parameter column is included in a select list and is passed to the remote procedure as a parameter, the return value is assigned by the where clause.
If a parameter column is included in a select list, but does not appear in the where clause or cannot be passed to the remote procedure as a parameter, its value is NULL.
select a, b, c from t1 where _p1 = 10 or _p2 = 20