473,382 Members | 1,545 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,382 software developers and data experts.

Data Source = problem

I've been having this recurring General Network Error problem and I've been
looking to solve it. Reboot fixes the problem for several hours, but
eventually it happens again. Nothing seems to specifically trigger it.
HTML loads fine, ASP pages that connect to SQL Server, no dice.

Long story short, it happened about 15 minutes ago and one of the pages that
connects to SQL Server worked, but none of the other ones would. The page
in question is also the only page that has Data Source = IP Address. All of
the others refer to a machine name. Could this be the cause of the problem?
Before I change it system-wide, I want to be relatively certain it could be
the cause.

Any ideas?

Thanks!
James
Jul 22 '05 #1
8 1279
"James" <le********@verizon.net> wrote in message
news:#Q**************@TK2MSFTNGP15.phx.gbl...
I've been having this recurring General Network Error problem and I've been looking to solve it. Reboot fixes the problem for several hours, but
eventually it happens again. Nothing seems to specifically trigger it.
HTML loads fine, ASP pages that connect to SQL Server, no dice.

Long story short, it happened about 15 minutes ago and one of the pages that connects to SQL Server worked, but none of the other ones would. The page
in question is also the only page that has Data Source = IP Address. All of the others refer to a machine name. Could this be the cause of the problem? Before I change it system-wide, I want to be relatively certain it could be the cause.

Any ideas?


Hard to offer any ideas without knowing the exact error message ...
Jul 22 '05 #2
James wrote:
I've been having this recurring General Network Error problem and
I've been looking to solve it. Reboot fixes the problem for several
hours, but eventually it happens again. Nothing seems to
specifically trigger it. HTML loads fine, ASP pages that connect to
SQL Server, no dice.

Long story short, it happened about 15 minutes ago and one of the
pages that connects to SQL Server worked, but none of the other ones
would. The page in question is also the only page that has Data
Source = IP Address. All of the others refer to a machine name.
Could this be the cause of the problem? Before I change it
system-wide, I want to be relatively certain it could be the cause.

Any ideas?

Thanks!
James


It sounds as if you may be disabling session/connection pooling:
http://support.microsoft.com/?kbid=328476

You should be striving to make all your connection strings the same. Also,
avoid situations that cause implicit connections to be used:
http://support.microsoft.com/?kbid=271128

That means always using explicit connection objects, never doing things
like:

strconn="provider=..."
rs.open sqlstring,strconn
instead, use
set conn=createobject("adodb.connection")
rs.open sqlstring,conn,,,1
or
set rs=conn.execute(sqlstring,,1)

or

cmd.activeconnection = conn (this causes a new implicit connection)
use this to cause an existing connection object to be used:
set cmd.activeconnection = conn

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #3
Tell me about it! That was the exact error message. "General Network
Error".
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:ef**************@TK2MSFTNGP10.phx.gbl...
"James" <le********@verizon.net> wrote in message
news:#Q**************@TK2MSFTNGP15.phx.gbl...
I've been having this recurring General Network Error problem and I've been
looking to solve it. Reboot fixes the problem for several hours, but
eventually it happens again. Nothing seems to specifically trigger it.
HTML loads fine, ASP pages that connect to SQL Server, no dice.

Long story short, it happened about 15 minutes ago and one of the pages

that
connects to SQL Server worked, but none of the other ones would. The page in question is also the only page that has Data Source = IP Address.

All of
the others refer to a machine name. Could this be the cause of the

problem?
Before I change it system-wide, I want to be relatively certain it could

be
the cause.

Any ideas?


Hard to offer any ideas without knowing the exact error message ...

Jul 22 '05 #4
I'm not really a SQL guru. Any idea how I can check to see if Connection
Pooling is enabled/disabled? I read that article and some of it makes
sense, but it just seems to say "here's the possible problem" without a
solution. I am 99% certain that there isn't any code that explictly
disables connection pooling. I'm not sure if this is a setting I need to
explicitly enable within code or it's something I need to handle on the
server.

Thanks

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
James wrote:
I've been having this recurring General Network Error problem and
I've been looking to solve it. Reboot fixes the problem for several
hours, but eventually it happens again. Nothing seems to
specifically trigger it. HTML loads fine, ASP pages that connect to
SQL Server, no dice.

