Solved

xsd Command Timeout

Posted on 2009-05-07
1
1,141 Views
Last Modified: 2013-11-26
Afternoon,

I've googled this topic and found a few references to it.  As I understand it is pretty simple to set the SqlCommand.commandtimeout = x when dealing with dataadapter built in code but there is no way of doing this with xsd, auto-genereated table adapters.  From what I gather I need to build my own subclass of the command object, here's a few links giving examples of this.  They are in C though so can anyone give me a more detailed example in VB.

http://www.netnewsgroups.net/group/microsoft.public.dotnet.framework.aspnet/topic33902.aspx


http://www.velocityreviews.com/forums/t123018-p2-how-to-set-commandtimeout-for-objectdatasource-aspnet-20.html


Many thanks
0
Comment
Question by:nick210577
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 24332312
Code conversion:

http://www.netnewsgroups.net/group/microsoft.public.dotnet.framework.aspnet/topic33902.aspx

Namespace programTableAdapters
    Public Partial Class OrderTableAdapter
        Public Sub SetCommandTimeout(ByVal timeout As Integer)
            For Each command As IDbCommand In CommandCollection
                command.CommandTimeout = timeout
            Next
        End Sub
    End Class
End Namespace
0

Featured Post

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question