We can use proxy tables to store the output of a procedure into a table. This requires CIS to be enabled on your system
1> create existing table mytable ( LOGIN varchar(20), ALIASEDTO varchar(20),DATABASENAME varchar(20), ALIASUSER varchar(20) )
2> external procedure at "local.sybsystemprocs.dbo.sp_alias"
3>
1> select * from mytable
2>
This will execute the procedure and send you the result in table, which you can use in other queries.
Make sure to add a local server to the sysservers system table.
Friday, 8 January 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment