T
Tom P.
I have a webpage that takes user data and sends it to a stored
procedure that inserts a row in a table then returns the ID of that
row for display.
The stored procedure does an insert then it uses IDENT_CURRENT to get
the identity of the row that was just inserted and selects the row
back out to display.
The dataset is not getting populated. The dataset has a DataTable that
gets created and the DataTable has the columns named correctly
according to the final select but there's no data in the table.
I've tried SET NOCOUNT ON, I've tried READ UNCOMMITTED, I've tried
COMMITing after the insert...
I've tried just limiting the data to return the ID and I'll do another
select later but I can't even get the ID out.
I just don't get it.
If anyone has any ideas please let me know. If there's anything else
you need to know just ask.
Tom P.
procedure that inserts a row in a table then returns the ID of that
row for display.
The stored procedure does an insert then it uses IDENT_CURRENT to get
the identity of the row that was just inserted and selects the row
back out to display.
The dataset is not getting populated. The dataset has a DataTable that
gets created and the DataTable has the columns named correctly
according to the final select but there's no data in the table.
I've tried SET NOCOUNT ON, I've tried READ UNCOMMITTED, I've tried
COMMITing after the insert...
I've tried just limiting the data to return the ID and I'll do another
select later but I can't even get the ID out.
I just don't get it.
If anyone has any ideas please let me know. If there's anything else
you need to know just ask.
Tom P.