Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Content with tag String Manipulation Rss

   Items 1 to 20 of 69    Next 20 >>
 

Converting String Data to XML and XML to String Data

In general XML documents or fragments are held in strings as text markup. In SQL Server, XML variables and columns are instead tokenised to allow rapid access to the data within. This is fine, but can cause some odd problems, such as ' entitization'. What do you do if you need to preserve the formatting? As usual Rob Sheldon comes to our aid.   Read more...
By Additional Articles 2012/02/07 | Source: SimpleTalk | Category: xml
Rating: (not yet rated)  Rate this |  Briefcase | 2,470 reads

Strings and Defaults

By Gail Shaw 2012/01/26 | Category: t-sql
Rating: (not yet rated) |  Discuss |  Briefcase | 1,931 reads

Stored procedure to find and replace text in a text file

find and replace text in a text file using tsql   Read more...
By Gene Hunter 2012/01/23 | Source: SQLServerCentral.com | Category: string manipulation
Rating: |  Discuss |  Briefcase | 1,874 reads

Find occurence of any value in database!

Search entire database for occurrence of any text!  Read more...
By Reddy Software Solutions 0001/01/01 | Source: SQLServerCentral.com | Category: search
Rating: |  Discuss |  Briefcase | 4,607 reads

IsAlphaNumeric

This script will determine if a string is alphanumeric   Read more...
By Jon McGhee 2011/12/01 | Source: SQLServerCentral.com | Category: input validation
Rating: |  Discuss |  Briefcase | 933 reads

Find and Replace a String in the Whole Database

Find and Replace a string in all string fields (char, varchar, etc) of all tables in the database.  Read more...
By Luiz Barros 0001/01/01 | Source: SQLServerCentral.com | Category: string manipulation
Rating: |  Discuss |  Briefcase | 3,056 reads

Function to Expand Tab Characters

A function to replace tab characters with the correct number of spaces to align the text as originally intended.  Read more...
By Phil Factor 0001/01/01 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |  Briefcase | 1,963 reads

Retrieve numbers from a string

This function will take a string parameter and find all numbers in it.  Read more...
By Boyd Tyrrell 0001/01/01 | Source: SQLServerCentral.com | Category: string manipulation
Rating: |  Discuss |  Briefcase | 2,627 reads

Remove HTML tags from strings using the SQL Server CLR

It is recommended that you remove all special characters and HTML formatting. This task can be handled in TSQL code, however in this case I have the opportunity to use .NET and the power of the regular expressions to manage the string. In this tip, I'll build a CLR function which cleans up a string of HTML tags and special characters. I'll use Visual Studio 2010 with C# as the programming language. Check out this tip for my solution.  Read more...
By Additional Articles 2011/07/04 | Source: MSSQLTips.com | Category: sqlclr
Rating: (not yet rated)  Rate this |  Briefcase | 2,986 reads

Harnessing PowerShell's String Comparison and List-Filtering Features

When you are first learning PowerShell, it often seems to be an 'Alice through the looking-glass' world. Just the simple process of comparing and selecting strings can seem strangely obtuse. Michael turns the looking-glass into wonderland with his wall-chart of the PowerShell string-comparison operators and syntax  Read more...
By Additional Articles 2011/06/23 | Source: SimpleTalk | Category: powershell
Rating:  Rate this |  Briefcase | 2,014 reads

Get Item from Delimited List at Position

Returns the item from a delimited list at the specified position. Both position and delimiter are parameters.  Read more...
By Chad Casady 2011/03/10 | Source: SQLServerCentral.com | Category: udf
Rating: |  Discuss |  Briefcase | 897 reads

Prepend Value to Delimited List

Takes a delimited list and prepends a value to the beginning.  Read more...
By Chad Casady 2011/03/09 | Source: SQLServerCentral.com | Category: udf
Rating: |  Discuss |  Briefcase | 705 reads

Concatenating Rows

Often in database design we store different values in rows to take advantage of a normalized design. However many times we need to combine multiple rows of data into one row for a report of some sort. New author Carl P. Anderson brings us some interesting T-SQL code to accomplish this.  Read more...
By Carl P. Anderson 2011/03/04 (first published: 2009/10/14) | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |  Briefcase | 146,152 reads

Key Word Searches

This article from Todd Fifield shows a Way to avoid the dreaded LIKE operator in your queries and dramatically speed up keyword searches.  Read more...
By Todd Fifield 2011/02/28 | Source: SQLServerCentral.com | Category: string manipulation
Rating: |  Discuss |  Briefcase | 24,938 reads

String tokenizing / splitting

We often have need of string splitting in applications. I had need of one in some T-SQL development I am currently doing for a friend.  Read more...
By Irfan Baig 2011/02/25 | Source: SQLServerCentral.com | Category: string manipulation
Rating: |  Discuss |  Briefcase | 1,606 reads

SQL CLR Function for Email validation and string Split

I have added 2 functions here, one for email validation and another to split the string by specified separator by user.  Read more...
By Bharat Panthee 2010/12/23 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |  Briefcase | 1,040 reads

Charpad - Character Padding Function

A generic character padding function. Useful for situations where you need fixed width formatting e.g. email reports.  Read more...
By Richard Doering 0001/01/01 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |  Briefcase | 1,746 reads

Hidden Formatting Troubles with STR() (SQL Spackle)

Fill in another bit of your T-SQL knowledge about STR(). It right justifies, rounds, and controls the output width of columns. Sounds perfect but here's why you might not want to use it.  Read more...
By Jeff Moden 2010/12/15 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |  Briefcase | 6,205 reads

Format Phone Number function

Function to format phone numbers entered as text.   Read more...
By Harsha Majety 2010/12/07 | Source: SQLServerCentral.com | Category: string manipulation
Rating: |  Discuss |  Briefcase | 1,600 reads
   Items 1 to 20 of 69    Next 20 >>
 
Tags
t-sql (35)    
delimited strings (6)    
sql server 2005 (6)    
t-sql aids (6)    
advanced querying (5)    
arrays (5)    
counter (5)    
development (5)    
nums (5)    
parse (5)    
sqlinsider scripts (5)    
table of numbers (5)    
tally (5)    
xml (5)    
blogs (3)    
sql server 7 (3)    
sqlclr (3)    
user defined function (udf) (3)    
2-dimensional arrays (2)    
udf (2)    
administration (1)    
array (1)    
charindex (1)    
coalesce (1)    
concatenate (1)    
cross apply (1)    
cte (1)    
delimiters (1)    
etl (1)    
function (1)    
input validation (1)    
integration services (ssis) (1)    
isnull (1)    
like (1)    
parsing column data (1)    
powershell (1)    
print (1)    
recursion (1)    
search (1)    
split string (1)    
sql spackle (1)    
tally table (1)    
text/ntext (1)    
truncation (1)    
user defined function (1)    
user-defined functions (1)    
xquery (1)