Viewing 15 posts - 106 through 120 (of 458 total)
Yes, I can use the check constraint for the field. But I need the additional constraint of uniqueness for specific types of data, while not for others. I don't think...
March 4, 2020 at 7:54 pm
Looks great. Many thanks to both you and Mike - I had no idea this feature even existed (SQL Server is kind of overwhelming sometimes). This takes care of my...
March 2, 2020 at 10:00 pm
Thank you, Steve. I just looked at some intro tutorials. It doesn't seem as bad as I though at first. I enabled Filestream in the DB, according to instructions on...
March 2, 2020 at 8:09 pm
Hm, okay - that's an interesting idea.
This was originally an Access database (actually, it was initially a series of Excel spreadsheets, before I got involved), so packing this much attachment...
March 2, 2020 at 5:03 pm
March 2, 2020 at 4:19 pm
Look at what the resulting values are that come out of the hash match - in the first query the number of rows is less than what you see...
January 13, 2020 at 10:45 pm
Looking at the difference between plans:
The first plan utilizes an index scan using the index ix_TaxLok with no predicate. This results in an estimated row count of 124720 and...
January 13, 2020 at 9:36 pm
What happens if you create the suggested index? Do both queries use it?
Nope - nothing changed. The plan looks the same, the estimates are the same, and it even...
January 13, 2020 at 8:13 pm
There is no difference in the execution plan. Just the number of rows estimated.
I found this in the second plan and not in the first. Interestingly, the second plan...
January 13, 2020 at 7:51 pm
Think of "Left Join" as a different operator from "Inner Join". That is why SQL Server is needing to generate a different plan. Unless you put in parentheses to...
January 13, 2020 at 7:31 pm
Okay, that didn't take. Here is a zipped version.
January 13, 2020 at 6:00 pm
I also swapped the order of the two queries and ran them again. I both cases, the query first in execution order took more time than the second. Here is...
January 13, 2020 at 5:26 pm
If you run the queries with
SET STATISTICS IO, TIME ONIs there any difference in the results? If so can you paste them in here?
SQL Server parse...
January 13, 2020 at 5:22 pm
I think the order of operations regarding the left join is coming into play here. The optimizer is leaving the door open to the join between P and T...
January 13, 2020 at 4:52 pm
Viewing 15 posts - 106 through 120 (of 458 total)