Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft SQL Server > Stored Procedur...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 11121 of 11517
Post > Topic >>

Stored Procedures and Commiting Data

by "<option value=\"13315\">Jackson, Duane | | Duane Jackson</optio Jun 9, 2008 at 08:05 AM

I have a Stored procedure on a SQL 2005 server.

It inserts a new record into t_people and correctly retrieves the id
using SCOPE_IDENTITY.

It then calls another SP that takes the ID of the new record in
t_people  as a parameter.

When the second SP queries t_people to find the data for the person,
it can't see the row and returns EOF.

Is there something I need to do in the first SP to commit the new data
before other SP's can see it?
 




 3 Posts in Topic:
Stored Procedures and Commiting Data
"<option value=\&  2008-06-09 08:05:01 
Re: Stored Procedures and Commiting Data
Erland Sommarskog <esq  2008-06-09 18:33:28 
Re: Stored Procedures and Commiting Data
Kevin Zhong <kevin.zho  2008-06-14 21:00:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 1:17:22 CST 2008.