Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RowGuid Column Property
Message
 
 
To
18/12/2008 10:27:13
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
Microsoft SQL Server
Category:
Database design
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01368502
Message ID:
01368516
Views:
21
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform