In many cases, we require to generate a unique but a random number ID for each row of the table. We can generate a random number, using the NEWID() function of SQL Server. Random number generated by NEWID() method will be a 32 byte Hexadecimal number, which is unique for your whole system.
Let's take an example.


SubashPosted Sep 7, 2016, 4:36 AM EDT
Good
Ritesh SinghPosted Aug 16, 2016, 4:43 AM EDT
Nice