Einzelnen Beitrag anzeigen

NormanNG

Registriert seit: 1. Feb 2006
294 Beiträge
 
Delphi 2007 Professional
 
#5

Re: Autoincrement in MS SQL Server

  Alt 7. Mär 2007, 08:36
Hi,

nochmal aus den SBO:
Zitat:
IDENTITY (Property)
Creates an identity column in a table. This property is used with the CREATE TABLE and ALTER TABLE Transact-SQL statements.



Note The IDENTITY property is not the same as the SQL-DMO Identity property that exposes the row identity property of a column.


Syntax
IDENTITY [ ( seed , increment ) ]

Arguments
seed

Is the value that is used for the very first row loaded into the table.

increment

Is the incremental value that is added to the identity value of the previous row that was loaded.

You must specify both the seed and increment or neither. If neither is specified, the default is (1,1).
Wenn du im Query-Analyzer "identity" eingibst, markierst und Shift-F1 drückst, bekommst du die Erklärungen der SBO - kann aber sein, das das im MS SQL Server Express nicht dabei ist. Sollte aber auch auf den MS-Seiten zu finden sein?


/Edit: ich hatt die Funktion erwischt... hier nun die Property
Gruß
Norman
  Mit Zitat antworten Zitat