If you a have a column of type ‘uniqueidentifier’ in your SQL table, and you want to auto generate a new Guid every time when you insert a record, you can use the ‘Default Value or Binding’ property of ‘Column Properties’.

Set Default Value or Binding = newid()

uniqueidentifier Column
uniqueidentifier Column

🙂

Advertisements
Advertisements

One response to “Auto generate new GUID for ‘uniqueidentifier’ column in SQL Table”

  1. AJ Avatar

Leave a comment

Visitors

2,098,142 hits

Top Posts