Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Return the SCOPE_IDENTITY from SQL to VB

Status
Not open for further replies.

Jomercat

Programmer
Sep 1, 2004
100
US
Hi all,

Hope that somebody can help me with this.

I am developing an application in VB 6, which connects to a SQL 2000 server and executes a store procedure.

The store procedure is selecting the SCOPE_IDENTITY after inserting the record.

If I run the store procedure within SQL, it returns the last record inserted; however when I executed from VB, the record set does not return it.

Does anybody know how to return this value back to VB?

Any help would be appreciated.

Thanks in advance.

Jose.
 
TysonLPrice,

Thanks for your reply.

I will review the link.

Jose.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top