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,

 

Here is a sample of my proc...

create proc proc_1 as

insert db_2..table1 values("a")

go

 

if my table and trigger are in db_2, and my proc is in db_1,

When I do,

 

use db_1

go

exec proc_1

 

The content of sysprocesses dbid column matches the dbid of db_2 not db_1.

I don't know which db @@procid comes from.

@@procid is the id of the parent proc.

Cory


Viewing all articles
Browse latest Browse all 3587

Trending Articles



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