You are here: Re: Equivalent to SQL Anywhere GET_IDENTITY? « MsSQL Server « IT news, forums, messages
Re: Equivalent to SQL Anywhere GET_IDENTITY?

Posted by Jim C on 11/28/06 16:51

Robert,

I'm accessing the tables with an application that uses ODBC for now
(it'll probably go some other more direct route in the near future as
things are refactored). The way it is architected it needs to know the
value before the insert occurs because of the how and when it passes
that value to child records in master-detail setups.

Your idea about emulating an Oracle sequence looks like it will be just
the ticket. Thanks!

Jim


Robert Klemme wrote:
> You do not post where you need that information. If your insert is in a
> stored procedure then SCOPE_IDENTITY after the fact should work.
>
> If for some other reasons you really need the value beforehand, you can
> emulate an Oracle sequence

 

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

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