Viewing 15 posts - 1 through 15 (of 19 total)
I agree that this would delete all records where the CLF_LogReceivedTime is EARLIER than 30 days ago. It would have to be WHERE CLF_LogReceivedTime > DATEADD(DAY,-30,GETDATE()) to delete the records...
August 6, 2019 at 2:45 pm
So I chuckled when i read that. The problem is that I need the column headings as part of a pivot task. Sorry I wasn't clear.
August 5, 2019 at 11:18 pm
Jeff, thanks for the reply. So this data mart holds tables that store records of visits to healthcare facilities for all of Ohio. The Ohio Health Association sends out these...
May 8, 2019 at 6:02 pm
I noticed in the article you linked to, SSC Guru, that SQL 2017 will not allow you to set ANSI NULLs off. If that is the case, how are we...
May 8, 2019 at 4:13 pm
ok, so just to give anyone else with this problem the answer (yes I figured it out myself!!) all I had to do was to include the column_id in the...
February 26, 2019 at 2:38 pm
Thank you! It did turn out to be an authority issue. Once I was given db_owner rights I could see the filters. It is strange and misleading information because someone...
November 7, 2018 at 6:16 am
Interestingly enough, I created the suggested non-clustered index on my columnstore table and ran the same query as before. While the suggestion of the index is gone, the index did...
June 20, 2018 at 7:13 am
Fortunately both databases are on the same server so that keeps other variables out of the mix. The only variable should be the difference in number of records. I like...
June 14, 2018 at 12:17 pm
Don, I understand your need but unfortunately I cannot share my code. The table structures are proprietary to our EMR and the process is too complex to share in any...
March 12, 2018 at 9:18 am
Thanks for the info. Yeah, before I did the MERGE replacement, I did a lot of research on the difference and I saw the disadvantages and bugs. I did...
September 20, 2016 at 1:17 pm
You know that is an interesting comment because I recently changed the code to use MERGE instead of separate INSERT and UPDATE processes. Removing and rebuilding the indexes was pretty...
September 20, 2016 at 12:25 pm
I am dropping and recreating the indexes each time. I am using MERGE to update and insert records. Hope that helps.
September 20, 2016 at 10:19 am
Your article link goes to an article on how to post about performance problems. It does not talk about why the engine might choose to suggest an index that it...
September 2, 2016 at 1:00 pm
When you do a SELECT...INTO statement, SQL wants to create the table you are selecting into. It's one of the most common ways to create a table in the first...
September 2, 2016 at 7:57 am
I see what you're saying. I actually do stage the data first and the staging table does have the same PK as the target table. Performance isn't terrible at all...
June 5, 2015 at 3:12 pm
Viewing 15 posts - 1 through 15 (of 19 total)