Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select @@IDENTITY
Message
 
 
To
28/08/2006 13:16:40
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01149086
Message ID:
01149108
Views:
9
Marc,

To add to Sergey's answer, @@idenity returns the value of the column defined as IDENTITY in the table.
CREATE TABLE [xyz] (
	[xyzno] [int] IDENTITY (1, 1) NOT NULL ,
>Why the following returns NULL value?
>
>INSERT INTO (...) VALUES (...)
>SELECT @@IDENTITY
>
>P.S.: The UniqueIdentifier is correctly generated.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform