Microsoft
Software
Hardware
Network
Question : Why RTRIM so slow on UPDATE
Hi,
I have a table in SQL 2008 with an index on field1. It has over 6,000,000 records. When I attempt to do this:
1: 2:
UPDATE my_table SET field1 = RTRIM(field1)
It just runs forever and ever. I don't understand why the index doesn't get picked up, it seems straightforward, any ideas? Thanks!
Answer : Why RTRIM so slow on UPDATE
What about this? Part of the issue might be that it has to keep up with the indexing for all six million records.
ALTER Your_Index_Name ON my_table DISABLE
UPDATE my_table
SET field1 = RTRIM(field1)
ALTER INDEX ALL ON my_table REBUILD
Random Solutions
Antivirus software windows XP
MS Dynamics GP 10 Security query
printer driver
RSH client for windows 2008 r2
create bootable usb device with multiple OS's to choose from for installation
Are there any ways to know if the a user the company email redirected to an external account?
How to figure out input value passed via XML
asp.net javascript close windows without prompting.
How do I save incoming email attachments into a specific folder?
The future of VBA