Viewing 14 posts - 91 through 104 (of 104 total)
Here's what I came up with. It looks like it's working.
CREATE FUNCTION [dbo].[AddBusinessDays]
(
@numOfDays As Integer, @DateBasis As Date
)
RETURNS date
AS
BEGIN
DECLARE @d as date
DECLARE @i as integer
SET @d = @DateBasis
IF @numOfDays...
April 25, 2011 at 6:45 pm
Well, ended up playing around in VBA to come up with this. Actually a bit easier than I thought. I post the T-SQL equivalent shortly. The idea is to increment...
April 25, 2011 at 4:39 pm
Thanks for that link. I realized over the weekend, that I was asking the wrong question. I don't need to adjust to the nearest week day, but rather need to...
April 25, 2011 at 3:36 pm
This looks promising.
http://www.sqltipsandtricks.com/2009/08/31/adding-and-subtracting-business-days-to-a-date/
April 21, 2011 at 7:55 pm
So check to see if the returned value is null and if it is return the lower boundary date?
April 20, 2011 at 1:15 pm
So go with two functions - one that extracts the alpha-prefix and the numeric from the value entered from the user and another that combines the two for display. Should...
October 28, 2010 at 11:49 am
Thanks a bunch that goes a long, long way to actually doing what I need to do.
October 28, 2010 at 10:35 am
And then break out the prefix from the criteria and apply the derived criteria against the derived columns?
October 28, 2010 at 7:58 am
bitbucket-25253 (3/1/2010)
CREATE Procedure Dbo.TrInven
@DOTNumber INT,
@OwnerId INT,
...
March 1, 2010 at 12:29 pm
I understand that IDENT_CURRENT will retrieve the identity value, but how do I incorporate that into a single SQL statement that INSERTS the child record, grabs the IDENTITY and then...
March 1, 2010 at 7:39 am
Problem solved.
The Server Admin had provided a password for the 'sa' account which I was not aware of. Once I got the password, I made the mistake of logging in...
February 26, 2010 at 1:11 pm
I was figuring that Windows Authentication was the best route. I've been using SQLExpress on my personal laptop and didn't consider the ramifications of trying to set it up in...
February 25, 2010 at 12:21 pm
I think that the admin may have setup a password for the sa account when he installed SQLServer on the machine.
Q: Which is preferred Windows Authentication or Windows/SQLServer (mixed)?
Q:...
February 24, 2010 at 1:24 pm
GilaMonster (2/24/2010)
david.c.holley (2/23/2010)
February 24, 2010 at 8:44 am
Viewing 14 posts - 91 through 104 (of 104 total)