Click here to Skip to main content
Click here to Skip to main content

Most Commonly Used Functions in SQL Server 2005/2008

By , , 6 Aug 2012
 
Objective of this article is to put all mostly used function related in SQL Server 2005/2008 under a sinlge article. There are several function that we are used regularly in SQL Server 2005/2008. This article is will a common place for all those function with proper example.

But, I need your help. This Table of Contents and Article is editable by all Silver members and above. What I want you to do is replace the entries in the Table of Contents below add as many as function you aware on SQL Server 2005 or above. This will really help beginners to find out all of them under a single article.

Table of Contents

Objective

Objective of this article is to put all mostly used function related in SQL Server 2005. There are several function that we are used regularly in SQL Server 2005. This article is will a common place for all those function with proper example.

But, I need your help. This Table of Contents and Article is editable by all Silver members and above. What I want you to do is replace the entries in the Table of Contents below add as many as function you aware on SQL Server 2005 or above. This will really help beginners to find out all of them under a single article.

I am starting with few function related to DateTime function. I will update the article regular manner, but I expect a major contribution from you guys. Please don't forget to update the History list with your name and code project profile link.

Thanks in advance for supporting my one small initiative.

DateTime Function in SQL Server

Below are the most commonly used DateTime function in SQL Server.

  • GETDATE()
  • DATEADD()
  • DATEPART()
  • DATEDIFF()
  • DATENAME()
  • DAY()
  • MONTH()
  • YEAR()

GETDATE()

GETDATE() is very common used method which returns exact date time from the system. It does not accept any parameter. Just call it like simple function.

Example :

Declare @Date datetime 
set @Date = (SELECT GETDATE());
Print @Date 

OutPut:

Aug 15 2009  9:04PM 

DATEADD()

DATEADD() is used to add or subtract datetime. Its return a new datetime based on the added or subtracted interval.

General Syntax

 DATEADD(datepart, number, date)

datepart is the parameter that specifies on which part of the date to return a new value. Number parameter is used to increment datepart.

Example :

Declare @Date datetime 
set @Date = (SELECT GETDATE());
print  @Date -- Print Current Date
-- Adding 5 days with Current Date
SELECT DATEADD(day, 5,@Date ) AS NewTime

Output :

Aug 15 2009  9:19PM
NewTime
-----------------------
2009-08-20 21:19:15.170

DATEPART()

DATEPART() is used when we need a part of date or time from a datetime variable. We can use DATEPART() method only with select command.

Syntax

DATEPART(datepart, date)

Example :

-- Get Only Year
SELECT DATEPART(year, GETDATE()) AS 'Year'
-- Get Only Month
SELECT DATEPART(month, GETDATE()) AS 'Month'
-- Get Only hour
SELECT DATEPART(hour, GETDATE()) AS 'Hour

Output :

Year
-----------
2009
Month
-----------
8
Hour
-----------
21

DATEDIFF()

DATEDIFF() is very common function to find out the difference between two DateTime elements.

Syntax

DATEDIFF(datepart, startdate, enddate)

Example :

-- Declare Two DateTime Variable
Declare @Date1 datetime 
Declare @Date2 datetime 
-- Set @Date1 with Current Date
set @Date1 = (SELECT GETDATE());
-- Set @Date2 with 5 days more than @Date1
set @Date2 = (SELECT DATEADD(day, 5,@Date1 ))
-- Get The Date Difference
SELECT DATEDIFF(day, @Date1, @Date2) AS DifferenceOfDay

Output :

DifferenceOfDay
---------------
5 

DATENAME()

DATENAME() is very common and most useful function to find out the date name from the datetime value.

Example

-- Get Today 
SELECT DATENAME(dw, getdate()) AS 'Today Is'
-- Get Mont name
SELECT DATENAME(month, getdate()) AS 'Month'

Output :

Today Is
------------------------------
Saturday
Month
------------------------------
August

DAY()

DAY() is used to get the day from any date time object.

Example:

SELECT DAY(getdate()) AS 'DAY'

Output :

DAY
-----------
15

MONTH()

SELECT MONTH(getdate()) AS 'Month'

Output :

Month
-----------
8

YEAR()

