Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RowGuid Column Property
Message
 
 
À
18/12/2008 10:27:13
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01368502
Message ID:
01368516
Vues:
22
The column data type in this case is uniqueidentifier. You have a choice to let SQL Server to generate new GUID for it using default newid() when column is not in the INSERT list or you can supply value generated elsewhere.

>
>Does the rowguid now get created by SQL Server on an insert as opposed to me creating it when I create records? I would assume so since the default value now says newid()
>Tim
>
>>It doesn't do anything besides indicating that the uniqueidentifier values in the column uniquely identify rows in the table. The uniqueness must be enforced through other mechanisms, such as the PRIMARY KEY or UNIQUE KEY constraints for the column.
>>It's primarily used by SQL Server replication. In SQL 2008 it's also required by the new FILESTREAM feature.
>>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform