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

Scripts by Bill Leung profile

   Items 1 to 1 of 1   

Random DEFAULT string for a column using CASE and NEWID

Sometimes you just need to populate a CHAR/VARCHAR column for testing with a random selection of string literals at table CREATE time. Here is a quick and easy script.  Read more...
By Bill Leung 2012/06/14 | Source: | Category: random numbers
Rating: |  Discuss |   Briefcase | 1,089 reads
   Items 1 to 1 of 1