sql - TSQL Trim - Portable Method -


i have string in following format 'domain\username'.

i wish trim domain , backslash string. cannont use right() have multiple domains of varying length.

what portable way this?

thank you.

select right('domain\username', len('domain\username') - charindex('\', 'domain\username'))


Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -