473,287 Members | 1,581 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,287 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 5067
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.