Solved

Unable to modify table

Posted on 2008-10-08
6
754 Views
Last Modified: 2012-06-27
Using SQL 2005 I have a table with 3M rows...
When I try and modify it I get the following error

- Unable to modify table.   Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding

I have plenty of space the the execution timeout is set to 0

any ideas?

thx
0
Comment
Question by:JElster
6 Comments
 
LVL 5

Expert Comment

by:adlink_la
ID: 22675088
You can create a new table with the structure you want, then insert all of the rows into that table.  Then drop the old one.
0
 
LVL 1

Author Comment

by:JElster
ID: 22675177
Sure - but what about the timeout
thanks
0
 
LVL 4

Expert Comment

by:randy_knight
ID: 22675639
WIth a table that large it could be a lot of things.  You could be filling tempdb and/or the transaction log for one.  Are you using the GUI for this?  It sounds like it.  I've never traced it in 2005 but in 2000 Enterprise Manager would do some strange stuff in terms of dropping and recreating indexes, crating a new table behind the scenes,etc.

adlink's solution is the correct one for a table that large IMO.

0
Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 100 total points
ID: 22675661
Since you are using the GUI you are restricted to 30 seconds. Anything longer and you are SOL.

As you must be uncomfortable writing T-SQL code, when you have made the change, don't click save in the GUI, instead copy the Change Script to a Query window and execute it from there.  Since the Query tool has an infinite timeout you can wait all day for it to complete without getting a timeout.
0
 
LVL 1

Author Comment

by:JElster
ID: 22677174
Thanks...
Just curious anyway to increase the GUI timeout
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 22683577
No. It is designed that way and has always been that way.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question