Quantcast
Channel: SCN: Message List - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 2182

Re: Proxy table and autoincrement and SELECT@@IDENTITY

$
0
0

This statement would do it:

SELECT srvname

FROM SYS.SYSSERVER JOIN SYS.SYSTABLE ON SYS.SYSSERVER.srvid = SYS.SYSTABLE.srvid

WHERE SYS.SYSTABLE.table_name = 'your_table_name';

 

srvname would be the nme of the remote server if you were using a proxy table and hNULL if it was a local table

 

--Jason


Viewing all articles
Browse latest Browse all 2182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>