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:
Posts (Atom)
Do You Still Need Antivirus in 2026?
Introduction As digital threats continue to evolve, cybersecurity remains a critical concern for individuals and businesses alike. In 202...
-
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...
-
Getting the following error (Figure 1): Server Error in '/' Application. ID4014: A SecurityTokenHandler is not registered to ...
-
How to clear SharePoint People Picker suggestion cache If you have been SharePoint Site owner long enough, you would have definitely ...
