Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 1st, 2008, 02:58 PM
Authorized User
 
Join Date: Nov 2005
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Default dataadapter/command/dataset sql timeout

I want to replicate sql timeout error. i have a stored procedure and it returns few tables (more than 3 select statement).

inorder to replicate sql timeout, in the following statements i set commandtimeout to 10 secs and it doesnt throw timeout error eventhough it takes more than couple of minutes to execut DA.Fill(DS) but i actually locked some tables that are used by this stored procedure. Can someone please suggest a way to replicate timeout in this dataadapter fill code? or how to set timeout settings for dataadapter.

try

DS = New DataSet

Comm.CommandTimeout = 10

DA = New SqlDataAdapter(Comm)

DA.Fill(DS)

 catch ex as sqlexception

     'code that writes to log table

 end catch



Thanks.





Similar Threads
Thread Thread Starter Forum Replies Last Post
dataadapter --- dataset thas123 ASP.NET 2.0 Basics 0 December 13th, 2006 08:58 AM
Change the Select Command of a DataAdapter from th Manolis_Perrakis ASP.NET 2.0 Basics 0 October 20th, 2006 10:56 AM
DataSet and DataAdapter Objects cjo ASP.NET 1.0 and 1.1 Basics 4 January 13th, 2006 03:42 PM
Dynamic DataAdapter from Typed Dataset dhay1999 ADO.NET 3 May 3rd, 2005 07:07 AM
Command & DataSet melvik ADO.NET 2 July 3rd, 2003 01:32 AM





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