>Hi, everybody!
>
>What is best way to retrieve NewID on a SQL Table:
> * Identity Fields?
> * A Meta-Table with the last ID generated for each one of my tables?
> * A SELECT MAX(ID) Statement?
>
> Or there's some other?
>
> I'm developing a N-Tier application and I'm using ADO RecordSets to pass data through layers...
>
> Any information about this issue is of extreme importance for me.
>
> Thanks in Advance!
After the Insert run this query.
SELECT @@IDENTITY as Identity
This will return a single column, single row cursor with the last Identity value inserted.
HTH
Fred Lauckner
You know, it works on my computer. I don't know what your problem is.
.Net aint so bad.