Jump to content

Recommended Posts

Posted

I have a database in MSSQL 2005 express and one of the tables countains 'money' columns. When one of these columns is negative, and we want to change it to a non-negative (be that 0 or +) the database doesn't commit the data and returns a timeout with 'the timeout period elapsed prior to completion of the operation or the server is not responding'.

 

When I alter positive values to positive or positive to negative, it works just fine.

 

Any ideas?

Posted
Are there any database triggers? Can't see any reason why changing from + to - works but the other way doesn't - it's got to involve much the same amount of processing but if there's a trigger which is looking at the change in value and "doing something" then maybe that's failing??
Posted

I've figured out what the problem is... The error message should've told me really.

 

Some software accessing the database isn't closing connections properly, so that particular field is locked by one of them. (and, apparently 21 other fields).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...