-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,746
  • 9
  • 45
  • 73

1 Answers1

0

Try this to get the GUID:-

SELECT NEWID()

You can refer How GUI generation works

Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331