Home All Groups Group Topic Archive Search About

One table returns ODBC timeout error

Author
17 Apr 2007 7:33 AM
Bobby
Hi
I've arrived in work this morning to find that my normally smooth
running database is apparently "down". In reality, this means that I
have one table, called "Timebookings", which has a problem.

I use SQL Server as BE for and Access FE. When Access tries to use the
table "Timebookings", it returns an ODBC timeout error. If I go into
enterprise manager, I can open the table with apparently no problems,
but if I try to go to the last record, or put an order by into  the
SQL, or run a view which uses the table, I also get an ODBC timeout
error. However, I can scroll through the table to the last record with
no apparent problems. There are 18,000 records in the table, but as
far as I can see, there is no data corruption. All other tables that I
have checked seem fine.

The exact message I get from Enterprise Manager is "[Microsoft][ODBC
SQL Server Driver] Timout expired".

My application has worked fine, 24/7,  for at least three months with
no previous problems and nothing has changed that I am aware of in the
past three weeks.

Anybody got any suggestions as to what the cause of this might be, and
how I might resolve it? Is there a repair table feature in SQL which I
could use to try to correct the problem?

Any suggestions would be very much appreciated,

Thanks a lot

Colin

Author
17 Apr 2007 8:20 AM
Bobby
A bit more information:

If I run a select on the table in SQL Query Analyzer, it hangs
everytime on record 15,936, so I guess that this does point to a data
corruption. But I'm still not sure why, or how I can fix it. Any
ideas?

Thanks

Colin
Author
17 Apr 2007 8:23 AM
M A Srinivas
On Apr 17, 1:20 pm, Bobby <bob***@blueyonder.co.uk> wrote:
> A bit more information:
>
> If I run a select on the table in SQL Query Analyzer, it hangs
> everytime on record 15,936, so I guess that this does point to a data
> corruption. But I'm still not sure why, or how I can fix it. Any
> ideas?
>
> Thanks
>
> Colin

see  in Books online for  DBCC CHECKTABLE
Author
17 Apr 2007 8:42 AM
Bobby
On 17 Apr, 09:23, M A Srinivas <masri***@gmail.com> wrote:
Show quote
> On Apr 17, 1:20 pm, Bobby <bob***@blueyonder.co.uk> wrote:
>
> > A bit more information:
>
> > If I run a select on the table in SQL Query Analyzer, it hangs
> > everytime on record 15,936, so I guess that this does point to a data
> > corruption. But I'm still not sure why, or how I can fix it. Any
> > ideas?
>
> > Thanks
>
> > Colin
>
> see  in Books online for  DBCC CHECKTABLE

Thanks
When I run DBCC CHECKTABLE ('Timesheets') I get the following result:

DBCC results for 'Timesheet - Item'.
There are 17643 rows in 401 pages for object 'Timesheet - Item'.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.

I can't see any errors. Where would it display the errors if there
were any?

Colin
Author
17 Apr 2007 9:15 AM
SB
On Apr 17, 2:42 pm, Bobby <bob***@blueyonder.co.uk> wrote:
Show quote
> On 17 Apr, 09:23, M A Srinivas <masri***@gmail.com> wrote:
>
> > On Apr 17, 1:20 pm, Bobby <bob***@blueyonder.co.uk> wrote:
>
> > > A bit more information:
>
> > > If I run a select on the table in SQL Query Analyzer, it hangs
> > > everytime on record 15,936, so I guess that this does point to a data
> > > corruption. But I'm still not sure why, or how I can fix it. Any
> > > ideas?
>
> > > Thanks
>
> > > Colin
>
> > see  in Books online for  DBCC CHECKTABLE
>
> Thanks
> When I run DBCC CHECKTABLE ('Timesheets') I get the following result:
>
> DBCC results for 'Timesheet - Item'.
> There are 17643 rows in 401 pages for object 'Timesheet - Item'.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
>
> I can't see any errors. Where would it display the errors if there
> were any?
>
> Colin

