Viewing 15 posts - 15,301 through 15,315 (of 59,097 total)
Your existence check using SELECT COUNT(*) is horribly expensive and is the likely cause of many of your problems. Change it to the appropriate IF EXISTS() as a starting point. --Jeff Moden Change is inevitable... Change for the better is not.
RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
Helpful Links:
How to post code problems
How to Post Performance Problems
Create a Tally Function (fnTally)
March 31, 2017 at 7:54 pm
Crud. I guess I blew it. Today was the last day to submit contributions for MVP renewal. I went to update my profile at 8:30PM and it won't take any...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2017 at 7:44 pm
I'm curious. What is this supposedly complicated process?
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2017 at 4:01 pm
For report week Mar 24th,...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2017 at 3:55 pm
I don't know if it has anything to do with the problem but why do you keep using string literals for columns that are not character based datatypes?
Heh......
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2017 at 3:53 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
March 31, 2017 at 7:35 am
The reason it takes so long is because you're always loading the "TOP 1" file and there's nothing to end the loop. You've also got some other nuances in your...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2017 at 9:49 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2017 at 8:34 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2017 at 8:29 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2017 at 8:24 pm
That could definitely be a part of the problem. I definitely missed the obvious (choose 2) message and the fact that they were check boxes for answers instead of radio buttons. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2017 at 7:45 pm
You're welcome. It might sound a bit strange but (I have no life 😉 ) thank you for the interesting problem.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2017 at 7:32 pm
See the following.
https://www.microsoft.com/en-us/learning/sql-certification.aspx
In the process of becoming a DBA, make sure you know how to write code to get the current date an time. T-SQL is...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2017 at 9:15 am
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2017 at 8:37 am
I take exception to the supposed correct answer. If you have defaults on the parameters, input is not required. I agree... a bit of word play has come into this...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2017 at 8:32 am
Viewing 15 posts - 15,301 through 15,315 (of 59,097 total)