RATE THIS ANSWER
0
Click to Vote:
0
0
Use Charindex to find position of '['
I have put the first line into a variable (@c) but this will work if you use column name instead of variable
declare @c varchar(300)
set @c='Allow CREATOR OWNER [Full Control]'
select Left(@c,Len(@c)- CHARINDEX ( '[', @c COLLATE Latin1_General_BIN)) as FullName,
Right(@c,Len(@c)- CHARINDEX ( '[', @c COLLATE Latin1_General_BIN)) as TPermissions;
Gives following results:
Allow CREATOR Full Control]
You can decide if you want to trim the last ] off
Last Answered:
Jul 8 2008 3:32 PM GMT by Ritchie1 
210 pts.