SELECT YEAR(getdate()) AS 'Year'

Output :

Year
-----------
2009

String Functions

Some of the String Functions comes very handy at times. Let us discuss them one by one.

ASCII()

Returns the ASCII code value of the leftmost character of a character expression.

Syntax
ASCII ( character_expression ) 

Arguments: character_expression : Is an expression of the type char or varchar.

Return Types: Int 

Example:  

SELECT ASCII('A')  

SET TEXTSIZE 0
SET NOCOUNT ON
-- Create the variables for the current character string position 
-- and for the character string.
DECLARE @position int, @string char(15)
-- Initialize the variables.
SET @position = 1
SET @string = 'The codeProject'
WHILE @position <= DATALENGTH(@string)
   BEGIN
   SELECT ASCII(SUBSTRING(@string, @position, 1)),
      CHAR(ASCII(SUBSTRING(@string, @position, 1)))
    SET @position = @position + 1
   END
SET NOCOUNT OFF

Output:

-----------
65
----------- ----
84          T
----------- ----
104         h
----------- ----
101         e
----------- ----
and so on..... 
CHAR()  

Converts an int ASCII code to a character.  

Syntax  
CHAR ( integer_expression ) 

Arguments: integer_expression: Is an integer from 0 through 255. NULL is returned if the integer expression is not in this range.
Return Types:  character  
Example:  

SET TEXTSIZE 0
SET NOCOUNT ON
DECLARE @intCounter int
SET @intCounter = 0

WHILE (@intCounter<= 255)
	BEGIN
		SELECT 'CHAR - ' + CHAR(@intCounter) + '. ASCII - ' + CONVERT(VARCHAR,@intCounter) 
		SET @intCounter = @intCounter + 1
	END


SET NOCOUNT OFF

Output:

