473,779 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Timeout

I am setting the source of a crystal report and sometimes get a Timeout
error.
How can I increase the timeout?
It seems to timeout after 30 seconds.

Here is a snippet of the code that I use.
Using VB 2005

Dim oRpt As New ReportDocument
Dim strConnectionSt ring As String = "Data Source=Server1; Initial
Catalog=Databas e1;Persist Security Info=True;User ID=test;Passwor d=password"
Dim conn As New SqlConnection(s trConnectionStr ing)
Dim strSQL as String = "SELECT * FROM Table1"

Dim DS As New Data.DataSet
Dim DA As New SqlDataAdapter( strSQL, conn)

DA.Fill(DS)

oRpt.Load(Appli cation.StartupP ath.ToString &
"\Reports\pc_de tail_employee.r pt")
oRpt.SetDataSou rce(DS.Tables(0 ))

Thanks,
Lou
Apr 19 '06 #1
3 2979
Add Connection Timeout = Whatever at the end of the connection string.
"Lou Civitella" <lo*@webersyste ms.com> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
I am setting the source of a crystal report and sometimes get a Timeout
error.
How can I increase the timeout?
It seems to timeout after 30 seconds.

Here is a snippet of the code that I use.
Using VB 2005

Dim oRpt As New ReportDocument
Dim strConnectionSt ring As String = "Data Source=Server1; Initial
Catalog=Databas e1;Persist Security Info=True;User
ID=test;Passwor d=password"
Dim conn As New SqlConnection(s trConnectionStr ing)
Dim strSQL as String = "SELECT * FROM Table1"

Dim DS As New Data.DataSet
Dim DA As New SqlDataAdapter( strSQL, conn)

DA.Fill(DS)

oRpt.Load(Appli cation.StartupP ath.ToString &
"\Reports\pc_de tail_employee.r pt")
oRpt.SetDataSou rce(DS.Tables(0 ))

Thanks,
Lou

Apr 19 '06 #2
Before the fill, do:

DA.SelectComman d.CommandTimeou t = ??

Replace the '??' with whatever value you feel is appropriate. You can use 0
for an infinite timeout.

"Lou Civitella" <lo*@webersyste ms.com> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
I am setting the source of a crystal report and sometimes get a Timeout
error.
How can I increase the timeout?
It seems to timeout after 30 seconds.

Here is a snippet of the code that I use.
Using VB 2005

Dim oRpt As New ReportDocument
Dim strConnectionSt ring As String = "Data Source=Server1; Initial
Catalog=Databas e1;Persist Security Info=True;User
ID=test;Passwor d=password"
Dim conn As New SqlConnection(s trConnectionStr ing)
Dim strSQL as String = "SELECT * FROM Table1"

Dim DS As New Data.DataSet
Dim DA As New SqlDataAdapter( strSQL, conn)

DA.Fill(DS)

oRpt.Load(Appli cation.StartupP ath.ToString &
"\Reports\pc_de tail_employee.r pt")
oRpt.SetDataSou rce(DS.Tables(0 ))

Thanks,
Lou

Apr 19 '06 #3
> Add Connection Timeout = Whatever at the end of the connection string.

As long as it is a value and more than 0 'or you would like rusian roulette

http://msdn2.microsoft.com/en-us/lib...ontimeout.aspx

Cor
Apr 19 '06 #4

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

Similar topics

9
2627
by: E Sullivan | last post by:
I am having a time out issue when multiple users are accessing the server. This time out does not happen all of the time. My understanding is that the time out value is actually set in two places. I believe one is in the asp pages for the session itself, and the other is more of a system timeout settting in IIS. Would one of these supercede the other if the two are different? I have already looked at the time out setting in IIS, and it...
12
43197
by: Geigho | last post by:
Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.
2
862
by: Greg Decos | last post by:
I am using forms authentication using a FormsAuthenticationTickets set to expire in 30 minutes and the ticket is added to the collection of cookies. I am not sure where the following values are used: 1. timeout in: <authentication mode="Forms"> <forms ...timeout="30" 2. session timeout defined in IIS 3. timeout in
4
15469
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site | Properties | Configuration | Options | Enable Session State Session timeout 20 (3) within Global.asax.vb file - Session_Start subroutine can use Session.Timeout=x minutes or (4) within any web page, i.e., <web page>.aspx can use...
17
5217
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be running continuously and refreshing once an hour. I there set timeout= 61 in <sessionState section and on my page it says <meta http-equiv="refresh" content="3600">. I also set timeout=120 in the <forms section of web.config to make sure
4
9457
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change the forms authentication to be a large value for that page also. TIA - Jeff.
22
5295
by: Nick Craig-Wood | last post by:
Did anyone write a contextmanager implementing a timeout for python2.5? I'd love to be able to write something like with timeout(5.0) as exceeded: some_long_running_stuff() if exceeded: print "Oops - took too long!"
25
6101
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
5
3782
by: Masso | last post by:
Hallo to the group, my question is this: where i have to set timeout in a web application? If i set into sessionState with property Timeout="60", after 20 minutes the session is over. Always after 20 minutes, i cannot set a timeout greater than 20 minutes. Our configuration is the following: - Server with Win2003, i.e. IIS 6.0 - Web application developed with vb.net simply composed by:
2
6447
by: JimLad | last post by:
Hi, I've got a very basic asp.net page that accesses a very slow db query and siplays to screen. I'm hitting a timeout aftre about 3.5 to 4.5 minutes - seems to be variable. SQL connection string timeout is set to 3000s. SQL Command timeout is set to 3000s. IIS Connection Timeout is set to 120s. ASP.NET script timeout is not set so must use default of 90s.
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9930
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8961
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.