Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: kenpemPosted on 2009-09-28 at 09:06:39ID: 25440506
Is it possible that the select NULL is clearing scope_identity() ? My practise has always been to store scope_identity immediately after the insert.
Try PRINTing the value of the ID, then querying the table manually - do you then get what you expect?
Are you certain that the exe is returning the value you expect?
Are you certain the sproc waits for the exe to complete before continuing?
What IS returned? NULL?
Sorry, more questions than answers here, but hopefully one of them points you at a solution, or at least gives us a bit more to go on.