CHAR - !. ASCII - 33
------------------------------------------------
CHAR - ". ASCII - 34
------------------------------------------------
CHAR - #. ASCII - 35
------------------------------------------------
CHAR - $. ASCII - 36
------------------------------------------------
CHAR - %. ASCII - 37
------------------------------------------------
CHAR - &. ASCII - 38
------------------------------------------------
CHAR - '. ASCII - 39
------------------------------------------------
CHAR - (. ASCII - 40
------------------------------------------------

and so on.....   

NCHAR() 

Return a unicode character representing a number passed as a parameter.

Syntax 
NCHAR ( integer_expression )  

Return Types:  character 

Example : 

SELECT NCHAR(97) 

OutPut

This will return the leter "a"

DIFFERENCE()

Returns an integer value that indicates the difference between the SOUNDEX values of two character expressions.

Syntax
DIFFERENCE ( character_expression , character_expression )

Arguments:character_expression: Is an expression of type char or varchar. character_expression can also be of type text; however, only the first 8,000 bytes are significant.

Return Types:  Int

Example :

USE AdventureWorks;
GO
-- Returns a DIFFERENCE value of 4, the least possible difference.
SELECT SOUNDEX('Green'), SOUNDEX('Greene'), DIFFERENCE('Green','Greene');
GO
-- Returns a DIFFERENCE value of 0, the highest possible difference.
SELECT SOUNDEX('Blotchet-Halls'), SOUNDEX('Greene'), DIFFERENCE('Blotchet-Halls', 'Greene');
GO

Output:

----- ----- ----------- 
G650  G650  4           

(1 row(s) affected)
                        
----- ----- ----------- 
B432  G650  0           

(1 row(s) affected)

LEFT() 

Returns the left most characters of a string.

Syntax
LEFT(string, length) 

string
Specifies the string from which to obtain the left-most characters.
 
length
Specifies the number of characters to obtain.

Example :

SELECT LEFT('Marufuzzaman',5)  

OutPut

Maruf

RIGHT()

Returns the right most characters of a string.

Syntax  
RIGHT(string, length) 

string
Specifies the string from which to obtain the left-most characters.
 
length
Specifies the number of characters to obtain.

Example :

SELECT RIGHT('Md. Marufuzzaman',12)  

OutPut

Marufuzzaman 

LTRIM() 

Returns a character expression after it removes leading blanks.

Example :

SELECT LTRIM('   Md. Marufuzzaman') 

OutPut

Md. Marufuzzaman

RTRIM()

Returns a character string after truncating all trailing blanks. 

Example : 

SELECT RTRIM('Md. Marufuzzaman    ') 

OutPut

Md. Marufuzzaman

REPLACE() 

Returns a string with all the instances of a substring replaced by another substring.

Syntax
REPLACE(find, replace, string)
Find
Specifies the string that contains the substring to replace all instances of with another.
 
Replace
Specifies the substring to locate.
 
String
Specifies the substring with which to replace the located substring.
 
Example :
SELECT REPLACE('The codeProject is ?.','?', 'your development resource')

OutPut:

 The codeProject is your development resource.

QUOTNAME()

Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.

Syntax
QUOTENAME ( 'character_string' [ , 'quote_character' ] )  
Arguments
' character_string '
Is a string of Unicode character data. character_string is sysname and is limited to 128 characters. Inputs greater than 128 characters return NULL.

' quote_character '
Is a one-character string to use as the delimiter. Can be a single quotation mark ( ' ), a left or right bracket ( [ ] ), or a double quotation mark ( " ). If quote_character is not specified, brackets are used.

Return Types: nvarchar(258)

Examples :
The following example takes the character string abc[]def and uses the [ and ] characters to create a valid SQL Server delimited identifier.

SELECT QUOTENAME('abc[]def')
OutPut:
[abc[]]def] 

REVERSE()

Returns a character expression in reverse order. 

Example :

SELECT REVERSE('namazzufuraM .dM')

Output: 

 Md. Marufuzzaman 

CHARINDEX

CharIndex returns the first occurance of a string or characters within another string. The Format of CharIndex is given Below:

CHARINDEX ( expression1 , expression2 [ , start_location ] )
Here expression1 is the string of characters to be found within expression2. So if you want to search ij within the word Abhijit, we will use ij as expression1 and Abhijit as expression2. start_location is an optional integer argument which identifies the position from where the string will be searched. Now let us look into some examples :

SELECT CHARINDEX('SQL', 'Microsoft SQL Server') 

OUTPUT:

11


So it will start from 1 and go on searching until it finds the total string element searched, and returns its first position. The Result will be 0 if the searched string is not found.

We can also mention the Start_Location of the string to be searched.

EXAMPLE:

SELECT CHARINDEX('SQL', 'Microsoft SQL server has a great SQL Engine',12)

So in the above example we can have the Output as 34 as we specified the StartLocation as 12, which is greater than initial SQL position(11).

PATINDEX

As a contrast PatIndex is used to search a pattern within an expression. The Difference between CharIndex and PatIndex is the later allows WildCard Characters.

PATINDEX ( '%pattern%' , expression)

Here the first argument takes a pattern with wildcard characters like '%' (meaning any string) or '_' (meaning any character).

For Example
PATINDEX('%BC%','ABCD')

Output:  

2


Another flexibility of PATINDEX is that you can specify a number of characters allowed within the Pattern. Say you want to find all of the records that contain the words "Bread", or "bread" in a string, You can use the following :

SELECT PATINDEX('%[b,B]read%', 'Tommy loves Bread') 

In this example, we mentioned both b and B in square brackets. The Result will be 13 which is same if we have searched in 'Tommy loves bread'.

LEN

Len is a function which returns the length of a string. This is the most common and simplest function that everyone use. Len Function excludes trailing blank spaces.

SELECT LEN('ABHISHEK IS WRITING THIS')

This will output 24, it is same when we write LEN('ABHISHEK IS WRITING THIS ') as LEN doesnt take trailing spaces in count.

STUFF


Stuff is another TSql Function which is used to delete a specified length of characters within a string and replace with another set of characters. The general syntax of STUFF is as below :

STUFF(character_expression1, start, length, character_expression2)Character_Expression1 represents the string in which the stuff is to be applied. start indicates the starting position of the character in character_expression1, length is the length of characters which need to be replaced. character_expression2 is the string that will be replaced to the start position.

Let us take an example :

SELECT STUFF('SQL SERVER is USEFUL',5,6,'DATABASE')

So the result will be :
SQL DATABASE is USEFUL

SUBSTRING


Substring returns the part of the string from a given characterexpression. The general syntax of Substring is as follows :

SUBSTRING(expression, start, length)

Here the function gets the string from start to length. Let us take an example below:

SELECT OUT = SUBSTRING('abcdefgh', 2, 3)

The output will be "bcd".
Note : substring also works on ntext, VARCHAR, CHAR etc.

LOWER / UPPER


Anoter simple but handy function is Lower / UPPER. The will just change case of a string expression. For Example,

SELECT UPPER('this is Lower TEXT') 


Output:
THIS IS LOWER TEXT

Message to All Silver Member and Above

This Table of Contents and Article is editable by all Silver members and above. What I want you to do is replace the entries in the Table of Contents add as many as function you aware on SQL Server 2005 or above. This will really help beginners to find out all of them under a single article.

Thanks in advance for supporting my small initiative.

History

Draft Version Posted : 15th Aug. 09 - Abhijit Jana

Second Version: 16th Aug. 09 - Abhishek Sur
Updates: Added String Functions.  

Third Version: 18th Aug. 09 - Md. Marufuzzaman
Updates: Added some more useful String Functions. 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Authors

Abhijit Jana
Software Developer (Senior)
India India
.NET Consultant | Former Microsoft MVP - ASP.NET | CodeProject MVP, Mentor, Insiders| Technology Evangelist | Author | Speaker | Geek | Blogger | Husband
 
Blog : http://abhijitjana.net
Web Site : http://dailydotnettips.com
Twitter : @AbhijitJana
My Kinect Book : Kinect for Windows SDK Programming Guide
Follow on   Twitter

Abhishek Sur
Architect
India India
Did you like his post?
 
Oh, lets go a bit further to know him better.
Visit his Website : www.abhisheksur.com to know more about Abhishek.
 
Abhishek also authored a book on .NET 4.5 Features and recommends you to read it, you will learn a lot from it.
http://bit.ly/EXPERTCookBook
 
Basically he is from India, who loves to explore the .NET world. He loves to code and in his leisure you always find him talking about technical stuffs.
 
Presently he is working in WPF, a new foundation to UI development, but mostly he likes to work on architecture and business classes. ASP.NET is one of his strength as well.
Have any problem? Write to him in his Forum.
 
You can also mail him directly to abhi2434@yahoo.com
 
Want a Coder like him for your project?
Drop him a mail to contact@abhisheksur.com
 
Visit His Blog

Dotnet Tricks and Tips



Dont forget to vote or share your comments about his Writing
Follow on   Twitter   Google+

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralMy vote of 5memberWhiteOsoBDN24-Apr-13 22:07 
good article for beginners,
 
Thanks for your work
GeneralMy vote of 2memberBrett Phipps at MFA31-Oct-12 10:34 
This is definitely not a SQL Server Books Online copy because it's replete with grammar and spelling errors.
 
That being said, I guess this could be useful to others, but there are so many sources of this same information that it seems like a waste of time if you ask me.
Generalyes most regular used functions!!memberAmit kumar pathak31-Aug-12 3:43 
yes most regular used functions!!
GeneralMy vote of 4membermagicpapacy12-Aug-12 20:47 
Useful for beginners
GeneralMy vote of 5memberii_noname_ii7-Aug-12 3:48 
I like this, because it's easier to navigate the anchors here in TCP. On MS pages for example, this would take 20-30 clicks.
(Could have a similar one, but for "commonly used" user functions /sps.. ).
GeneralMy vote of 1memberBad code hunter6-Aug-12 19:33 
SQL Server Book copy
GeneralRe: My vote of 1memberAbhishek Sur15-Aug-12 12:07 
No its not.
Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
Visit My Website-->


www.abhisheksur.com

GeneralMy vote of 1memberSalCon6-Aug-12 15:00 
Nothing new
GeneralMy vote of 5memberTushar_Patil20-Mar-12 20:54 
Fantastic Article keep It Up........
GeneralMy vote of 3membercandan27-Dec-11 21:14 
nothing new
GeneralMy vote of 5memberAMEL HUSIC1-Sep-11 3:44 
This is well explained, easy to understand it. Thanks a lot!
GeneralHi CompanionmemberAnil Srivastava22-Mar-11 2:59 
Great Article 5 from me.
Do you have any resource on LinqTOSql
Anil srivastava
Pune(9552496075)
GeneralMy vote of 5memberSChristmas21-Dec-10 3:59 
Good work
GeneralMy vote of 5memberthatraja6-Oct-10 21:13 
Cool bunch.....but i was missed this one & found just now
GeneralMy vote of 5memberthesharad27-Sep-10 23:02 
ppppppppppppppp
GeneralExcellent articlememberkbui4-Sep-10 13:11 
Big help for me. Thank you for writing this article.
GeneralRe: Excellent articlemvpAbhijit Jana12-Sep-10 18:10 
Yeah Thanks. This has been written by few authors. All Silver member can update this article.

GeneralWell Done!memberRoger Wright21-Nov-09 7:16 
I'm just getting started in SQL Server programming; the last system I worked with extensively was Paradox, so I've been out of things for a while. This is just the sort of quick reference I need to help me get back into things. Thanks! Big Grin | :-D
 
"A Journey of a Thousand Rest Stops Begins with a Single Movement"

GeneralRe: Well Done!mvpAbhijit Jana21-Nov-09 20:08 
Thanks Roger. Rose | [Rose]
GeneralNice...memberShivprasad koirala25-Aug-09 7:27 
Keep it up.
 
Visit my 500 videos on WCF,WPF,WWF,Silverlight,UML design patters @ http://www.questpond.com

GeneralRe: Nice...mvpAbhijit Jana25-Aug-09 7:51 
Thank you Sir !
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralAnother Stuff To Be AddedmemberSundeep Ganiga20-Aug-09 20:22 
Convert Function for different DateTime Formats.
If Possible Try to add this.
 
Your Articles are really great and easy to understand abhijit.
 
select CONVERT(char (2),month(getdate())) + ' ' + CONVERT(char
(2),Day(getdate())) + ' ' + CONVERT(char (4),Year(getdate()) )
 
--1 101 USA mm/dd/yy
Select getdate(), Convert (Varchar(10), getdate(),101)
 
--2 102 ANSI yy.mm.dd
Select getdate(), Convert (Varchar(10), getdate(),102)
 
--3 103 British/French dd/mm/yy
Select getdate(), Convert (Varchar(10), getdate(),103)
 
--4 104 German dd.mm.yy
Select getdate(), Convert (Varchar(10), getdate(),104)
--5 105 Italian dd-mm-yy
Select getdate(), Convert (Varchar(10), getdate(),105)
 
--6 106 - dd mon yy
Select getdate(), Convert (Varchar(10), getdate(),106)
 
--7 107 - Mon dd, yy
Select getdate(), Convert (Varchar(10), getdate(),107)
 
--8 108 - hh:mm:ss
Select getdate(), Convert (Varchar(10), getdate(),108)
 
-- 9 or 109 (*) Default + milliseconds mon dd yyyy hh:mi:ss:mmmAM (or PM)
Select getdate(), Convert (Varchar(10), getdate(),109)
 
--10 110 USA mm-dd-yy
Select getdate(), Convert (Varchar(10), getdate(),110)
 
--11 111 JAPAN yy/mm/dd
Select getdate(), Convert (Varchar(10), getdate(),111)
 
--12 112 ISO yymmdd
Select getdate(), Convert (Varchar(10), getdate(),112)
 
--14 114 - hh:mi:ss:mmm(24h)
Select getdate(), Convert (Varchar(10), getdate(),114)
 
-- 20 or 120 (*) ODBC canonical yyyy-mm-dd hh:mi:ss(24h)
Select getdate(), Convert (Varchar(10), getdate(),120)
 
-- 21 or 121 (*) ODBC canonical (with milliseconds) yyyy-mm-dd
--hh:mi:ss.mmm(24h)
Select getdate(), Convert (Varchar(10), getdate(),121)
 
-- 126(***) ISO8601 yyyy-mm-dd Thh:mm:ss.mmm(no spaces)
Select getdate(), Convert (Varchar(10), getdate(),126)
 
-- 130* Hijri**** dd mon yyyy hh:mi:ss:mmmAM
Select getdate(), Convert (Varchar(10), getdate(),130)
 
-- 131* Hijri**** dd/mm/yy hh:mi:ss:mmmAM
Select getdate(), Convert (Varchar(10), getdate(),131)
 
Thumbs Up | :thumbsup: All The Best For Further Articles.
 
Sundeep Ganiga
When the only tool you have is a hammer, everything looks like a nail.
Come Forth Yourself to Click "Good Answer" for any expected solution.
Let us Support our C Project Programmers who provide solutions here.

GeneralRe: Another Stuff To Be AddedmvpAbhijit Jana20-Aug-09 20:34 
Thanks Sandeep,
For your valuable Input. I will update this article and let you know. Please share your suggestion to improve it.
 
Thanks !
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralMy vote of 1memberChamadness18-Aug-09 0:58 
Useless as is. Nothing new contributed.
GeneralRe: My vote of 1mvpAbhijit Jana18-Aug-09 6:56 
Chamadness wrote:
Useless as is. Nothing new contributed.

This is nothing new for your as well as me or may be many one. BUT, it may helpful for many many beginners to refferes this article where they can find out all the commonly used function under a same article.
 
Thanks for Vote ! But, I am expect contribution from you too.
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralRe: My vote of 1memberAbhishek Sur18-Aug-09 9:32 
"A vote is like a rifle; its usefulness depends upon the character of the user." - Theodore Roosevelt
 
So something may look to you very simple and useless, but might be a great help for others. Dont think that you know everything, there might be something very common which might be unknown to it.
 
So dont go on what is contributed... go on how it is contributed.
 
Hope you got it. 5 from me to this article. Thumbs Up | :thumbsup:
 
And I must thank Abhijit, for his initiative here, and also letting me to contribute here in his article. Thumbs Up | :thumbsup: Thumbs Up | :thumbsup:
 
Abhishek Sur

My Latest Articles
Create CLR objects in SQL Server 2005
C# Uncommon Keywords
Read/Write Excel using OleDB

Don't forget to click "Good Answer" if you like to.

GeneralRe: My vote of 1memberHristo Bojilov19-Aug-09 5:18 
Useless for you doesn't means useless at all.But the explnations are very nice which is the most important. Smile | :) That's why I gave my five.
 
Life is a stage and we are all actors!

GeneralRe: My vote of 1memberSkGyan23-Aug-09 1:40 
very helpful for me...keep it up Abhijit.
 
Thanks
Sushil
GeneralRe: My vote of 1mvpAbhijit Jana23-Aug-09 1:42 
Thanks ! Smile | :)
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralRe: My vote of 1memberShivprasad koirala25-Aug-09 7:30 
Thats too harsh. These are common functions where developers get stuck. I hope you will appreciate the hardwork put by the author and change your votes.
 