Hi,
Do you have a backup? If yes, try loading it in a different database
and see if the problem goes away. Then you can investigate with the
current data. Try exporting the table into a file (excel) and see if
you can find the row where it is causing problem etc.
Author
17 Apr 2007 9:32 AM
Tibor Karaszi
Are you absolutely certain that there's no blocking?

Show quote
"Bobby" <bob***@blueyonder.co.uk> wrote in message
news:1176795190.212707.170450@y5g2000hsa.googlegroups.com...
> Hi
> I've arrived in work this morning to find that my normally smooth
> running database is apparently "down". In reality, this means that I
> have one table, called "Timebookings", which has a problem.
>
> I use SQL Server as BE for and Access FE. When Access tries to use the
> table "Timebookings", it returns an ODBC timeout error. If I go into
> enterprise manager, I can open the table with apparently no problems,
> but if I try to go to the last record, or put an order by into  the
> SQL, or run a view which uses the table, I also get an ODBC timeout
> error. However, I can scroll through the table to the last record with
> no apparent problems. There are 18,000 records in the table, but as
> far as I can see, there is no data corruption. All other tables that I
> have checked seem fine.
>
> The exact message I get from Enterprise Manager is "[Microsoft][ODBC
> SQL Server Driver] Timout expired".
>
> My application has worked fine, 24/7,  for at least three months with
> no previous problems and nothing has changed that I am aware of in the
> past three weeks.
>
> Anybody got any suggestions as to what the cause of this might be, and
> how I might resolve it? Is there a repair table feature in SQL which I
> could use to try to correct the problem?
>
> Any suggestions would be very much appreciated,
>
> Thanks a lot
>
> Colin
>
Author
17 Apr 2007 9:48 AM
John Bandettini
Bobby

Do you have a clustered index on the table and do you rebuild it regularly?
Also do you update statistics regularly?

It does not seem a very large table, but if it is badly fragmented that
could be your problem. Try running 'DBCC SHOWCONTIG' to check for
fragmentation.

Regards

John

Show quote
"Tibor Karaszi" wrote:

> Are you absolutely certain that there's no blocking?
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
>
> "Bobby" <bob***@blueyonder.co.uk> wrote in message
> news:1176795190.212707.170450@y5g2000hsa.googlegroups.com...
> > Hi
> > I've arrived in work this morning to find that my normally smooth
> > running database is apparently "down". In reality, this means that I
> > have one table, called "Timebookings", which has a problem.
> >
> > I use SQL Server as BE for and Access FE. When Access tries to use the
> > table "Timebookings", it returns an ODBC timeout error. If I go into
> > enterprise manager, I can open the table with apparently no problems,
> > but if I try to go to the last record, or put an order by into  the
> > SQL, or run a view which uses the table, I also get an ODBC timeout
> > error. However, I can scroll through the table to the last record with
> > no apparent problems. There are 18,000 records in the table, but as
> > far as I can see, there is no data corruption. All other tables that I
> > have checked seem fine.
> >
> > The exact message I get from Enterprise Manager is "[Microsoft][ODBC
> > SQL Server Driver] Timout expired".
> >
> > My application has worked fine, 24/7,  for at least three months with
> > no previous problems and nothing has changed that I am aware of in the
> > past three weeks.
> >
> > Anybody got any suggestions as to what the cause of this might be, and
> > how I might resolve it? Is there a repair table feature in SQL which I
> > could use to try to correct the problem?
> >
> > Any suggestions would be very much appreciated,
> >
> > Thanks a lot
> >
> > Colin
> >
>
>
>
Author
17 Apr 2007 10:14 AM
Bobby
On 17 Apr, 10:32, "Tibor Karaszi"
<tibor_please.no.email_kara***@hotmail.nomail.com> wrote:
> Are you absolutely certain that there's no blocking?
>
> --
> Tibor Karaszi, SQL Server MVPhttp://www.karaszi.com/sqlserver/default.asphttp://www.solidqualitylearning.com/
>

Thanks, that's the problem. I though that I had checked everybody, but
I had forgotten one user, and he was the problem.

Thanks a lot

Colin

AddThis Social Bookmark Button