Viewing 15 posts - 421 through 435 (of 2,610 total)
If their plan fails, they can always go back to tipping Dogecoin or peddling courses on how to get rich quick by buying cheap stuff on AliBaba and reselling it...
March 10, 2023 at 10:40 pm
If ChatGPT set that up and it was quick and easy that's amazing. Before it writes queries it would be nice if it did boring and boilerplate work
There is...
March 10, 2023 at 7:47 pm
I don't think calling complicated
string_split
andstring_agg
functions will be more efficient than calling simple string functions.
Maybe so. Can your chatbot make the case for it? ...
March 10, 2023 at 6:35 pm
What script do you use to update the statistics?
I wrote my own little dity. Basically, it skips anything that has been rebuilt in the last 22...
March 10, 2023 at 5:25 pm
Imo davidandrews13 has the right idea. In SQL 2022
select string_agg(sv.[value], ' ') within group (order by sv.ordinal) first2_in_order
from #temp t
cross apply...
March 10, 2023 at 5:20 pm
I rebuild stats on a nightly database on two of my most active databases just about every night mostly out of paranoia because of all the bloody ever-increasing keyed...
March 10, 2023 at 4:50 pm
Set up some test data:
DROP TABLE IF EXISTS #temp
GO
SELECT *
INTO #temp
FROM (VALUES ('ABC Property Management Inc.'),
...
March 10, 2023 at 4:31 pm
Look at the execution plan on both databases.
March 9, 2023 at 6:49 pm
One thing you could check the location of the TEMP and TMP environmental variables. If they are set to C you could change them to another drive with more space.
March 7, 2023 at 6:52 pm
ChatGPT is DANGEROUS. It always produces results that seem plausible but can be entirely wrong. If you are lucky, it just won't compile. If you aren't it may destroy...
March 7, 2023 at 4:22 pm
If that's what is coming out of ChatGPT, then my job is still safe for the time being.
All 3 of CGPT queries are doing an update of the entire...
March 7, 2023 at 2:34 pm
You can get an answer to your question by just pasting it into ChatGPT:
Query 1:
UPDATE [SF_Title_Update]
SET [Title_Proper] =
CASE
...
March 7, 2023 at 1:18 pm
Sorry, my bad. It works. Thanks for all the replies.
Please let me know how long the procedure takes with the updated SQL.
March 6, 2023 at 7:53 pm
I corrected that in my previous comment.
;WITH CTE AS
(
SELECT DISTINCT [VID],[OrdDate],[Prg1],[Prg2],[Prg3],[Prg4],[Prg5],[Prg6],[RowUpdatDateTime]
FROM #new
),
CTE2 AS
(
SELECT...
March 6, 2023 at 7:41 pm
UPDATE t
SET t.Title_Update = CONCAT(T1.Descr, T2.Descr)
FROM YourTable t
CROSS APPLY(VALUES (CASE
...
March 6, 2023 at 6:36 pm
Viewing 15 posts - 421 through 435 (of 2,610 total)