Software engineering and business solutions blog featuring SaaS reviews, automation tools, and business insurance guides. Buyer-intent content designed to drive high-quality traffic and conversions.
Friday, October 25, 2013
Monday, October 07, 2013
SQL Random Number Generator
DECLARE @Random INT;
DECLARE @RandomChar CHAR(15);
DECLARE @Upper INT;
DECLARE @Lower INT
---- This will create a random number between 1 and 999
SET @Lower = 1 ---- The lowest random number
SET @Upper = 999 ---- The highest random number
SELECT @Random = ROUND(((@Upper - @Lower -1) * RAND() + @Lower), 0)
SET @RandomChar = (SELECT CAST(@Random AS CHAR(3)))
SET @srvc_code = 'New_Code-' + @RandomChar
DECLARE @RandomChar CHAR(15);
DECLARE @Upper INT;
DECLARE @Lower INT
---- This will create a random number between 1 and 999
SET @Lower = 1 ---- The lowest random number
SET @Upper = 999 ---- The highest random number
SELECT @Random = ROUND(((@Upper - @Lower -1) * RAND() + @Lower), 0)
SET @RandomChar = (SELECT CAST(@Random AS CHAR(3)))
SET @srvc_code = 'New_Code-' + @RandomChar
Subscribe to:
Comments (Atom)
Best Linux File System for Performance: An Informational Guide for US Business Owners
Best Linux File System for Performance Introduction Linux file systems play a critical role in how data is stored, accessed, and mana...
-
How to clear SharePoint People Picker suggestion cache If you have been SharePoint Site owner long enough, you would have definitely ...
-
Getting the following error (Figure 1): Server Error in '/' Application. ID4014: A SecurityTokenHandler is not registered to ...
-
The problem was that the remote connection needed to utilize Named Pipes, but in order to utilize Named Pipes both the machine hosting the i...
