Viewing 15 posts - 4,621 through 4,635 (of 26,490 total)
Jo6205 (8/27/2015)
Thanks for your quick response. When I use IF, I receive an error - Incorrect syntax near the keyword 'IF'.
I'm...
August 27, 2015 at 10:42 am
blake.hartman (8/25/2015)
Lynn Pettis (8/25/2015)
blake.hartman (8/25/2015)
It should be this
DATEADD( ww, DATEDIFF( ww, 0, <dateparam>-1 ), 0 )
I thought I was going crazy, but someone copied the wrong...
August 25, 2015 at 10:32 am
blake.hartman (8/25/2015)
It should be this
DATEADD( ww, DATEDIFF( ww, 0, <dateparam>-1 ), 0 )
I thought I was going crazy, but someone copied the wrong grouping expression and...
August 25, 2015 at 10:15 am
Actually, this is the expected behavior.
What should it return for the Sunday date?
August 25, 2015 at 10:07 am
blake.hartman (8/25/2015)
However, we came across a scenario where this is not working
DECLARE @dt AS datetime
SET...
August 25, 2015 at 9:59 am
mariandalalau (8/25/2015)
you can check this link: http://sqlblog.com/blogs/paul_white/archive/2010/08/27/sorting-row-goals-and-the-top-100-problem.aspx
Actually the problem on that forum is different, is based on the big difference on...
August 25, 2015 at 9:54 am
Here is the real problem, we can't see what you see. It's like calling your mechanic and expecting him to fix your car without seeing it or touching it.
Everything...
August 24, 2015 at 2:06 pm
DuncEduardo (8/24/2015)
Sometimes, and I've been there myself, due to work pressures, it is often quicker to post...
August 24, 2015 at 10:41 am
So, I am going to ask again, can (and does) EndDate have dates that AREN'T 06/30/YYYY where YYYY is any given year? If so, and you don't want those...
August 21, 2015 at 12:48 pm
mtillman-921105 (8/20/2015)
Lynn Pettis (8/19/2015)
August 20, 2015 at 12:28 pm
serviceaellis (8/20/2015)
Jacob Wilkins (8/20/2015)
I'm assuming here that you're actually comparing the second version...
August 20, 2015 at 9:52 am
And then there are those Oracle people seeking help on a MS SQL Server forum and seem surprised that a T-SQL solution won't work on an Oracle server.
August 19, 2015 at 4:35 pm
Silver spoon, silver spoon, silver spoon, when are you going to admit you are in over your head and really need to find a different career.
August 19, 2015 at 4:03 pm
I could the see the problem from the git go:
DECLARE @TableName VARCHAR (50)
DECLARE @BatchSize int
DECLARE @ArchiveYear Date
DECLARE @RowCount int
SET @TableName = 'tblCall'
SET @BatchSize = (SELECT BatchSize FROM PrismDataArchive.dbo.ArchiveDriver WHERE TableName...
August 19, 2015 at 4:02 pm
Or this:
SELECT
*
FROM
[ThomasSci].[dbo].[tsi_gdserial_vw]
where
date_shipped >= cast(dateadd(day, -1, getdate()) as date) and
date_shipped < cast(getdate() as date)
order...
August 19, 2015 at 11:21 am
Viewing 15 posts - 4,621 through 4,635 (of 26,490 total)