Answer the question
In order to leave comments, you need to log in
How to generate GUID in MS SQL?
How much understood, it is possible with the help of data type uniqueidentifier
But how to make, as an auto increment?
I didn’t quite understand.. I set it up, entered the test string, but the id is not generated..
Answer the question
In order to leave comments, you need to log in
CREATE TABLE TestGUID (
ID UNIQUEIDENTIFIER NOT NULL PRIMARY KEY DEFAULT NEWID(),
Name VARCHAR (50) NOT NULL )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question