Search notes:

SQL Server: datatype uniqueidentifier

The data type uniqueidentifier stores 16-bit GUIDs.

Creation of values for uniqueidentifier

A uniqueidentifier can be created with
declare
   @uid_1   uniqueidentifier,
   @uid_2   uniqueidentifier;

set @uid_1 = newid()          ; -- compliant with RFC 4122
set @uid_2 = '01234567-89ab-cdef-0123-456789abcdef';

print('uid_1 =  ' + convert(varchar(255), @uid_1));
print('uid_2 =  ' + convert(varchar(255), @uid_2));
Github repository about-MSSQL, path: /t-sql/data-types/uniqueidentifier/create.sql

See also

SQL Server: Data types

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758199973, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/SQL-Server/T-SQL/data-types/uniqueidentifier/index(57): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78