Viewing 3 posts - 1 through 3 (of 3 total)
This the modified version of the function that Steven Cameron has posted and works for any date range you enter...
--dbo.GetBusinessDays
CREATE function dbo.GetBusinessDays
(
@StartDate...
July 17, 2008 at 10:09 am
#844518
When linked to Excel SQL server will look for a table like section.
Thus by trying to read Sheet1 is not identified as a table section.
To acomplish such read you must...
July 17, 2008 at 7:51 am
#844398
simple... just use the datediff function...
update Test set workingdays = datediff(dd,startdate,enddate)
select * from Test
check help on date functions... JO
July 17, 2008 at 6:35 am
#844322