Viewing 15 posts - 5,176 through 5,190 (of 59,101 total)
Shifting gears back to the function that was used, I've added a smidgen of additional bullet-proofing.
CREATE OR ALTER FUNCTION dbo.ufnStringToPbase
...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 11, 2021 at 3:35 pm
I have a Visual Studio project web site that I have been using for years. The move to SQL server 2019, has apparently broken it.
When I call the dataadapter.Fill...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 11, 2021 at 2:15 pm
As you said in your original post...
The move to SQL server 2019, has apparently broken it.
The reason the move broke it is now obvious... the function lived in the master...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 11, 2021 at 12:48 pm
Not only some representative data along with the expected output but how about a description of what the function is supposed to do, please.
I would also get into the habit...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 11, 2021 at 12:34 pm
What IS the limit you're trying to set it to, how many files does it have, and how big is your largest table/index?
--Jeff Moden
Change is inevitable... Change for the better is not.
June 11, 2021 at 1:12 am
Hi Everyone,
I am trying to apply a Multi table function that uses a recursive CTE. When I apply it I get the error:
The statement terminated. The maximum recursion 100...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2021 at 2:50 pm
I know it doesn't contribute to the conversation at hand but it's just fascinating to me that this type of thing is still an issue since the release in 2005...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2021 at 1:27 pm
So your saying that the following code that you posted took over 5 hours?
SELECT sm.Object_ID, Definition = ls.LongString FROM sys.SQL_Modules sm CROSS APPLY dbo.ShowLongString(sm.Definition) ls
I just ran that...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2021 at 1:18 pm
Interesting. Thanks for the tips, Jeffrey.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2021 at 3:46 am
I wonder - what happens if you run DBCC UPDATEUSAGE on that cloned database?
I believe the OP said they tried that with no success.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2021 at 4:20 pm
People forget that DevOps is about building a culture of collaboration between people with different disciplines. It is not a bunch of technologies, buzzword bingo or fancy job titles.
Absolutely...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2021 at 4:19 am
So your saying that the following code that you posted took over 5 hours?
SELECT sm.Object_ID, Definition = ls.LongString
FROM sys.SQL_Modules sm
CROSS APPLY dbo.ShowLongString(sm.Definition) ls
I just ran that code on my prod...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2021 at 4:13 am
Tried TRUNCATE - no errors. Tried DELETE - 0 rows affected.
But I probably found the reason, this is likely to be a cloned database, that was created with DBCC...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2021 at 10:49 pm
I tried, but we are still having records that are unmatched.
Then you have actually having records that don't match because the function is not capable of creating different outputs...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2021 at 6:36 pm
Another way... the formula in the CROSS APPLY converts the substring to a DATETIME2 just in case you want to see how to do that. The WHERE clause ensures that...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2021 at 4:05 pm
Viewing 15 posts - 5,176 through 5,190 (of 59,101 total)