Viewing 15 posts - 4,351 through 4,365 (of 59,069 total)
regarding reorganize - there is an exception to this - if you have columnstore indexes that are frequently subject to deletions or that are subject on inserts in small...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 5:52 pm
That's the gist of it. If you have indexes where logical fragmentation actually does matter for large range scans, you might want to include those but, again, that's going to...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 4:53 pm
As a bit of a sidebar, wouldn't adding more files add to the problem you spoke of previously?
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 4:42 pm
You're presuming an awful lot. Why would you want "at least 2 files per filegroup" for a single table?
To spread the I/O out, the typical reason for...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 4:41 pm
now I am not discarding wrong data , but sending it back in output.
Ah... that's the ticket. Thanks for taking the time to explain. I was really concerned about...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 3:52 pm
Thanks to all
Adelia,
Don't go yet. I asked you some questions about datatypes that you've not answered yet. If you let me know that the datatypes of the...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 3:39 pm
@databases nvarchar(max)='USER_DATABASES'
@FragmentationLow nvarchar(max) = NULL, /* don't defrag low fragmented */
@FragmentationMedium nvarchar(max) = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE', /* left out index_reorganize because of https://www.sqlservercentral.com/forums/topic/rebuilding-and-reorganizing-indexes/page/2/?bbp-ajax=true */
@FragmentationHigh nvarchar(max) = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationLevel1 int = 30, /* threshold medium...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 3:16 pm
Ah... sorry. Looking back at the original post, I see that REORGANIZE was left out. That's ok... it's still worth mentioning for other people that may read this thread.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 1:48 pm
Yes. Do not use REORGANIZE. It doesn't work the way you think it does. It's so bad on indexes that fragment that it's actually the cause of the myth of...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2021 at 1:46 pm
I don't know about those stored procedures and can't help there.
Of a much larger concern, suppose you want to restore just one database? Go check the documentation on that. IIRC...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 4, 2021 at 4:35 pm
You're presuming an awful lot. Why would you want "at least 2 files per filegroup" for a single table?
Also, I can see some instances where you might have specific reason...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 4, 2021 at 4:26 pm
Understood but that's not my question. To be more clear, you stated that...
I'd rather write components in a project written in C# that yield the results that would be...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 4, 2021 at 4:02 pm
Thank you. TRY_Convert exist in my version
Now that you have your answer, would you please tell us what your stored procedure is doing? I'm really interested in why bad...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 4, 2021 at 3:52 pm
Of course that method does not work with any cross-table constraints on the table, since constraints must be in the same filegroup (IIRC).
Try it and find out that the...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 4, 2021 at 2:59 pm
Of course that forces the entire table to be rewritten every time. In a typical rebuild, often large parts of the table do not need rewritten because they haven't...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 4, 2021 at 2:53 pm
Viewing 15 posts - 4,351 through 4,365 (of 59,069 total)