Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 March 22nd, 2004, 12:42 PM
Registered User
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CommandTimeout on query using linked server

I am trying to write a simple select statement that fetches records from a linked server in SQL Server 2000. The problem is the linked server can be slow to respond at times due to the environment. I am trying to set the CommandTimeout on the connection object (ADO), but it does not timeout properly.

Any ideas on why this is happening, and a work around?
Are there any advantages to using OPENQUERY over the traditional select statement using the four-part naming convention?
 
Old February 25th, 2008, 03:54 AM
Registered User
 
Join Date: Feb 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can do this while configuring the linke server in the Microsoft Management Console

Select the Linked Server -> Properties -> Server Options -> query Timeout

hope this helps






Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Query using inner join with a linked table ceekay Access 3 June 8th, 2007 12:35 PM
help with two linked tables query footohi Access 2 August 25th, 2005 10:25 AM
How to add linked tables objects to this query ? method Access 1 July 30th, 2005 01:54 AM
Pass variable to linked server query sofya SQL Server 2000 4 November 23rd, 2004 02:38 PM
linked server ginoitalo SQL Server 2000 2 September 30th, 2004 08:16 AM





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