DBCC CheckIdent in a stored proc?

Поиск
Список
Период
Сортировка
Искать

DBCC CheckIdent in a stored proc?

От:
smoghe@autodesk.com
Дата:

Hello All,

 

I need to know the last id of the last record added to the table from an ASP page.

 

How do I package DBCC CheckIdent(@tableName) in a output  parameter?

 

Thanx!

Shrirang

 

p.s: I am a total newbie to DB.

Re: DBCC CheckIdent in a stored proc?

От:
Bhuvan A <bhuvansql@myrealbox.com>
Дата:
> I need to know the last id of the last record added to the table from an
> ASP page.

=> select field1 from my_table order by oid desc limit 1; -- will do that.

regards,
bhuvaneswaran



FAQ