July 4, 2022
  • Facebook
  • Twitter
  • Youtube
Expert-Only

  • Database
    • Create database with SQL Server Management Studio
    • Create SQL database with a script
    • Drop SQL Server database script
  • Tables & views
    • Table
      • Create SQL Server table
      • Create table with primary key
      • Create customer table
      • Alter SQL table
      • Truncate SQL Server table
      • Drop SQL table
      • Check if SQL table exists
    • View
      • Create SQL Server view
      • Alter SQL view
      • Drop SQL view
      • Create SQL partitioned view
  • Procedure & functions
    • Procedure
      • Create stored procedure
      • Alter stored procedure
      • Create procedure with parameters
    • Function
      • Manage SQL function
      • Create SQL function
      • Call SQL function
      • Alter SQL function
      • Delete SQL function
  • Indexes & partitions
    • Index
      • Clustered SQL index definition
      • Create SQL index
      • Rebuild SQL index
      • Reorganize SQL index
      • Disable SQL index
      • Drop SQL index
      • List all SQL indexes
    • Partition
      • SQL Server partition definition
      • Create SQL table partition
  • MS Office tips
    • Excel tips
      • Best cell selection shortcuts for Excel
      • Display the day in all letters with Excel
      • Excel shortcut to select an entire column
      • Disable the direct edit option in Excel
      • Turn off Excel Scroll Lock option
    • Word tips
      • Create an automatic table of contents with Word
      • Delete a horizontal line in Microsoft Word
      • Insert a comment in Word margin
  • IT concepts
    • Dimension table definition in Business Intelligence
    • DSS or Decision Support System definition
    • EPM or Enterprise Performance Management definition
    • OLTP and Transactional Databases definition
  • MS-DOS commands
  • Useful SQL
    • Insert into from a select query
    • SQL Server insert or update query example
  • Time and dates
    • Display full month name in SQL Server?
    • Time difference in hours minutes
  • Strings
    • Split text after character with SQL Server Substring
    • Remove SQL line break from text
    • Split long SQL Server text in lines
  • SQL Server
    • SQL Server Abbreviations
    • SQL Server Downloads
    • SQL Server Errors
  • DAX functions
HomeSQL ServerSQL Server Strings

SQL Server Strings

SQL Server strings section provides example to manage strings with the common functions.

How to replace a specific string into a column of a text variable with SQL Server REPLACE function. Or how to replace line breaks with the CHAR function.

Learn how to split a long text into multiple lines using XML data type, the CONVERT and the REPLACE function.

 

SQL Server Strings

Split text after character with SQL Server Substring

January 6, 2022

How to split a text after a particular character with SQL Server… like for example a file name: “file.txt” to separate the file name from its extension. Indeed, it is obvious that splitting …

SQL Server Strings

Remove line break from text with SQL Server

June 13, 2017

How to remove SQL Server line break from a text? If you store a string as a variable or a column in SQL Server, then it can contain line breaks. For example, if …

SQL Server Strings

Split a delimited text with SQL Server

May 31, 2017

How to split a delimited text in SQL Server? The string to split can have a comma or a semicolon delimiter. Using an SQL Server query, you can cut a string compounded of …

Follow Us

Facebook
Facebook
fb-share-icon
Twitter
Visit Us
Follow Me
Tweet
WhatsApp

POPULAR POSTS

  • Calculate last month value in DAX with Power BI
    September 3, 2020
  • Time economy is key when you create a SQL Server partition.
    Create a SQL Server table partition
    August 26, 2020
  • SQL Server Violation of unique key constraint
    May 31, 2017
  • Delete Windows files recursively in cmd
    January 27, 2022

LATEST POSTS

  • Delete Windows files recursively in cmd
    January 27, 2022
  • Delete a file in Windows cmd
    January 26, 2022
  • Ralph Kimball’s bottom-up business intelligence modelling
    January 25, 2022
  • Download and install the OLEDB driver for Excel 2010
    January 24, 2022

2017 - 2022 | Expert-Only.net | Learn Microsoft IT by example © All rights reserved.