Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 1st, 2008, 02:58 PM
Authorized User
 
Join Date: Nov 2005
Location: , , .
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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:40 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.