AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Datenbanken Delphi Autoincrement in MS SQL Server
Thema durchsuchen
Ansicht
Themen-Optionen

Autoincrement in MS SQL Server

Ein Thema von Salomon · begonnen am 7. Mär 2007 · letzter Beitrag vom 7. Mär 2007
Antwort Antwort
NormanNG

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

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
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:29 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz