tsql - T-SQL Generate Random/Sample Data from RegEx -
tsql - T-SQL Generate Random/Sample Data from RegEx -
i have unusual problem. have generate random data, regular look given.
yeah, illustration have rules:
1) isregex('^(((([0-1]?[0-9]|2[0-3])(:[0-5][0-9])?)?:)?[0-5])?[0-9]$', #comment#) 2) isregex('^[0-9]+:([0-5][0-9]):([0-5][0-9])$',#comment#) 3) isregex( '^[0-9]+$' , #comment#)
and many others... have generate text (#comment#) pass rule. not necessary there many variations. 1 enough.
have this?
thanks in advance.
the proper way in sql server - thru clr stored procedure or clr user defined function, if sql server version allows this. else - there no acceptable way.
tsql
Comments
Post a Comment