Technical Article

Campare Case Insensitive  CampareCaseInsensitive

Case Insensitive Camparison remains a problem for most developers since SQL Server not supports any built in function for these purpose here is one wich compares varchar strings and returns 1 is mathes and 0 other wiseselect dbo.CampareCaseInsensitive('A','a')

You rated this post out of 5. Change rating

2007-03-29 (first published: )

81 reads

Technical Article

Match Date Only

Here is a simple function to compare datepart of datetime fields , (no need to say ignores hour t,min,sec ... ) isDateMatch(@date1,@date2 ) retruns 1 if the datepart matches else returns 0regardsjohn

2 (1)

You rated this post out of 5. Change rating

2007-03-21 (first published: )

193 reads

Technical Article

Convert Numeric Figures into Words

Hi guys    What about a function that converts a number figure into words.This sample script is to demonstrate the procedural capabilities of SQL Server . Samples  select fig2words(10) will give --Ten-- ,select fig2words(103) will give --one hundred and three --    The author uses much under utilized capability of SQL Server the recursive function calls to […]

You rated this post out of 5. Change rating

2003-11-11

551 reads

Blogs

My 2024 in Data: Reading

By

This is my last week of the year working (I guess I come back...

Book Review – Agile Data Warehouse Design

By

I recently read the book Agile Data Warehouse Design – Collaborative Dimensional Modeling, from...

My 2024 in Data: Speaking

By

This is my last week of the year working (I guess I come back...

Read the latest Blogs

Forums

Need ADF pipeline suggestion to copy 1 million files

By varunkum

I have an ADF pipeline that copies Files from source to destination. Both Source...

Backup issues

By Bruin

I''m running a stripped backup (2 files) to a Network share. It's a 32gig...

Function Defaults

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Function Defaults

Visit the forum

Question of the Day

Function Defaults

I have created this function in SQL Server 2022:

CREATE FUNCTION dbo.AddInt (@one INT, @two INT = 1) RETURNS INT
AS
BEGIN
    RETURN @one + @two
END
How can I call this and invoke the default value for @two?

See possible answers