Viewing 15 posts - 6,496 through 6,510 (of 59,091 total)
In contract to @JeffModen's response - it is also possible that the client(s) are sending varchar parameters and all of those queries are using implicit conversions and full...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 3, 2020 at 8:56 pm
In contract to @JeffModen's response - it is also possible that the client(s) are sending varchar parameters and all of those queries are using implicit conversions and full index...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 3, 2020 at 8:55 pm
Steve Jones - SSC Editor wrote:As Jeff noted, include TRUNCATE in here.
I did include TRUNCATE in the trans, from the start. Not exactly sure how else you want the transaction structured.
Agreed... didn't see...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 3, 2020 at 8:51 pm
As you're finding out, Partitioned Tables don't make such changes easy. I drank the MS "Kool-aid" a couple of years back (only 1.2 TB total, though) and I'm in the...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 3, 2020 at 3:56 pm
I posted a reply and it was removed as spam. Please explain how my opinion was spam.
Marcus
Artificial "Intelligence" of the automatic SPAM removal code for this forum is the...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 3, 2020 at 3:05 pm
You have to consider something else that most people don't and that is "Implicit Conversions". You have to know how external code is referencing the table. If it's passing string...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 3, 2020 at 3:01 pm
Did you ping the IP address to see if the address is still online?
--Jeff Moden
Change is inevitable... Change for the better is not.
September 3, 2020 at 2:53 pm
Include the TRUNCATE in the transaction. That'll lock the table until a COMMIT is done.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 2, 2020 at 7:16 pm
Thank you so much for your help.
Sir, now I have added " group by ast.asset_name" and " LEFT JOIN ctePreAgg " it works fine.
Thank you, thanks a lot 😀
Good. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 2, 2020 at 6:44 pm
p.s. The good part about this is that you reminded me that I needed to update my old Dynamic Cross Tab article. I edited the first post in the discussion...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 2, 2020 at 2:50 pm
PLEASE READ ME!
This article is an old one and I've been remiss in not updating it but you need to be aware of something... The creation of the dynamic...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 2, 2020 at 2:28 pm
I generally agree with Erland on this subject and pietLinden is probably correct about SSRS BUT... this is actually fairly simple to pull off in T-SQL.
Yes, for you...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 2, 2020 at 2:10 pm
Damn... I forgot the GROUP BY. Serves me right for posting so late without any test data to check with. That's no good excuse but those are the reasons.
On the...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 2, 2020 at 1:55 pm
Please suggest where I need to modify or where I have done wrong. Thank you
No, quantity belongs to tblLocationAssets
Hang on... I'm checking. Heh... this is what I get...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 2, 2020 at 1:23 pm
Replace the code for @SQL2 and its related comment with this. You might also want to fix the location names in the future... a lot of them have trailing spaces.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 2, 2020 at 8:04 am
Viewing 15 posts - 6,496 through 6,510 (of 59,091 total)