Viewing 15 posts - 8,986 through 9,000 (of 59,091 total)
Just to be sure, it wasn't meant as any kind of slam for missing something, Phil. I absolutely thought it excellent emphasis on a problem that would...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 23, 2019 at 6:33 pm
Thanks Jonathan. query we have will run always with same set of parameters and this query is in PROD. so I can't run DBCC FREEPROCACHE
You could, however, lookup how...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 23, 2019 at 5:53 pm
Jeff, your advice was so excellent, I clearly didn't bother reading it properly 🙂
Just to be sure, it wasn't meant as any kind of slam for missing something, Phil. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 23, 2019 at 5:50 pm
Following on from Jeff's excellent advice, I'd like to add a little more. I'd suggest removing all spaces from your column names ... makes your code much less cumbersome...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 23, 2019 at 2:40 pm
As a matter of safety in the future, you should always include the schema name in the object name.
Also, you should get into the habit of using properly placed semi-colons...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 23, 2019 at 1:21 pm
The datatype for the Created column wasn't expressed in the test data that you nicely provided. I'm presuming that it's not actually a VARCHAR datatype in the following test data...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 23, 2019 at 12:53 pm
BWAAAAA-HAAAAA-HAAAAA!!! HOOOOOOIIIIIIEEEEE!!!!
I was in the process of submitting an article through the "Write for us" link and I saw the following at the top.

--Jeff Moden
Change is inevitable... Change for the better is not.
July 23, 2019 at 4:10 am
Grant Fritchey wrote:You're all still here? Go home. (btw, hate that movie, but it's a good quote)
I enjoyed the movie. Too bad you hated it.
Which of...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2019 at 10:34 pm
I got it to work. It turns out that the proxy was not set up on the linked server where the xp_cmdshell call is executed from. Thank you.
That sounds...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2019 at 3:28 pm
Ahh, yes the table does have a full text definition. It's just not finding A00J010002158. If I do like '%A00J010002158', it finds it. But that is very slow. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2019 at 3:25 pm
Although I suspect it will actually be fairly rapid, there's no way to guesstimate such a thing. Create a smaller test of a couple million rows and measure. You should...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2019 at 3:21 pm
Ok... both of you need to read'n'heed the article at the link in my signature line below if you want help. Posting data as text doesn't help or are answering...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2019 at 3:10 pm
This is why I tell people to NOT rely on "OPS" (Other People's S**T)! Teach yourself how to do it using their code as an example and write your own...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2019 at 3:07 pm
p.s. If you'd like to learn more about the very useful method of conditionally grouping dates by simple subtraction of an increasing number, please see the following article.
https://www.sqlservercentral.com/articles/group-islands-of-contiguous-dates-sql-spackle
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2019 at 2:48 pm
Hi Likiraght and welcome aboard!
Your question is good and so is your test data but you'll find that almost everyone likes to test their coded solutions before they post a...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2019 at 2:41 pm
Viewing 15 posts - 8,986 through 9,000 (of 59,091 total)