Long story short, it happened about 15 minutes ago and one of the
pages that connects to SQL Server worked, but none of the other ones
would. The page in question is also the only page that has Data
Source = IP Address. All of the others refer to a machine name.
Could this be the cause of the problem? Before I change it
system-wide, I want to be relatively certain it could be the cause.

Any ideas?

Thanks!
James


It sounds as if you may be disabling session/connection pooling:
http://support.microsoft.com/?kbid=328476

You should be striving to make all your connection strings the same. Also,
avoid situations that cause implicit connections to be used:
http://support.microsoft.com/?kbid=271128

That means always using explicit connection objects, never doing things
like:

strconn="provider=..."
rs.open sqlstring,strconn
instead, use
set conn=createobject("adodb.connection")
rs.open sqlstring,conn,,,1
or
set rs=conn.execute(sqlstring,,1)

or

cmd.activeconnection = conn (this causes a new implicit connection)
use this to cause an existing connection object to be used:
set cmd.activeconnection = conn

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Jul 22 '05 #5
It looks like a problem with name resolution as the page with the IP works
while those with the name fails....

Though it could be a workaround (they don't share all the same connection
string ?), it could worth to see if the server that resolves the name works
always fine or had a problem...

Patrice

--

"James" <le********@verizon.net> a écrit dans le message de
news:%2****************@TK2MSFTNGP15.phx.gbl...
I've been having this recurring General Network Error problem and I've been looking to solve it. Reboot fixes the problem for several hours, but
eventually it happens again. Nothing seems to specifically trigger it.
HTML loads fine, ASP pages that connect to SQL Server, no dice.

Long story short, it happened about 15 minutes ago and one of the pages that connects to SQL Server worked, but none of the other ones would. The page
in question is also the only page that has Data Source = IP Address. All of the others refer to a machine name. Could this be the cause of the problem? Before I change it system-wide, I want to be relatively certain it could be the cause.

Any ideas?

Thanks!
James

Jul 22 '05 #6
It's not really a SQL issue: it's an ADO/OLE DB issue.

With ASP, pooling is on by default. You pretty much have to jump through
hoops to turn it off (as long as you avoid the bad programming practices I
described in my first reply).

With SQL Server, you can use SQL Profiler to determine whether pooling is
being used. The thing to look for is calls to sp_reset_connection. If you
see this call, connections are being reused. (If you don't see any calls to
sp_reset_connection, you really don't have any pooling - or connections
occur less than once a minute.)

Bob Barrows

James wrote:
I'm not really a SQL guru. Any idea how I can check to see if
Connection Pooling is enabled/disabled? I read that article and some
of it makes sense, but it just seems to say "here's the possible
problem" without a solution. I am 99% certain that there isn't any
code that explictly disables connection pooling. I'm not sure if
this is a setting I need to explicitly enable within code or it's
something I need to handle on the server.

Thanks

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
James wrote:
I've been having this recurring General Network Error problem and
I've been looking to solve it. Reboot fixes the problem for several
hours, but eventually it happens again. Nothing seems to
specifically trigger it. HTML loads fine, ASP pages that connect to
SQL Server, no dice.

Long story short, it happened about 15 minutes ago and one of the
pages that connects to SQL Server worked, but none of the other ones
would. The page in question is also the only page that has Data
Source = IP Address. All of the others refer to a machine name.
Could this be the cause of the problem? Before I change it
system-wide, I want to be relatively certain it could be the cause.

Any ideas?

Thanks!
James


It sounds as if you may be disabling session/connection pooling:
http://support.microsoft.com/?kbid=328476

You should be striving to make all your connection strings the same.
Also, avoid situations that cause implicit connections to be used:
http://support.microsoft.com/?kbid=271128

That means always using explicit connection objects, never doing
things like:

strconn="provider=..."
rs.open sqlstring,strconn
instead, use
set conn=createobject("adodb.connection")
rs.open sqlstring,conn,,,1
or
set rs=conn.execute(sqlstring,,1)

or

cmd.activeconnection = conn (this causes a new implicit connection)
use this to cause an existing connection object to be used:
set cmd.activeconnection = conn

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get
a quicker response by posting to the newsgroup.


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #7
io
G'day James,

