-2

Possible Duplicate:
how are GUIDs generated in SQL Server?

I wonder how SQL Server 2008 GUIDs are generated? Entropy bits

Community
  • 1
  • 1
Sam Leach
  • 12,362
  • 8
  • 42
  • 72

1 Answers1

0

Try this to get the GUID:-

SELECT NEWID()

You can refer How GUI generation works

Rahul Tripathi
  • 161,154
  • 30
  • 262
  • 319