Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 any function to get the list of dates between 2

Author  Topic 

naidu4u
Starting Member

23 Posts

Posted - 2010-10-05 : 12:31:20
Hi

I was trying to get all the dates between two dates in my cognos report. I think we can do that thru UDF but am just wondering whether there is any function to get the list of dates between two specific dates so that there is no need for me to request the dba to add a UDF in database.

Thanks in advance.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-10-05 : 12:41:10
No standard function. you need to create a UDF like below

http://visakhm.blogspot.com/2010/02/generating-calendar-table.html

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

naidu4u
Starting Member

23 Posts

Posted - 2010-10-05 : 13:29:00
thank you...
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-10-05 : 13:33:28
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -