SELECT CAST(CAST(NEWID() AS BINARY(15)) AS INT)
or
SELECT SUBSTRING(CAST(CAST(CAST(NEWID() AS BINARY(15)) AS INT)AS VARCHAR),2,7)
This site contains information of .NET,Sharepoint,C#,SQL Server,MOSS,WSS,WWF,WCF,WPF,AJAX,Javascript and Adobe Flex.
No comments:
Post a Comment