This is my technical area for troubleshooting and learning new programming skills and much more. Here, you will find answers on a wide range of technologies such as AI, Machine Learning, OpenAI, Databricks, ASP.NET, C#, Python, Microsoft Access, MySQL, Amazon Web Services, SQL Server, PL/SQL, JD Edwards, SAS, Salesforce, APIs, MVC, and many others. Please feel free to visit and join the discussion!
Wednesday, December 31, 2008
NEWID() Generating Random Numbers in SQL-Server
select newid()
select abs(checksum(newid())) as number
select abs(cast(cast(newid() as varbinary(10)) as int)) as number
No comments:
Post a Comment