Viewing 15 posts - 451 through 465 (of 2,645 total)
SELECT '1' AS 'CommitBlock',
'1' AS 'EnforceTagExistence',
(SELECT vw_deferments.loan_number AS '@loannumber',
...
March 13, 2023 at 10:41 am
I updated the procedure (for my purposes) so it doesn't attempt to update stats on the sys schema by updating one of the ANDs in the WHERE to include 'sys':
March 11, 2023 at 4:41 pm
@jonathan-2... that will work if "any" of the 3 are present. I'm thinking the OP only wants to exclude if all 3 are present. But, please, let him explain...
March 11, 2023 at 3:24 pm
Can you share your script?
Attached. Again, I'm very aggressive in the code. If the RowModCtr > 0, then I rebuild the stats. You can certain modify that...
March 11, 2023 at 2:23 pm
Dear ChatGPT
I have a table where it has id column, along with description.
Based on Group BY ID, I need to verify for each ID we have row exists with Description...
March 11, 2023 at 1:31 am
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
Viewing 15 posts - 451 through 465 (of 2,645 total)