## Syntax ```mermaid %%{init: { 'theme': 'base', 'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' }, 'themeVariables': { 'fontSize': '11px', 'fontFamily': 'Arial' } }}%% flowchart LR Start((START)) --> NEWID[NEWID]:::quoted NEWID --> End((END)) ``` ## Purpose The `NEWID` SQL function creates a new GUID ID. Returns: the new GUID ID. ## Examples The following example creates a new GUID. The actual value differs per invocation: ```sql select newid() ------------------------------------ 0e984725-c51c-4bf4-9960-e1c80e27aba0 ``` The following example creates a new GUID for each of three rows. The actual values differ per invocation: ```sql select newid() from range@DataDictionary(3) ------------------------------------ 78d8da4a-2102-4f0c-8d5b-70a20cf05be9 0e984725-c51c-4bf4-9960-e1c80e27aba0 64a54ac5-fb36-4e5c-b721-64e6e69b4d63 ```