Reply to Re: IDENT_CURRENT and empty table

Your name:

Reply:


Posted by helmut woess on 09/27/05 18:16

Am 27 Sep 2005 02:04:29 -0700 schrieb David Portas:

> Assuming you are using SQL Server 2000 then use SCOPE_IDENTITY() rather
> than @@IDENTITY. SCOPE_IDENTITY won't be affected by an insert in the
> trigger.

I think there was a litte misunderstanding, i don't use @@identity, i use
ident_current(). The problem is not in the trigger, it is in the ADO
component from Delphi. It looks like the component is reading @@identity
instead of scope_identity(), so it gets the wrong value.

bye,
Helmut

[Back to original 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

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