I have a User_Id column with data DOMAIN\USERID
I need it to be DOMAIN\userid
Whats the (sql server) sql?
Update: Answer from @David McEwing
update UserTable
set [User_Id] = SUBSTRING( [User_Id], 0, CHARINDEX('\', [User_Id])+1)
+ lower(SUBSTRING( [User_Id], CHARINDEX('\', [User_Id])+1, len( [User_Id])))