473,386 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Getting a timeout expired when filling dataset, cant seem to update the timeout.

I'm doing a simple TableAdapter.Fill filling my datatable from a view
within a SQL database. for some reason it is timing out after 30
seconds and I cant seem to find out where in vb.net 2005 I can go to
change the timeout setting for this. when i go to my project, then my
settings tab i set the connection timeout for 120, but it doesn't seem
to affect the timeout for filling my datatable.

Code used to fill datatable:
Me.Duplicates_ViewTableAdapter.Fill(Me.ALDataSet.D uplicates_View)

Settings for the connection to the SQL server:
Data Source=TLSQL;Initial Catalog=AL;Persist Security Info=True;User
ID=AL;Password=ALMMEN23L1;Asynchronous Processing=True;Connect
Timeout=120

Jan 15 '07 #1
1 5081
Mike,

There are a lot of errors in your code.

There is in VB for sure not command as
Data Source =

Did you know that there is a special newsgroup for by instance timeouts.

There are as much persons in that specialized for VBNet as for C#.

microsoft.public.dotnet.framework.adonet

Cor

"mike11d11" <mi*******@yahoo.comschreef in bericht
news:11**********************@l53g2000cwa.googlegr oups.com...
I'm doing a simple TableAdapter.Fill filling my datatable from a view
within a SQL database. for some reason it is timing out after 30
seconds and I cant seem to find out where in vb.net 2005 I can go to
change the timeout setting for this. when i go to my project, then my
settings tab i set the connection timeout for 120, but it doesn't seem
to affect the timeout for filling my datatable.

Code used to fill datatable:
Me.Duplicates_ViewTableAdapter.Fill(Me.ALDataSet.D uplicates_View)

Settings for the connection to the SQL server:
Data Source=TLSQL;Initial Catalog=AL;Persist Security Info=True;User
ID=AL;Password=ALMMEN23L1;Asynchronous Processing=True;Connect
Timeout=120

Jan 16 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: heruti | last post by:
Hi all... I've been stumped by this for days. Bit of ASP code: (IIS) Set LocalConn = CreateObject("ADODB.Connection") LocalConn.CursorLocation = adUseClient LocalConn.CommandTimeout = 0...
1
by: Resant | last post by:
Hi All, I have a problem with my Server since I've install Terminal Services. Sometimes my users get error 'Timeout expired' when trying to query or open program. Whatshould I do to increase the...
2
by: J | last post by:
I'm experimenting with strongly typed datasets, and when the .Fill method is called, the RowChanging fires for each row. This causes a problem when the existing data does not adhere to the rules...
0
by: Shahab Gerami | last post by:
Hi I get SQLException of Timeout expired when the Sp takes more than 30 seconds to run. I already put the Connect Time = 300 and CommandTimeout = 300, but still Iget the same error. Any...
2
by: Chris Langston | last post by:
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET v1.1 and our application is written in VB.NET ...
0
by: webbsk | last post by:
I keep getting an exception when I call the DataAdapter Update method. I have been trying to figure out what is causing the null reference exception for this code for what seems like forever: ...
4
by: mabubakarpk | last post by:
Hello to all I am using an application which is in vb6.0 and database in MSSQL server 2k. I am using connection string through ADO. Some times I receive message...
1
by: Charl | last post by:
Hi I have a small VB.Net app that needs to process data from a SQL 2005 DB. All works well when I limit the number of rows returned by the stored procedure to less than 300 (select top 300...) . As...
2
by: Erick Otieni | last post by:
Hi all, Does anyone have an idea to solve this problem in asp? I have tried to look everywhere for the last week but no one seems to have the answer. The issue is that I have the script below...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.