TheBugSlayer
Programmer
I need to increase the size of two varchar columns, each in a different table. I tried to do it in SSMS (2005), at anoff-peak hour however I have concerns and ran into a timeout issue.
I got the warning about affected tables (checked the box, so that' s fine), saved the change script then proceeded. The tables that were going to be modified as a consequence of resizing the field in my table, which has around 4 million records, were modified but modifying the field size timed out...Initially I thought of logging on in single user mode but since the only problem I have is the time out and I had stopped all other applications connection to the DB I kind of discarded concurrency as a problem.
Foreign keys were dropped prior so I recreated them from the change script I had saved before. The fields in the foreign key constraints have nothing to do with the one I am modifying. At this time I am wondering if there is a better way to make the change. The field the size of which I am increasing is not involved in any constraints...
If you know of a better way please let me know.
MCITP SQL Server 2005, MCTS SQL Server 2008 (DBD, DBA)
I got the warning about affected tables (checked the box, so that' s fine), saved the change script then proceeded. The tables that were going to be modified as a consequence of resizing the field in my table, which has around 4 million records, were modified but modifying the field size timed out...Initially I thought of logging on in single user mode but since the only problem I have is the time out and I had stopped all other applications connection to the DB I kind of discarded concurrency as a problem.
Foreign keys were dropped prior so I recreated them from the change script I had saved before. The fields in the foreign key constraints have nothing to do with the one I am modifying. At this time I am wondering if there is a better way to make the change. The field the size of which I am increasing is not involved in any constraints...
If you know of a better way please let me know.
MCITP SQL Server 2005, MCTS SQL Server 2008 (DBD, DBA)