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

Insert into hold lock and never release.

$
0
0

I put following insert in a SP:

 

Insert into mytab(name, access_date,username, ipaddress )

     Select  'my name', getdate(), 'NA', ipaddr from master..sysprocesses where spid = @@spid   

.....

 

 

and then run pb app to call this SP. This cause a ex lock hold on table mytab and never release even auto commit =true in pb until I stop the app.

 

Not sure why. It is because of @@spid or master? how to release lock for this insert?


Viewing all articles
Browse latest Browse all 3587

Trending Articles



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