This is what I have used in the end:
SELECT *,
CASE WHEN [url] NOT LIKE '%[^-A-Za-z0-9/.+$]%'
THEN 'Valid'
ELSE 'No valid'
END [Validate]
FROM
*table*
ORDER BY [Validate]
More Related Contents:
- Best equivalent for IsInteger in SQL Server
- Perform regex (replace) in an SQL query
- How to extrapolate dates in SQL Server to calculate the daily counts?
- Difference between JOIN and INNER JOIN
- Is there a way to access the “previous row” value in a SELECT statement?
- Remove Identity from a column in a table
- How to create multiple one to one’s
- efficient way to implement paging
- SQL Server – transactions roll back on error?
- Formatting Numbers by padding with leading zeros in SQL Server
- Difference between a User and a Login in SQL Server
- SQL Server : dynamic pivot over 5 columns
- For Nvarchar(Max) I am only getting 4000 characters in TSQL?
- Postgres Case Sensitivity
- How do I query for all dates greater than a certain date in SQL Server?
- Check If the string contains accented characters in SQL?
- Count based on condition in SQL Server
- Does Sql JOIN order affect performance?
- What does sp_reset_connection do?
- Syntax of for-loop in SQL Server
- Replace first occurrence of substring in a string in SQL
- Why does ISNUMERIC(‘.’) return 1?
- How to correctly insert newline in nvarchar [duplicate]
- How do you copy a record in a SQL table but swap out the unique id of the new row?
- Using IF ELSE statement based on Count to execute different Insert statements
- How do I list all the columns in a table?
- SQL UPDATE TOP with ORDER BY?
- How do I execute a MS SQL Server stored procedure in java/jsp, returning table data?
- Convert bigint to datetime
- SQL SERVER DATETIME FORMAT