Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

SQL SERVER RegEx Question

$
0
0
I have been trying to get this condition to be TRUE, but can't seem to get it right.Any suggestions would be helpful. Thanks.DECLARE @stopat datetimeSET @stopat = '2015-06-23 02:16'IF @stopat LIKE '[1-2][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9][^0-9a-z][0-9][0-9]:[0-9][0-9]'PRINT 'TRUE'ELSE PRINT 'FALSE'

Viewing all articles
Browse latest Browse all 3145

Trending Articles