another option would be to write astored procedure that returns a table containing all dates between two given values - including dayofweek, holidays and other important information. Then you can just select count(*) from ... where dayofweek<>0 and dayofweek<>6.
↧