Microsoft
Software
Hardware
Network
Question : SQL Timeout when Changing Char Field Length
SQL Server 2005
Table Info:
Data Space - 21 GB
Index Space - 6 GB
Summary:
I have been attempting to change the length of a non-key char field from 25 to 32. Each time, I am receiving timeout issues. I increased the timeout options per my attached image and it still times out. I noticed one of the initial attempts it had asked me if I wanted to save the changes that would be made to the affected tables (related by foreign key constraints) and I chose yes. When I did this it made its attempt to update the table and tables with the FK's and eventually timed out in addition to dropping my FK's.
Question:
What is the best method of changing the character length of a non-key field within a large table using a query rather than the designer, while keeping the integrity of the FK's? To this point, I haven't had to do much with managing indexes or FK's so I'm a little gray in that area.
Attachments:
factcustsales.bmp
(9.9 MB)
(File Type Details)
Timeout Settings
Answer : SQL Timeout when Changing Char Field Length
alter table mytable alter column mycol varchar(32)
Random Solutions
What is the best way to remove unicode character from a tuple in Python w/Sqlite?
asp.net Need to know to reset a form. once it has been submited. My form is retaining it values.
Ignore Error in a store procedure and continue
How to copy the XLSX file to XLS file using C#
CPU with printer share maxes out connections
SQL SERVER 2005 - Problem with sp_addlinkedsrvlogin
How do I change this JavaScript so it returns only one correct input and not two as it does now?
VMware seperating a Nic card
WSS 3.0 back to original
Unrecognized attribute targetFramework error: W2003 & IIS 6