How to seed or increment NEWID() value
Hi all,
Newid() which creates a unique value of type uniqueidentifier.
Is there any possibolities for seeding or incrementing the NEWID() value.
For example:
create table cust(cust_id uniqueidentifier NOT NULL
DEFAULT newid(),cust_name varchar(60) NOT NULL)
For insertion example:
INSERT cust (cust_id, contact_name) VALUES (newid(), ' ABC ' )
INSERT cust (cust_id, contact_name) VALUES (newid(),' XYZ ' )
INSERT cust (cust_id, contact_name) VALUES (newid(), ' PQR ' )
If i am inserting more then one row detail NEWID() creates uniquevalue.
But i want to increment the NEWID() value is that possible!!!
101
102
103
I dont want to use IDENTITY column
Plz...can anyone help
|