Viewing 15 posts - 781 through 795 (of 3,348 total)
Loner (2/19/2016)
this table is created by the software company so I can't change anything.
That's really a shame, because there are some indexes that are completely obsolete and do nothing except...
February 19, 2016 at 8:42 am
Loner (2/19/2016)
February 19, 2016 at 8:22 am
Would this be what you are looking for?
SELECT o.OrderId,
MAX(CASE WHEN od.Category = 'CATE-1'...
February 19, 2016 at 5:59 am
I suggest that you set up a trace/extended events session, or add a (temporary) trigger to the table to track deletes (but note that a trigger will not catch TRUNCATE...
February 19, 2016 at 5:15 am
You can probably do this by not using PIVOT but some other pivoting technique,
Please post the tables and sample data as CREATE TABLE and INSERT statements, so that I can...
February 19, 2016 at 5:12 am
What Gail says. Filtered indexes only allow AND and IN. OR is not allowed. Neither is NOT, which would otherwise have been a nice workaround.
An OR list of distinct values...
February 19, 2016 at 5:10 am
djacobos (2/18/2016)
Anyhow, as I insert data into the Snapshots tables, the tables keep growing and growing
Yes, that's what happens when you insert data in a table. You should also delete...
February 19, 2016 at 3:19 am
Seggerman-675349 (2/18/2016)
it goes something like this:
Please post the *exact* code. With the "something like this" code, I was unable to reproduce the issue.
February 19, 2016 at 3:04 am
Loner: It's a long topic already so I may have overlooked something. Did you already try the OPTION (RECOMPILE) hint that Scott suggested? Did it help?
February 19, 2016 at 3:01 am
Without knowing the sourcecode of the FileExists user-defined function, there is no way for us to tell you what's going on.
However, if it works for you without the subquery then...
February 19, 2016 at 2:58 am
This is called a problem in the "gaps and islands" category (islands in this case). Itzik Ben-Gan has come up with some very creative and smart solutions for problems in...
February 19, 2016 at 2:51 am
Jeff Moden (2/18/2016)
Ed Wagner (2/18/2016)
February 19, 2016 at 2:48 am
Please post your table definitions in the form of CREATE TABLE statements, and your sample data in the form of INSERT statements.
Then also post the exact output you want returned...
February 19, 2016 at 2:38 am
To reiterate what Steve already said: your problem is not clear. Please post it in a language that we all understand on this forum: in the form of CREATE TABLE...
February 19, 2016 at 2:35 am
Thanks for posting a nice execution plan to sink my teeth into! 😉
Just a few loose thoughts, in random order.
* I see estimates that are off, but not way off....
February 18, 2016 at 1:44 pm
Viewing 15 posts - 781 through 795 (of 3,348 total)