I have a column called 'path' in my table which could look similar to:
\server\directory\subdirectory \server\directory\subdirectory\subdirectory
I'm trying to write a query that will only bring up entries that have, say at least 0-4 \'s and no more.
I can't seem to figure it out, I though something like:
SELECT Path FROM Share_table where CHARINDEX('\',path) < 5
But I have no success with the above line...Any help would be greatly appreciated.