Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

Procedure getting half executed for one user but getting fully executed for other user.

$
0
0

Hi All,

We have a procedure in the below way

declare...
one temp table
...

body
{
 cursor --step 1
 {
  Inserting some results into a temp table
  printing the inserted rows.
 }

 update statement using the temp table data. --step 2
}

Under one user, this procedure is getting executed untill the completion of step 1. (I could see the results of print statements in the cursor).

Under other user, this procedure is getting totally.(i.e, step 2)

I am unable to figure out the problem. Please help me. Thanks in advance.


Thanks, Srikar


Viewing all articles
Browse latest Browse all 4729

Trending Articles



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