You are here: Re: Identity...I need to get the last (or highest number in Identity column)... « MsSQL Server « IT news, forums, messages
Re: Identity...I need to get the last (or highest number in Identity column)...

Posted by David Portas on 09/20/05 00:21

SELECT IDENT_CURRENT('table_name') ;

--
David Portas
SQL Server MVP
--


"trint" <trinity.smith@gmail.com> wrote in message
news:1127164340.720014.70160@g14g2000cwa.googlegroups.com...
> Ok,
> I just need to know how to get the last record inserted by the highest
> IDENTITY number. Even if the computer was rebooted and it was two
> weeks ago. (Does not have to do with the session).
> Any help is appreciated.
> Thanks,
> Trint
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация