Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 16th, 2007, 02:28 PM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Union timeout error

sql 2000 sp4

What would cause this type of timeout?


DB1 - Table Members indexed memberid -
view1 contains data referencing TABLE ABOVE including memberid
table count 1.5m +/-
DB2 - Table Members indexed memberid -
view2 contains data referencing TABLE ABOVE including memberid
table count 4.5m +/-

DB3 - combinView contains
select *
from view 1
union all
select *
from view2

When accessing view through DB3
select *
from combinView
where memberid = 'xxxxxx'


Receiving time out error

however when I query the views separately they execute in less than a second.
The only change that I've made is drop the table in db1 and recreated it along with the indexes. I've refreshed the view/deleted and recreated all three. Rebuild the indexes.
 
Old April 17th, 2007, 05:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Do you see any errors logged into SQL server Error log?

See if this fixes your problem.

FIX: SQL Server 2000 stops responding when you cancel a query or when a query time-out occurs, and error messages are logged in the SQL Server error log file

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Timeout Expired Error dhara_adh SQL Server 2000 4 December 22nd, 2006 04:18 PM
Timeout Expired Error nikotromus SQL Server 2000 16 December 5th, 2006 03:54 PM
Interdev 6.0 Timeout Error patsauer Javascript 0 September 16th, 2005 11:14 PM
Insert into error with union query in Access 2002 roniestein Access 8 December 21st, 2004 07:47 PM
Timeout Expired Error vinod_pawar1 SQL Server 2000 5 July 17th, 2004 09:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.