Visit my 500 videos on WCF,WPF,WWF,Silverlight,UML design patters @ http://www.questpond.com

GeneralRe: My vote of 1mvpAbhijit Jana25-Aug-09 7:53 
People votes only based on their opinion, rather than thinking of object.
 
As per the vote, its fine . But its really disappointed when we got vote like this after so much efforts. And an author can understand Smile | :)
 
I would request you for few contribution from your side too.
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

QuestionEver used Help? Pressed F1?memberChamadness18-Aug-09 0:57 
Why re-invent the wheel? There is enough documentation in SQL Reference!Confused | :confused:
 
To code, or not: Too code!

AnswerRe: Ever used Help? Pressed F1?mvpAbhijit Jana18-Aug-09 2:48 
Chamadness wrote:
Why re-invent the wheel?

Because to collect all the mostly common used function in SQL Server 2005/2008 under a single article, so that, Any beginners can take a reference of it rather than roaming around the internet.
 
This article is editable to all Silver and Above member. So you can contribute it over her too.
 
Thank you So much !
 
Chamadness wrote:
There is enough documentation in SQL Referenc

 
You are right ! But this article may helpful to many beginners !
 
Thanks again !
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralUseful reference...memberRajesh Pillai17-Aug-09 22:33 
Thanks.
 
