But of course.
SELECT NewId()
You may also use NewId function as a default value of uniqueidentifier field type in a table definition. Just add it to your create table statement like this:
[MyField] [uniqueidentifier] NOT NULL DEFAULT (NewId())
Categories sql
Subscribe to:
Post Comments
(
Atom
)
0 comment(s) :
Post a Comment