Looks like name resolution service goes off spontaneously. I think you are
quite safe to do what you already suggested - use IP address for Data
Source. If you feel like fixing it properly you better bug your sys/network
admin.

Cheers

"James" <le********@verizon.net> wrote in message
news:#Q**************@TK2MSFTNGP15.phx.gbl...
I've been having this recurring General Network Error problem and I've been looking to solve it. Reboot fixes the problem for several hours, but
eventually it happens again. Nothing seems to specifically trigger it.
HTML loads fine, ASP pages that connect to SQL Server, no dice.

Long story short, it happened about 15 minutes ago and one of the pages that connects to SQL Server worked, but none of the other ones would. The page
in question is also the only page that has Data Source = IP Address. All of the others refer to a machine name. Could this be the cause of the problem? Before I change it system-wide, I want to be relatively certain it could be the cause.

Any ideas?

Thanks!
James

Jul 22 '05 #8
That's certainly what it seems like to me. We never had this problem before
(used to use DSNs). We spent the past several months reorganizing our
database/code to a much more efficient structure. Per several suggestions,
we changed the connections away from DSNs and this problem began.

I've changed all of the connection strings to reference the IP address of
the SQL Server. So far, so good...but it's only been about 12 hours.

Thanks for all the help, hopefully this is resolved now. ::knock on wood::

James

"io" <io********@agrilink-int.com> wrote in message
news:Ov****************@TK2MSFTNGP10.phx.gbl...
G'day James,

Looks like name resolution service goes off spontaneously. I think you are
quite safe to do what you already suggested - use IP address for Data
Source. If you feel like fixing it properly you better bug your sys/network admin.

Cheers

"James" <le********@verizon.net> wrote in message
news:#Q**************@TK2MSFTNGP15.phx.gbl...
I've been having this recurring General Network Error problem and I've been
looking to solve it. Reboot fixes the problem for several hours, but
eventually it happens again. Nothing seems to specifically trigger it.
HTML loads fine, ASP pages that connect to SQL Server, no dice.

Long story short, it happened about 15 minutes ago and one of the pages

that
connects to SQL Server worked, but none of the other ones would. The page in question is also the only page that has Data Source = IP Address.

All of
the others refer to a machine name. Could this be the cause of the

problem?
Before I change it system-wide, I want to be relatively certain it could

be
the cause.

Any ideas?

Thanks!
James


Jul 22 '05 #9

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

Similar topics

3
by: brian kaufmann | last post by:
Hi, I had sent this earlier, and would appreciate any suggestions on this. I need to make calculations for unemployment rate for three different data sources (A,B,C) for many countries and age...
2
by: Greg Strong | last post by:
Hello All, I've written code in a test database with test data. Everything seems to be working except compact database in VB code per http://www.mvps.org/access/general/gen0041.htm. The reason I...
4
by: Dan | last post by:
I'm trying to creat a data structure, that can be either a integer, double, string, or linked list. So I created the following, but don't know if it is the data structure itself causing problems,...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
5
by: rogsonl | last post by:
My computer was moved last week, and the company changed the network groups we work on. As a result, one of the main benefits from Whidbey (database connectivity) no longer works. Situation: 1....
7
by: John J. Hughes II | last post by:
I have a DataGridView with a TextBoxColumn. I setting the data source to a List<stringvalue in a static class. The list is filled from a background thread. So far all is fine and it works...
9
by: Anil Gupte | last post by:
After reading a tutorial and fiddling, I finally got this to work. I can now put two tables created with a DataTable class into a DataRelation. Phew! And it works! Dim tblSliceInfo As New...
11
by: Chad | last post by:
Hi Is it possible to substitute an alternative data source (eg MySQL or SQL Server) into an existing MS-Access application?
0
by: george585 | last post by:
Hello! I am new to network programming, and understand just basics. Using some sample code, and having read documentation, I managed to create a simple app in C# and VB.NET. The application is...
1
by: Coderer | last post by:
I have a project that I've been working on for a while, where several forms use DataGridViews to represent database information. The forms are .NET 2.0, in Studio 2005. For the past couple of...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.