Enjoy Life,
Rajesh Pillai
http://rajeshpillai.blogspot.com/
http://simply-url.blogspot.com/

 

GeneralRe: Useful reference...mvpAbhijit Jana17-Aug-09 23:03 
Thanks Rajesh. I would request you to give some input.
 
Thanks again !!
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralIt's nice, Few commentsgroupMd. Marufuzzaman16-Aug-09 19:14 
Could you add some more about how the functions used for data filtering as well as various report generation...Smile | :)
5 from me Smile | :)
 
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.
 
Thanks
Md. Marufuzzaman

GeneralRe: It's nice, Few commentsmvpAbhijit Jana16-Aug-09 19:45 
Thanks !
 
I made it public for all. Silver and Above member can update this article.
So, I am expecting some help from you too.
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralRe: It's nice, Few commentsgroupMd. Marufuzzaman17-Aug-09 3:01 
I will let you know about my contributions…Smile | :)
 

 
Thanks
Md. Marufuzzaman
GeneralRe: It's nice, Few commentsmvpAbhijit Jana17-Aug-09 7:30 
cool Wink | ;)
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralRe: It's nice, Few commentsgroupMd. Marufuzzaman17-Aug-09 19:49 
Today I add some more useful SQL string functions.. I hope that you will check it out..
This is an excellent idea.. we will build our own resource to get quick help on SQL functions..
I hope every one should contribute when they are free, lets hope for the best ..Thumbs Up | :thumbsup: ..Smile | :)
 

 
Thanks
Md. Marufuzzaman
GeneralRe: It's nice, Few commentsmvpAbhijit Jana17-Aug-09 23:08 
Thank you so much Marufuzzaman for your contribution. I really appreciate it. Seems some formatting issue is there. I will fix those as soon as possible.
 
