This doesn't return the expected results. Not sure how I can escape the left and right square brackets, so that PATINDEX
takes them into account.
Any clues? Many thanks.
SELECT
PATINDEX('%[[SQLSERV]].DBNAME.DBO.[[[0-9a-zA-Z]]]%','ert[SQLSERV].DBNAME.DBO.[Table name]asdadsf')
This should return 3 but it returns 0.