I have an application connected to an overseas sql-server using port 1433.
But recently it always timeout the connection. Any solution to avoid
this??? I am using the VB.net Windowed Form with .net 2002, SQL-Sever 2000
Enterprise
Thanks! 8 5760
with you connection object you can set the timeout higher.
you could also make sure you can hit port 1433 before you try to create the
connection.
or where you declare your connection you can put it in a try catch statement
and loop until you have a connection.
"BBC1009" <be******@yahoo .com.hk> wrote in message
news:O4******** ********@TK2MSF TNGP09.phx.gbl. .. I have an application connected to an overseas sql-server using port 1433. But recently it always timeout the connection. Any solution to avoid this??? I am using the VB.net Windowed Form with .net 2002, SQL-Sever 2000 Enterprise
Thanks!
Do you meant that set the "connection timeout" to higher? I already set it
to 600 but still time-out.
I delcare the connection on the first login form and keep open thru the
program. Is it a problem?
"Chris Calzaretta" <cc*********@ho tmail.com> ¼¶¼g©ó¶l¥ó·s»D: OS************* *@TK2MSFTNGP14. phx.gbl... with you connection object you can set the timeout higher. you could also make sure you can hit port 1433 before you try to create the connection.
or where you declare your connection you can put it in a try catch statement and loop until you have a connection. "BBC1009" <be******@yahoo .com.hk> wrote in message news:O4******** ********@TK2MSF TNGP09.phx.gbl. ..I have an application connected to an overseas sql-server using port 1433. But recently it always timeout the connection. Any solution to avoid this??? I am using the VB.net Windowed Form with .net 2002, SQL-Sever 2000 Enterprise
Thanks!
My connection string is :
Data Source=xxxx.vic p.net;user Id=sa;password= abc;Initial
Catalog=ffs;Con nect Timeout=600
"BBC1009" <be******@yahoo .com.hk> ¼¶¼g©ó¶l¥ó·s»D: %2************* *****@TK2MSFTNG P12.phx.gbl... Do you meant that set the "connection timeout" to higher? I already set it to 600 but still time-out.
I delcare the connection on the first login form and keep open thru the program. Is it a problem?
"Chris Calzaretta" <cc*********@ho tmail.com> ¼¶¼g©ó¶l¥ó·s»D: OS************* *@TK2MSFTNGP14. phx.gbl... with you connection object you can set the timeout higher. you could also make sure you can hit port 1433 before you try to create the connection.
or where you declare your connection you can put it in a try catch statement and loop until you have a connection. "BBC1009" <be******@yahoo .com.hk> wrote in message news:O4******** ********@TK2MSF TNGP09.phx.gbl. ..I have an application connected to an overseas sql-server using port 1433. But recently it always timeout the connection. Any solution to avoid this??? I am using the VB.net Windowed Form with .net 2002, SQL-Sever 2000 Enterprise
Thanks!
Hi
I would only open the connection if you need it, because in .net the
connections get pooled, so I'd advise not to keep the connection open all
the time, I think this could cause a timeout, does the timeout occure when
you first want to connect or after a couple of minutes if the program is
already open?
Greetz Peter
"BBC1009" <be******@yahoo .com.hk> schreef in bericht
news:uL******** ******@TK2MSFTN GP12.phx.gbl... My connection string is :
Data Source=xxxx.vic p.net;user Id=sa;password= abc;Initial Catalog=ffs;Con nect Timeout=600
"BBC1009" <be******@yahoo .com.hk>
¼¶¼g©ó¶l¥ó·s»D: %2************* *****@TK2MSFTNG P12.phx.gbl... Do you meant that set the "connection timeout" to higher? I already set it to 600 but still time-out.
I delcare the connection on the first login form and keep open thru the program. Is it a problem?
"Chris Calzaretta" <cc*********@ho tmail.com>
¼¶¼g©ó¶l¥ó·s»D: OS************* *@TK2MSFTNGP14. phx.gbl... with you connection object you can set the timeout higher. you could also make sure you can hit port 1433 before you try to create the connection.
or where you declare your connection you can put it in a try catch statement and loop until you have a connection. "BBC1009" <be******@yahoo .com.hk> wrote in message news:O4******** ********@TK2MSF TNGP09.phx.gbl. .. I have an application connected to an overseas sql-server using port 1433. But recently it always timeout the connection. Any solution to avoid this??? I am using the VB.net Windowed Form with .net 2002, SQL-Sever 2000 Enterprise
Thanks!
When it connects to the local database, it should be no problem. The
problem only occur when connecting to the overseas server ie
Hongkong-->China.
We tried open the connection each time before but the performance is far
away from keep it open.
The first connect has no problem (login process) but it timeout when perform
a query or execute a sql.
Thanks
"Peter Proost" <pp*****@nospam .hotmail.com> ¼¶¼g©ó¶l¥ó·s»D: uv************* *@TK2MSFTNGP14. phx.gbl... Hi
I would only open the connection if you need it, because in .net the connections get pooled, so I'd advise not to keep the connection open all the time, I think this could cause a timeout, does the timeout occure when you first want to connect or after a couple of minutes if the program is already open?
Greetz Peter
"BBC1009" <be******@yahoo .com.hk> schreef in bericht news:uL******** ******@TK2MSFTN GP12.phx.gbl... My connection string is :
Data Source=xxxx.vic p.net;user Id=sa;password= abc;Initial Catalog=ffs;Con nect Timeout=600
"BBC1009" <be******@yahoo .com.hk> ¼¶¼g©ó¶l¥ó·s»D: %2************* *****@TK2MSFTNG P12.phx.gbl... > Do you meant that set the "connection timeout" to higher? I already > set > it to 600 but still time-out. > > I delcare the connection on the first login form and keep open thru the > program. Is it a problem? > > > "Chris Calzaretta" <cc*********@ho tmail.com> ¼¶¼g©ó¶l¥ó·s»D: OS************* *@TK2MSFTNGP14. phx.gbl... >> with you connection object you can set the timeout higher. >> you could also make sure you can hit port 1433 before you try to >> create >> the connection. >> >> or where you declare your connection you can put it in a try catch >> statement and loop until you have a connection. >> >> >> >> "BBC1009" <be******@yahoo .com.hk> wrote in message >> news:O4******** ********@TK2MSF TNGP09.phx.gbl. .. >>>I have an application connected to an overseas sql-server using port >>>1433. But recently it always timeout the connection. Any solution to >>>avoid this??? I am using the VB.net Windowed Form with .net 2002, >>>SQL-Sever 2000 Enterprise >>> >>> >>> Thanks! >>> >>> >> >> > >
How fast is the line to china? Maybe it isn't fast enough for a big query,
but it's fast enough for small selects
just my toughts...
Greetz
"BB2046" <ob*****@yahoo. com> schreef in bericht
news:#j******** *****@TK2MSFTNG P15.phx.gbl... When it connects to the local database, it should be no problem. The problem only occur when connecting to the overseas server ie Hongkong-->China. We tried open the connection each time before but the performance is far away from keep it open. The first connect has no problem (login process) but it timeout when
perform a query or execute a sql.
Thanks
"Peter Proost" <pp*****@nospam .hotmail.com>
¼¶¼g©ó¶l¥ó·s»D: uv************* *@TK2MSFTNGP14. phx.gbl... Hi
I would only open the connection if you need it, because in .net the connections get pooled, so I'd advise not to keep the connection open
all the time, I think this could cause a timeout, does the timeout occure
when you first want to connect or after a couple of minutes if the program is already open?
Greetz Peter
"BBC1009" <be******@yahoo .com.hk> schreef in bericht news:uL******** ******@TK2MSFTN GP12.phx.gbl... My connection string is :
Data Source=xxxx.vic p.net;user Id=sa;password= abc;Initial Catalog=ffs;Con nect Timeout=600
"BBC1009" <be******@yahoo .com.hk> ¼¶¼g©ó¶l¥ó·s»D: %2************* *****@TK2MSFTNG P12.phx.gbl... > Do you meant that set the "connection timeout" to higher? I already > set > it to 600 but still time-out. > > I delcare the connection on the first login form and keep open thru
the > program. Is it a problem? > > > "Chris Calzaretta" <cc*********@ho tmail.com> ¼¶¼g©ó¶l¥ó·s»D: OS************* *@TK2MSFTNGP14. phx.gbl... >> with you connection object you can set the timeout higher. >> you could also make sure you can hit port 1433 before you try to >> create >> the connection. >> >> or where you declare your connection you can put it in a try catch >> statement and loop until you have a connection. >> >> >> >> "BBC1009" <be******@yahoo .com.hk> wrote in message >> news:O4******** ********@TK2MSF TNGP09.phx.gbl. .. >>>I have an application connected to an overseas sql-server using port >>>1433. But recently it always timeout the connection. Any solution
to >>>avoid this??? I am using the VB.net Windowed Form with .net 2002, >>>SQL-Sever 2000 Enterprise >>> >>> >>> Thanks! >>> >>> >> >> > >
You can also specify the sqlcommand timeout,
SqlCommand.Comm andTimeout
greetz Peter
"Peter Proost" <pp*****@nospam .hotmail.com> schreef in bericht
news:ea******** ******@TK2MSFTN GP14.phx.gbl... How fast is the line to china? Maybe it isn't fast enough for a big query, but it's fast enough for small selects just my toughts...
Greetz
"BB2046" <ob*****@yahoo. com> schreef in bericht news:#j******** *****@TK2MSFTNG P15.phx.gbl... When it connects to the local database, it should be no problem. The problem only occur when connecting to the overseas server ie Hongkong-->China. We tried open the connection each time before but the performance is far away from keep it open. The first connect has no problem (login process) but it timeout when perform a query or execute a sql.
Thanks
"Peter Proost" <pp*****@nospam .hotmail.com> ¼¶¼g©ó¶l¥ó·s»D: uv************* *@TK2MSFTNGP14. phx.gbl... Hi
I would only open the connection if you need it, because in .net the connections get pooled, so I'd advise not to keep the connection open all the time, I think this could cause a timeout, does the timeout occure when you first want to connect or after a couple of minutes if the program
is already open?
Greetz Peter
"BBC1009" <be******@yahoo .com.hk> schreef in bericht news:uL******** ******@TK2MSFTN GP12.phx.gbl... > My connection string is : > > Data Source=xxxx.vic p.net;user Id=sa;password= abc;Initial > Catalog=ffs;Con nect Timeout=600 > > > > > "BBC1009" <be******@yahoo .com.hk> ¼¶¼g©ó¶l¥ó·s»D: %2************* *****@TK2MSFTNG P12.phx.gbl... > > Do you meant that set the "connection timeout" to higher? I
already> > set > > it to 600 but still time-out. > > > > I delcare the connection on the first login form and keep open thru the> > program. Is it a problem? > > > > > > "Chris Calzaretta" <cc*********@ho tmail.com> ¼¶¼g©ó¶l¥ó·s»D: OS************* *@TK2MSFTNGP14. phx.gbl... > >> with you connection object you can set the timeout higher. > >> you could also make sure you can hit port 1433 before you try to > >> create > >> the connection. > >> > >> or where you declare your connection you can put it in a try catch > >> statement and loop until you have a connection. > >> > >> > >> > >> "BBC1009" <be******@yahoo .com.hk> wrote in message > >> news:O4******** ********@TK2MSF TNGP09.phx.gbl. .. > >>>I have an application connected to an overseas sql-server using
port> >>>1433. But recently it always timeout the connection. Any solution to> >>>avoid this??? I am using the VB.net Windowed Form with .net 2002, > >>>SQL-Sever 2000 Enterprise > >>> > >>> > >>> Thanks! > >>> > >>> > >> > >> > > > > > >
BBC1009 wrote: I have an application connected to an overseas sql-server using port 1433. But recently it always timeout the connection. Any solution to avoid this??? I am using the VB.net Windowed Form with .net 2002, SQL-Sever 2000 Enterprise
Thanks!
Have you considered Queued Components? If your app doesn't want to wait
for the overseas connection, a local queue may add the fault tolerance
you need. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Hasan |
last post by:
Hi
I'm having a problem with deadlocks in a table in SQL server when
trying to update it through Biztalk 2004. There is no problem when I
use the same Biztalk solution to update a similar dummy table, but
when I try updating the original table in the production database,
some transactions are updated successfully whereas others become the...
|
by: serge |
last post by:
We have an ASP application installed on one powerful Win 2003 and
the SQL Server on another Win 2003.
We have two copies of the application (identical, one for production
and one for test purposes) that are operational. The 2nd application
is connected to the same SQL Server but a test copy of the production
database.
Today, running the...
|
by: Dicky Cheng |
last post by:
Hi,
I am using .net remoting technology. I set up a .net remoting client and
server in IIS. When the client calls the server, the server will run a long
duration method (30-60seconds). I have a test on it that if the network
broken at the time the client have already send the remoting request and
waiting for the server, the client side will...
|
by: Ville Huovinen |
last post by:
Platform: Windows 2003 Server (MS SQL Server 2003 SP3)
Language: C#
Problem:
My stored procedures times out randomly, some proces works fine when using
them from C#, and some generate SqlException which states that the server
has timed out. The problem isn't in server, neither in stored procedures
because they work fine in Sql Server's...
|
by: Mustafa Yesilkaya |
last post by:
Hi. I have a problem with sql server. I have thousands of record in a
database table. When i want to list all with SELECT * command in asp.net
page, an error message comes : SQL SERVER TIMEOUT.
But when i list with SELECT CITY command there is no error message but the
process is very slow.
Can you help me?
| |
by: John |
last post by:
I have a single server running SQL Server 2000 sp3a, and acting as a ASP.NET
webserver (.net 1.1 sp1). W2k sp4. Dual Xeon processor, 2 gigs RAM.
Everything works fine, but sometimes when I execute a particular stored
procedure (on server console using command line, nothing .net), my webapps
will fail intermitently. Custom errors are turned...
|
by: Bernie Yaeger |
last post by:
I'm getting the following error - not always, only randomly - when I run a
certain routine (the routine is a simple executenonquery and it appears to
complete despite the message) against sql server 2000:
"timout expired. The timeout period elapsed prior to completion of the
operation or the server is not responding"
Anyone have any idea...
|
by: VB Programmer |
last post by:
When I run my ASP.NET 2.0 web app on my dev machine it works perfect. When
I precomile it to my web deployment project and then copy the debug files to
my web server I get this problem when trying to login (obviously it's using
ASPNETDB.mdf). Any ideas?
Server Error in '/' Application....
|
by: Marcus |
last post by:
I have a function that simply returns TRUE if it can connect to a
particular Sql Server 2005 express, or FALSE if it cannot. I am getting
some strange error codes returned when the computer that sql server
resides on is not reachable. The error is different depending on the
connection string that I use. If I use the following connection...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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...
|
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...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
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
| |
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...
| |