Viewing 15 posts - 1,396 through 1,410 (of 7,608 total)
I suggest creating the following indexes to support the query. If you'd like to adjust other indexes on the tables also, just let me know.
CREATE UNIQUE NONCLUSTERED...
July 21, 2021 at 5:00 am
One of the tables you're joining to must have an extra matching row in it compared to what you were used to seeing. I can't tell which one from what...
July 20, 2021 at 9:33 pm
Would you give us actual table data -- i.e. CREATE TABLE and INSERT statement with VALUES -- rather than just a picture? We can't write SQL against a picture :-).
This...
July 20, 2021 at 9:30 pm
Hmm, interesting. Lots of indexes there, so we'll need to do a full analysis, if you're willing. Please run the attached query and post the results in some type of...
July 20, 2021 at 7:03 pm
Adding a running number can add records if before the column addition there were duplications that were shown only once but after the column addition they stopped being duplications. ...
July 20, 2021 at 3:06 pm
I can't offer index recommendations without seeing the DDL for the tables, including all current index definitions. The most critical index is the clustered index, so that should be determined...
July 19, 2021 at 7:50 pm
I typically use SSIS to do that, since it has the inherent capability to run multiple imports async.
July 18, 2021 at 7:43 pm
We need to see DDL for the tables, including index definitions, the query plan and the query itself. There's no way for us to just imagine what is happening and...
July 18, 2021 at 7:41 pm
Are you really only returning a single column from the query?
If so, change to SELECT just from the table with that column, and use a WHERE EXISTS() on the other...
July 18, 2021 at 7:40 pm
Exactly. And that's what I meant too.
Jeff said that he'd "still" "say NO". But, once you've made your objections known, and in writing for the record, and management still decides...
July 16, 2021 at 3:11 pm
Maybe?:
,(sum(isnull(sc.numberofprocedures, 1))) 'ProcCount'
July 14, 2021 at 11:47 pm
Your own login must not have SHOWPLAN permissions. Check to see if someone will GRANT you that permission.
As a DBA, I give that permission to everyone. I don't see how...
July 14, 2021 at 11:45 pm
Hmm, ran fine for me, but I'm on SQL 2016. I think that code should work all way back to 2008, or at least 2012.
We could join to the entire...
July 14, 2021 at 10:30 pm
;WITH cte_test_data AS(
SELECT * FROM ( VALUES
(1,'Not Paid', CAST('7-1-21' AS date)),
...
July 14, 2021 at 6:05 pm
Hi,
I'm in the process of doing a comparison of all the options available:
Scripts Integration Services 3rd Party Tools
We will have hundreds of instances and thousands of databases so need...
July 14, 2021 at 3:11 pm
Viewing 15 posts - 1,396 through 1,410 (of 7,608 total)