Viewing 15 posts - 5,146 through 5,160 (of 59,072 total)
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
This seems to be really destructive. Are you just trying to do "Data Masking"?
If you really do want what you've stated, then it's real simple (using the test table...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2021 at 1:30 pm
I don't know of any such change. I'm thinking that there would be a million person march on Redmond if there were. Have you checked the raw data to see...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2021 at 1:03 pm
Considering that my last name contains only 5 letters and you couldn't even spell that right, I suspect a PICNIC problem on your part. The code runs nasty fast in...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2021 at 12:58 pm
Hang in there. I made some good progress (fully testing along the way) but I had another late work night and it's time for bed (01:49 AM). I'll work on...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2021 at 5:50 am
Viewing 15 posts - 5,146 through 5,160 (of 59,072 total)