Viewing 15 posts - 421 through 435 (of 2,458 total)
First, ditto everything Chris said.
How does SQL Server handle casts in the WHERE clause?
Not all that well. You are going to get an index scan instead of a,...
October 4, 2016 at 8:15 pm
You could do this:
WHERE CONVERT(DATE, Getdate())
NOT BETWEEN TRY_CONVERT(monthbegindate, datetime) AND TRY_CONVERT(monthenddate, datetime)
October 4, 2016 at 2:02 pm
drew.allen (10/4/2016)
October 4, 2016 at 1:41 pm
sp_msforeachdatabase is undocumented and overrated. That said, let's say you wanted to create a table named SomeTable in each db, you could do so like this:
EXEC sp_msforeachdb
'
USE ?;
IF...
October 4, 2016 at 1:24 pm
Perhaps something like this:
WHERE a.start_execution_date >= DATEADD(Hour,-4,getdate())
Edit: that's a "greater than or equal" sign above, it keeps messed up when I post.
October 3, 2016 at 3:12 pm
drew.allen (10/3/2016)
Alan.B (10/3/2016)
Here's a couple examples:
DECLARE @myv VARCHAR(MAX) = 'AB,CD,EF,GH,IJ';...
October 3, 2016 at 1:26 pm
Luis Cazares (10/3/2016)
Hi Alan, you're still missing the GetNumsAB definition. I'd be interested on checking out how everything works. 🙂
getnumsAB
CREATE FUNCTION dbo.GetNumsAB
(
@low bigint,
@high bigint,...
October 3, 2016 at 1:25 pm
We have a script for exactly this kind of thing; have a look at nsplit2B which you can find here[/url].
Here's a couple examples:
DECLARE @myv VARCHAR(MAX) = 'AB,CD,EF,GH,IJ';
SELECT *...
October 3, 2016 at 12:46 pm
Was this fixed in SSRS 2016?
It appears to be but I have not tested it. In BOL, for SSRS versions 2014 and earlier, it explicitly says for Chrome, "Printing and...
October 3, 2016 at 12:33 pm
ok, quick update. There does not seem to be a limit (I know you can do 2048 for sure).
For fun, play around with this code:
-- one time setup
USE...
September 30, 2016 at 2:40 pm
I was curious about this too and did a little research. There appears to be absolutely nothing about this out there about APPLY. Since APPLY is very similar to a...
September 30, 2016 at 2:19 pm
HappyGeek (9/30/2016)
Eirikur Eiriksson (9/30/2016)
Manic Star (9/30/2016)
djj (9/30/2016)
ChrisM@Work (9/30/2016)
Kaye Cahs (9/30/2016)
djj (9/29/2016)
Grumpy DBA (9/29/2016)
HappyGeek (9/29/2016)
CoatPaint
Brush
Hair
Today
Tomorrow
Evening
Deadline
target
Costco
September 30, 2016 at 12:55 pm
Is it possible that you could post the actual execution plan instead of the estimated plan? That will tell us much more. What you posted may not be the plan...
September 30, 2016 at 10:11 am
I'm out of time but perhaps this can get you started. You can use DelimitedSplit8K_LEAD (see link in my signature) to parse the string like this:
SELECT ItemNumber, item =...
September 29, 2016 at 2:48 pm
Can you really be an effective BI professional without C# [or front-end] development skills?
YES.
I've been a BI Developer/Architect/Consultant for ~7 years and I am a total .NET language novice. Front...
September 28, 2016 at 8:08 pm
Viewing 15 posts - 421 through 435 (of 2,458 total)