Viewing 15 posts - 1,636 through 1,650 (of 59,067 total)
Also another means of getting around all those WITH (NOLOCKS) is to set at the top of the stored procedure either:
SET TRANSACTION ISOLATION LEVEL SNAPSHOT
-- OR --
SET TRANSACTION ISOLATION...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 1, 2023 at 3:49 am
Note I teach/tutor for free and have an online Discord server with 80 plus students at verying levels of expertise. My first motto is (and all my students know...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 1, 2023 at 2:59 am
Indexes are needed as the temp tables are joined to other tables, without indexes the queries would take a lot longer.
You and I have know each other for a...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2023 at 8:14 pm
Perhaps a better thing to do is to partition the table?
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2023 at 7:53 pm
Post deleted... I misread what was being done.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2023 at 7:51 pm
Scott's synonym suggestion sounds like your best bet to me.
Strong second here on Scott's synonym suggestion.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2023 at 7:47 pm
Thanks, Steve.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2023 at 7:44 pm
Just to ask the question, have you checked the datatype for those columns in the base table?
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2023 at 7:42 pm
Thank you all for the comments. I know my code still needs some tweaking. This was a learning process for me. I have in the meantime tried to get...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2023 at 7:37 pm
@jeff Moden, I thank you from my heart for your comment. I greatly respect you and have certainly learned a lot from you. There are no backups because these...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2023 at 7:28 pm
I'm curious... why do you think you need any form of looping for this?
SELECT CONCAT('MERGE ',ChannelReadingTableName,' USING ',MainLevelDataTableName)
FROM #DeviceChannelAnd, be aware... I used the table...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2023 at 4:26 pm
If you look at the number of reads, there's over 7 billion logical reads. That's more than 56 TERAbytes of I/O.
My first suggestion is to stop the query because it's...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2023 at 4:03 pm
For example, an SSRS reports reads from a table the isn't one of the 'core' tables. So I have to research where it is created, find it is created...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2023 at 3:47 pm
When it’s written “free ebook to download”, I’m expecting to be free of cost not freely able to download and pay for a ebook…
I was just going to write...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2023 at 3:37 pm
Keep in mind, your LOG file(s) may not shrink at first attempt !!!
Even there, they don't mention that you should do a CHECKPOINT first...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2023 at 6:18 am
Viewing 15 posts - 1,636 through 1,650 (of 59,067 total)