iNTERFACEWARE Products Manual > Installing and Using Chameleon > Using Python Scripting > Chameleon Python API > GUID Generator > Using the GUID Generator with SQL Server 2000 |
![]() ![]() |
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
When you are using SQL Server 2000 with database tables that include a GUID in a column of type uniqueidentifier, it expects GUIDs to be in the following format:
Here, each x is a hexadecimal digit (0 through 9, or a through f). The GUID returned by guid.generate_guid() contains hexadecimal digits but no dashes. To convert this GUID to the format that SQL Server 2000 expects, use the following code:
|