Viewing 15 posts - 556 through 570 (of 1,193 total)
Looping through the tables and running a SELECT COUNT(*) against them could be quite resource-intensive if you have large tables (and it's good to avoid using the sp_MSForEach* procedures).
I'd just...
March 15, 2016 at 9:46 am
Briceston (3/15/2016)
Thanks for your insight fellas. The below example got me the result I was looking for.Much appreciated!
Count(CASE WHEN visit_date Between '2/1/2016' AND '2/29/2016' THEN 1 ELSE 0 END)
Unless...
March 15, 2016 at 9:29 am
sql-lover (3/14/2016)
March 14, 2016 at 2:41 pm
I've seen stuff about this before. The expression in the CASE isn't necessarily evaluated once and then that result used for each comparison in the CASE, as you might expect.
Instead,...
March 10, 2016 at 10:20 am
With so little detail around the announcement yet, for me it's hard to say how much it will affect my day-to-day work.
Of course, this initial marketing announcement said mid-2017, so...
March 8, 2016 at 2:46 pm
If this is just a one-time ad-hoc statement you want an easy way to construct, then Hugo's way will work nicely.
If you have to do this for a bunch of...
March 2, 2016 at 1:31 pm
Rich Mechaber (3/2/2016)
Return Types
Returns a value cast to the specified...
March 2, 2016 at 9:58 am
VastSQL (3/2/2016)
Thanks Perry & Jon,Why cant use same idea suggested by perry in the opposite way? Instead of blocking SSMS will only allow appname=.net
Just keep in mind that the application...
March 2, 2016 at 7:54 am
DaveGlobalOptions (3/2/2016)
March 2, 2016 at 6:58 am
To get that information exactly, you'd need to have something set up to capture it. Having said that, you can get somewhat close with what SQL Server gives you.
Autogrowth events...
March 1, 2016 at 10:20 am
What is the result of this query on your server?
SELECT scheduler_id,
cpu_id,
status ...
March 1, 2016 at 10:06 am
Indeed, that is just a guess on my part, trying to make sense of as much of the situation as possible.
Based on that example it seems (mildly annoyingly) that the...
February 29, 2016 at 2:07 pm
My assumption is that this line from the BOL entry for COALESCE
If all expressions are nonnullable, the result is typed as nonnullable.
has the intended meaning of
If and only if...
February 29, 2016 at 8:50 am
Steve Jones - SSC Editor (2/26/2016)
The top of the chart has an * for...
February 26, 2016 at 1:01 pm
The big issue is the estimate for the rows coming out of the scan of #TempMPM that is the outer input for the first nested loop join.
It's estimating only...
February 25, 2016 at 2:25 pm
Viewing 15 posts - 556 through 570 (of 1,193 total)