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?