SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Broadcast calender generator
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

267 Posts

Posted - 03/21/2013 :  12:07:19  Show Profile  Reply with Quote
Hi guys,

Did anyone ever have to create a function/stored procedure that would take a date as an input and generate the values for the broadcast calender like:

- Media_Week_Start_Date
- Media_Week
- Media_Month
- Media_MonthName
- Media_Quarter
- Media_Year

Thanks in advance!

Slow But Sure Yak Herding Master

United Kingdom
3608 Posts

Posted - 03/21/2013 :  12:42:53  Show Profile  Reply with Quote
Datepart() will be your friend.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000