Vaderman
July 27th, 2005, 07:05 AM
I've setup a method that I would like to get the last identity of a table NOT the last identity overall. If working with SQL 2000+ I can use:
IDENT_CURRENT('<TableName>')
This would return me the last identity inserted on the named table. Is there an equivalent using M$ Jet 4+?
At the moment I am using the following:
SELECT @@Identity FROM <TableName> AS UID
But this will only give me the LAST INSERTED ID overall in the database.
Regards
John
IDENT_CURRENT('<TableName>')
This would return me the last identity inserted on the named table. Is there an equivalent using M$ Jet 4+?
At the moment I am using the following:
SELECT @@Identity FROM <TableName> AS UID
But this will only give me the LAST INSERTED ID overall in the database.
Regards
John