Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Re: @@procid but which dbid

$
0
0

Mark,

The @@procid reports a number ie:54321  ** Not a name

There are sysobjects id's in three databases that match that number with different names.

Each of those procs can do an insert to a table in another database...

     insert db_2..table1 values("A")

This fires a db_2..trigger that finds the @@procid (calling proc) but has no context of the database of @@procid.

So is there a column or variable with the calling dbid?

 

Cory

select dbid from monProcessProcedures has the dbid of the calling proc** but I cannot grant that access.


Viewing all articles
Browse latest Browse all 3587

Trending Articles



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