Viewing 15 posts - 301 through 315 (of 325 total)
July 22, 2018 at 12:57 am
Yeah, this definitely seems like a bug (and still exists in SQL 2017 CU9). Using OPTIMIZE FOR UNKNOWN on the query seems to resolve the issue (and probably makes sense...
July 22, 2018 at 12:30 am
I'd generally recommend avoiding using PARSENAME in that fashion, even though it might seem to work. It does a bunch of things you might not expect, for things like handling...
July 21, 2018 at 1:46 pm
I'm not a fan of triggers in general, but recursive triggers are absolutely the spawn of satan. There's a really good reason they are disabled by default in SQL Server...
July 20, 2018 at 1:04 am
I had a stab at implementing your rules, although they seem a bit contradictory:
Select
MULTI.App_id,
TableB.App_acc,
TableB.CID,
Max(IsNull(MISS.MissingAccount, 0)) As MissingAccount,
Max(IsNull(MULTI.MultiAccount, 0)) As MultiAccount
July 4, 2018 at 4:30 pm
Most DDL statements can be rolled back in 2005, though I don't think TRUNCATE can (at least not without jumping through some hoops first). I have an inkling that you...
July 4, 2018 at 2:45 pm
In terms of which tables to join on, either it's because you need data from that table or because the existence of a row in a table (or existence with...
June 6, 2018 at 2:39 am
If you have 3000 explicit values in an IN clause, you probably have a design problem and performance will suffer from SQL Server trying to parse your code. There will...
June 2, 2018 at 5:48 am
May 31, 2018 at 8:04 pm
I'd be inclined to use a calendar table that includes columns to indicate the days that are likely to be excluded (whether that be weekends or a more general non-working...
May 31, 2018 at 3:45 pm
If it's analysing data produced from a system that has run to completion, I think it can be achieved but you probably need to record additional data about the order...
May 31, 2018 at 3:23 pm
Am I missing something, or would it be a lot easier as:
select
datename(month,[date]),
count(*)
from logs
group by
year([date]),
datename(month,[date])
order by
May 31, 2018 at 2:59 pm
March 16, 2018 at 6:42 am
Inline sql basically turns the entire database into a massive number of global variables. If that sounds like a good idea to your developers, you need better developers....
March 16, 2018 at 2:06 am
Viewing 15 posts - 301 through 315 (of 325 total)