Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Random string and random number generators

By Eugene Bereznuk,

The first part will create 2 stored procedures with self-explanatory names. The second is a standalone SQL that may be used in any stored procedure, script or DTS package.
The generated string does not have any spaces and include only lower-case letters. To include anything else just change the boundaries for ASCII codes in the script.
The RandomString procedure requires the string length as a parameter while RandomNumber needs the lower and upper boundaries as parameters.

Total article views: 534 | Views in the last 30 days: 2
 
Related Articles
FORUM

need help about procedure

procedure

FORUM

help in my procedure

Procedure

FORUM

create Procedure within Procedure

create Procedure within Procedure

FORUM

Procedures

Stored procedures permissions

FORUM

Procedure

Proceduralize Bulk Insert Quote

 
Contribute