I have another plan. Will published soon. Before that, I would like to personally contact with you to make a final decisions. Here is my email id 'mca_abhijit@yahoo.co.in'. Please drop me a mail.
 
Thanks again !!!
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralAnother Great Articlememberspoodygoon15-Aug-09 16:01 
Once again it is simple and straight forward. I would however like to see you add in the proper usage of functions. One of the most common mistakes I see is miss used functions. For example if you have to use a function in a join make sure it is on the table you joining from so you can still use the index from the table you are joining to.
 
Maybe that should be another article, but you seem to have a gift for simplifying your articles so I would nice to see you break the proper usage down as well.
GeneralRe: Another Great ArticlemvpAbhijit Jana15-Aug-09 20:14 
The objective of this article is to put all commonly used function in a sigle article. I have gave permission to Silver and above member so that they can edit and contribute.
 
I am also expecting from you too. Thank you so much !
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
View My Latest Article

GeneralRe: Another Great Articlememberspoodygoon16-Aug-09 3:52 
Wow thanks I'll give it a try, I don't think I can write as good as you but I'll give it a go.
 
You are right was I was asking about was a bit to much for this article, I'll put something together and get back with you.
GeneralRe: Another Great ArticlemvpAbhijit Jana16-Aug-09 8:21 
Thanks you so much ! Just drop me a message after done. And dont forget to update History section.
 
Thanks for your support !! Thumbs Up | :thumbsup:
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralGood to See the articlememberAbhishek Sur15-Aug-09 12:09 
Thanks for your lovely initiative to have an article updated by all of us.
I have updated with some String Functions. Hope to see some more updates to the article soon.
 
5 from me. Thumbs Up | :thumbsup: Thumbs Up | :thumbsup:
 
Abhishek Sur

My Latest Articles
Create CLR objects in SQL Server 2005
C# Uncommon Keywords
Read/Write Excel using OleDB

Don't forget to click "Good Answer" if you like to.

GeneralRe: Good to See the articlemvpAbhijit Jana15-Aug-09 12:13 
Abhishek Thank you so much !!Thumbs Up | :thumbsup:
This is really great ! Keep Updating this article.
Thanks for your support !
 
Just drop me a message over here whenever you will do some update on it Smile | :)
 
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
View My Latest Article

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130617.1 | Last Updated 6 Aug 2012
Article Copyright 2009 by Abhijit Jana, Abhishek Sur
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid