Viewing 15 posts - 2,551 through 2,565 (of 4,087 total)
Since you are on SQL 2012, you should start using extended events. Using Profiler for traces has been deprecated.
First, you probably are not capturing all events, and you probably...
June 28, 2016 at 8:43 am
durga.palepu (6/28/2016)
I see only the date expression in this query, do you use any other expression also?
Also you can rewrite date_begin...
June 28, 2016 at 8:36 am
Phil Parkin (6/24/2016)
June 24, 2016 at 12:18 pm
I think that Luis' solution will perform faster than any looping solution, especially once the square root short circuit is added.
Drew
June 24, 2016 at 10:29 am
Phil Parkin (6/24/2016)
If you are a fan of MERGE, please take a read of this[/url] and decide whether, perhaps, you should reconsider.
And rather than using...
June 24, 2016 at 8:10 am
By definition, an aggregate combines separate elements into one whole. This is exactly what you are doing with a pivot, which is why a pivot requires an aggregate. ...
June 23, 2016 at 12:41 pm
, CASE
WHEN [Type] = 1 THEN 26
WHEN [Type] = 2 THEN 27
...
June 23, 2016 at 11:07 am
You don't need CASE statements.
select *
from tickets
where ticketdate = CAST(DATEADD(HOUR, -6, GETDATE()) AS DATE)
If you have a range that you are trying to fit into another range of the same...
June 22, 2016 at 12:21 pm
The problem is that you are trying to add a string to a date.
set @SQLQuery = 'SELECT RequestDate, IP, RequestID, CustomerID, LoanID, Ranking FROM ' + @TableName + 'where RequestDate...
June 21, 2016 at 9:01 am
Luis Cazares (6/20/2016)
An alternative to get both in a single function is to convert them to a string: CONVERT(char(6), yourDateColumn, 112)
I'm not sure...
June 20, 2016 at 1:20 pm
BrainDonor (6/15/2016)
June 15, 2016 at 7:18 am
Jacob Wilkins (6/13/2016)
SELECT X1,
AllVar
FROM your_table
CROSS APPLY
...
June 14, 2016 at 8:57 am
pharmkittie (6/11/2016)
June 13, 2016 at 9:34 am
After 390+ visits, you should know how to post data to a forum to get the best results. I have a link in my signature if you need a...
June 13, 2016 at 9:15 am
Viewing 15 posts - 2,551 through 2,565 (of 4,087 total)