About 15,000 results
Open links in new tab
  1. SQL Server vs Oracle: Substring – SQLServerCentral

    Feb 13, 2009 · Substring isn’t it though; SQL Server has a few tricks up it’s sleeve, LEFT & RIGHT (). These two functions take either the left N number of characters or the right N number of characters ...

  2. Which is more efficient? WHERE SUBSTRING = ...or

    Jun 23, 2011 · Hi all, I'm a SQL newbie who sort of inherited a 2005 db. I've got a query that returns a SUBSTRING of a field value in one column. I need to run this query today to only pull records that have a ...

  3. Extracting string after and before a Character/Pattern

    Aug 19, 2009 · An easy way is to get hold of the basics. Function used : SUBSTRING,CHARINDEX Substring syntax : SUBSTRING(string to search, position to start, length of characters to be extracted) CHARINDEX ...

  4. Get the substring after second white space - SQLServerCentral

    Feb 21, 2012 · The fastest method is probably using DelimitedSplit8K to parse the string, then a PIVOT table to turn the rows into columns so you can do the concatenation.

  5. SUBSTRING a DATETIME value in a SELECT statement

    Apr 19, 2006 · For starters, get your close paren from the end of the expression to the end of the cast function... SELECT SUBSTRING(CAST(date AS NVARCHAR(11)), 1, 10)..and then explain (as pam asked) the ...

  6. Get Last Name, First name and Middle Name from Full Name

    Nov 23, 2009 · Here's a bit of code for SQL Server 2000 that's equivalent to the 2k5 code I "cheated" with.:-D It uses "derived tables" instead of CTE's. Both are sometimes referred to as "inline views". CREATE ...

  7. Finding the substring where the start position is the nth …

    Jun 30, 2011 · SUBSTRING(share_name, position_4 + 1, position_5 - position_4 - 1) AS directoy_name FROM slash_positions ; There are no special teachers of virtue, because virtue is taught by the whole community.

  8. Determining if a substring is a number...with variable substring ...

    Mar 8, 2010 · you can use a tally or number table to split the string and do your comparison against each position.-- create a temp tally table for test and fill it with sequential numbers starting at 1

  9. Removing part of string before and after specific character using ...

    Feb 13, 2009 · To remove the part of string before the specific character, you use these transact-sql string functions as follow: SELECT REPLACE(SUBSTRING(string_expression, CHARINDEX(expression_to_find, string ...

  10. Substring Date to DD/MM/YYYY – SQLServerCentral Forums

    Jan 1, 2015 · Substring Date to DD/MM/YYYY Forum – Learn more on SQLServerCentral. I have a field called Period which stores a date range, i.e '01/01/15 - 20/01/15'