all groups > sql server new users > march 2007 >
You're in the

sql server new users

group:

question about UniqueIdentifier options


question about UniqueIdentifier options André
3/19/2007 12:00:00 AM
sql server new users:
Hi,

I use Visual Web Developper for my asp.net application. I defined a field in
a table as UniqueIdentifier.
In the database environment of VWD, i can see for that field:

datatype: uniqueidentifier
default value or bindings: (newid()) (or xxxxx-xxxx-xxx etc.. in hexadecimal
form).
rowguid: yes/no

I tried several combinations of Default Value and RowGuid, but still don't
understand very good what those options are doing.
I couldn't find a clear explanation elsewhere.

Thanks for help
André

Re: question about UniqueIdentifier options AlterEgo
3/19/2007 10:12:58 AM
André,

Default value is the value inserted in the column if no value was specified
by the insert statement. Newid is a funtion that creates a new
uniqueidentifier. RowGuid tells SQL Server that this column uniquely
identifies the row in the table - the RowGuid attribute is most often used
by Replication.

-- Bill


[quoted text, click to view]

Re: question about UniqueIdentifier options André
3/19/2007 8:33:39 PM
thanks

"AlterEgo" <alterego55@dslextreme.com> schreef in bericht
news:e8d%23T0kaHHA.4948@TK2MSFTNGP05.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button