It depend what database engine you use. Code below is for MySQL
Use this code in xml map file under <insert> node and after insert query
<selectKey .... . . . >
select LAST_INSERT_ID() as value
</selectKey>
________________________________
From: Bob Hanson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 21, 2006 6:49 PM
To: [email protected]
Subject: insert using a stored procedure
What is the correct method to retrieve the Identity value of a newly
inserted row when using a stored procedure that performs an insert?
Thanks,
Bob