Unique ID’s in Oracle and SQL Server Leave a Reply Generating unique ID’s in Oracle and SQL Server.. Oracle: Select sys_guid() from dual; SQL Server: Select (newid())