Viewing 15 posts - 10,336 through 10,350 (of 26,489 total)
August 1, 2012 at 7:11 pm
Here are two more choices, one a scalar function and the second an in-line table valued function.
create function dbo.scFirstBusinessDay(
@YEAR int
)
returns datetime
as
begin
declare @FirstDay...
August 1, 2012 at 6:55 pm
Mordred (8/1/2012)
Lynn Pettis (8/1/2012)
Mordred (8/1/2012)
August 1, 2012 at 6:27 pm
Please don't double post. Please post replies here.
August 1, 2012 at 4:32 pm
Mordred (8/1/2012)
August 1, 2012 at 4:23 pm
Chrissy321 (7/31/2012)
Yes exactly like that. Thanks (again) ColdCoffee.My comment about leap years was clearly non-sensical given my requirements.
What would you expect for a startdate = '20120201' and an enddate =...
August 1, 2012 at 3:47 pm
Evil Kraig F (8/1/2012)
Lynn Pettis (8/1/2012)
Evil Kraig F (8/1/2012)
GilaMonster (7/31/2012)
Evil Kraig F (7/31/2012)
Ugh, sick for a week blows. I miss anything of import since last Tuesday?
Vacation! Mine! (no, you're...
August 1, 2012 at 3:44 pm
CELKO (8/1/2012)
CREATE TABLE Report_Periods
(report_name CHAR(10) NOT NULL PRIMARY KEY,
report_start_date DATE NOT NULL,
...
August 1, 2012 at 3:42 pm
Evil Kraig F (8/1/2012)
GilaMonster (7/31/2012)
Evil Kraig F (7/31/2012)
Ugh, sick for a week blows. I miss anything of import since last Tuesday?Vacation! Mine! (no, you're not invited 🙂 )
LOL! ...
August 1, 2012 at 3:31 pm
morepainot (8/1/2012)
Lynn Pettis (8/1/2012)
August 1, 2012 at 3:26 pm
Have you considered something like this:
...
left join dbo.A06_AccountSalutations a06
on (a01.FamilyId = 0
and a01.AccountNumber = a06.AccountNumber)
and a06.SalutationType = 'FORMAL')
union
...
left...
August 1, 2012 at 3:20 pm
MarbryHardin (8/1/2012)
Scott D. Jacobson (8/1/2012)
MarbryHardin (8/1/2012)
And consider if you want to supply variables...
August 1, 2012 at 3:00 pm
One question, do you need to report the error messages recorded if you enter the CATCH block?
August 1, 2012 at 2:45 pm
Looking really good. You are on the right track for what you need to accomplish. I like the code you are writing, it is well structured, easy to...
August 1, 2012 at 2:41 pm
Also, this code is not what you should necessarily use directly. It should probably be extended and expanded to make use of your logging tables, etc. It is...
August 1, 2012 at 1:57 pm
Viewing 15 posts - 10,336 through 10,350 (of 26,489 total)