Skip to content

Jim Salasek's SQL Server Blog

Sharing what I learn about Sql Server

  • Home
  • About
  • Contact

Recent Posts

  • Terminate SSIS Jobs: A Step-by-Step Guide January 7, 2025
  • Copy SQL Server tables between servers easily with dbatools. December 17, 2024
  • Master Filtering in SSMS: Quick Database Object Access December 3, 2024
  • Find SQL Server Tables with Identity Columns Easily November 12, 2024
  • How to find all jobs that call a stored procedure. June 4, 2024
December 2025
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  
« Jan    

Tag: substring

Extract string before a special character

Here is an easy way to get (extract) all of the characters before a special character in a string.  In our example we have a listing of email addresses and we want to get the name before the @domain.

Continue reading Extract string before a special character

Posted on April 18, 2017March 25, 2017Categories Hints and TipsTags charindex, extract characters, extract string, substring2 Comments on Extract string before a special character

Capitalize a string

When you look at your data, do you see a mish mash of formats?  Do some people use camel case, some all lowercase, some upper?  Here is a quick script that you can use to capitalize the first letter in your single word strings.

Continue reading Capitalize a string

Posted on February 21, 2017January 28, 2017Categories Hints and TipsTags capitalize string, ssmsboost, substringLeave a comment on Capitalize a string
Create a website or blog at WordPress.com
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Jim Salasek's SQL Server Blog
    • Join 34 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Jim Salasek's SQL Server Blog
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar