Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 761
  • Last Modified:

Unable to modify table

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
JElster
Asked:
JElster
1 Solution
 
adlink_laCommented:
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
 
JElsterAuthor Commented:
Sure - but what about the timeout
thanks
0
 
randy_knightCommented:
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
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
Anthony PerkinsCommented:
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
 
JElsterAuthor Commented:
Thanks...
Just curious anyway to increase the GUI timeout
0
 
Anthony PerkinsCommented:
No. It is designed that way and has always been that way.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now