I am trying to create a table with the below syntax on Azure SQL DB and it is throwing the below error.
Can any one tell me why NEWSEQUENTIALID() is not allowed here. When I'm creating the same on on-premise server, its working fine.
Is there any replacement to NEWSEQUENTIALID().?
Table:
CREATE TABLE #SampleTable
(
StoreGUID UNIQUEIDENTIFIER DEFAULT (NEWSEQUENTIALID()),
AddressGUID UNIQUEIDENTIFIER DEFAULT (NEWSEQUENTIALID())
)
Error:
Msg 104162, Level 16, State 1, Line 1 'NEWSEQUENTIALID' is not a recognized built-in function name.