Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
SQL Server Articles
Submit Article
Home
»
Articles
»
SQL Server
»
String Functions
RSS Feeds
String Functions
Posted By:
Sarita Patel
Category:
SQL Server
Views:
2035
This article explains STRING functions available in sql server with examples.
String functions performs an operation on a string value. It returns either a string or numeric value.
All string functions are deterministic i.e It returns a same value any time they are called with a given set of values except CHARINDEX and PATINDEX.
Below are the string functions available in sql server.
ASCII
CHAR
STR
LEFT
RIGHT
UPPER
LOWER
LTRIM
RTRIM
NCHAR
SPACE
CHARINDEX
PATINDEX
SUBSTRING
DIFFERENCE
REPLACE
QUOTENAME
LEN
REVERSE
STUFF
REPLICATE
SOUNDEX
UNICODE
Share:
Previous Post:
YEAR Function
Next Post:
ASCII Function
Didn't find what you were looking for? Find more on
String Functions
Or get
search suggestion and latest updates
.
Sarita Patel
author of String Functions is from
United States
.
View All Articles
Related Articles and Code:
Program to copy one string s2 to another string s1 using strcopy function from string.h
Program to copy one string s2 to another string s1 without using strcopy function
Program to copy one string to another by coding and using string function
Program to append one string s2 to another string s1 i.e. concatenation of two strings use strcat function from string.h
Program to compare strings, concatenate strings, copy string and display part of a string
Write a function to perform string operation i.e. split, join, length, substring using pointer without using any string function
Program to compare one string s2 to another string s1. Print the difference of first unmatched characters using strcmp function from string.h
Program to compare one string s2 to another string s1 and also first unmatched characters without using strcmp function from string.h
Program to find first occurrence of a character in a string and also position in string using strchr function from string.h
Program to copy one string s2 to another string s1. (Use strcopy function from string.h)
Program to copy one string s2 to another string s1. (Without using strcopy function from string.h)
Program to compare one string s2 to another string s1. Print the difference of first unmatched characters (Use strcmp function from string.h)
Program to concatenate of two strings without using strcat function
Program to find the length of a string taken from user without using strlen function
FUNCTION XSTRCHR() WHICH SCANS A STRING FROM START TO END IN SEARCH OF A CHARACTER
Illustration of string handling functions
Program to read string using gets() function and display in upper case
String functions
String functions
Write a query to change the case of strings using lower and upper function
Other Interesting Articles in SQL Server:
SIN Function
fn_trace_getfilterinfo Function
@@PROCID - PROCID Function
MONTH Function
REPLICATE Function
String Functions
DATEADD Function
OR Operator
@@SPID - SPID Function
FREETEXTTABLE Function
REVERSE Function
INDEXKEY_PROPERTY Function
Date Time Functions
String Concatenation Operator ( + )
fn_servershareddrives Function
@@ERROR - ERROR Function
Logical Operators
!> ( Not Greater Than ) Comparison Operator
ATAN Function
@@IDENTITY - IDENTITY Function
Please enter your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
SQL Server
View All
Aggregate Functions
Analytical Functions
Configuration Function...
Constraints
Cursor
Cursor Functions
Data Control Language
Data Definition Lang
Data Manipulation Lang
Data Type
Database
Date Time Functions
Functions
Index
Interview FAQ
Joins
Math Functions
Meta Data Functions
Miscellaneous
Operator
Rowset Functions
Security Functions
Select Query
Sequence
Stored Procedures
String Functions
Sub Query
System Functions
System Statistical Fun...
Text and Image Functio...
Transaction Control La...
Trigger
View
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Unix / Linux / Ubuntu
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint