473,803 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1309
"James" <le********@ver izon.net> wrote in message
news:#Q******** ******@TK2MSFTN GP15.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="provid er=..."
rs.open sqlstring,strco nn
instead, use
set conn=createobje ct("adodb.conne ction")
rs.open sqlstring,conn, ,,1
or
set rs=conn.execute (sqlstring,,1)

or

cmd.activeconne ction = conn (this causes a new implicit connection)
use this to cause an existing connection object to be used:
set cmd.activeconne ction = 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******** ******@TK2MSFTN GP10.phx.gbl...
"James" <le********@ver izon.net> wrote in message
news:#Q******** ******@TK2MSFTN GP15.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******@NOyah oo.SPAMcom> wrote in message
news:%2******** ********@TK2MSF TNGP12.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="provid er=..."
rs.open sqlstring,strco nn
instead, use
set conn=createobje ct("adodb.conne ction")
rs.open sqlstring,conn, ,,1
or
set rs=conn.execute (sqlstring,,1)

or

cmd.activeconne ction = conn (this causes a new implicit connection)
use this to cause an existing connection object to be used:
set cmd.activeconne ction = 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********@ver izon.net> a écrit dans le message de
news:%2******** ********@TK2MSF TNGP15.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_connec tion. If you
see this call, connections are being reused. (If you don't see any calls to
sp_reset_connec tion, 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******@NOyah oo.SPAMcom> wrote in message
news:%2******** ********@TK2MSF TNGP12.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="provid er=..."
rs.open sqlstring,strco nn
instead, use
set conn=createobje ct("adodb.conne ction")
rs.open sqlstring,conn, ,,1
or
set rs=conn.execute (sqlstring,,1)

or

cmd.activeconne ction = conn (this causes a new implicit connection)
use this to cause an existing connection object to be used:
set cmd.activeconne ction = 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********@ver izon.net> wrote in message
news:#Q******** ******@TK2MSFTN GP15.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********@agr ilink-int.com> wrote in message
news:Ov******** ********@TK2MSF TNGP10.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********@ver izon.net> wrote in message
news:#Q******** ******@TK2MSFTN GP15.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
2578
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 groupings. The calculation is: unemployment rate = number of unemployed/number of labour force
2
2471
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 say this is the auto number fields are NOT being reset to zero. I delete the data from tables with action delete queries, then call the compact DB code which is followed by importing data to tables and subsequent append queries to other tables....
4
2477
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, or something I am doing in the rest of the program. This is the data structure. struct node { char type;
5
2796
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 to the database to get the next page. Is there a way to use the dataset to allow us to read back and forth in it instead of going back to the database to get it? Thanks,
5
2888
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. I open a new project based on a windows form 2. I click on "data" and then "Add New Data Source" then I click on next within the wizard 3. I have 3 choices Database, Local Database, Web service and Object. 4. I choose Database, click next and get...
7
10073
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 great, at least on my system. The reason I am doing this is some customers are pulling from VPN connections which are slow. This allows the list of rows in the data grid to appear a little quicker while the list which are not used as soon load in...
9
4029
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 DataTable("SliceInfo") Dim tblSliceRatings As New DataTable("SliceRatings") '.... All the adding datacolumns, datarows, etc. goes here.. DatasetInit.Tables.Add(tblSliceInfo)
11
2583
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
3588
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 supposed to do the following: monitor ALL INCOMING TCP traffic on the local computer, and save certain parts of it as files - not log files though, but actual files that are sent to the computer as part of http or ftp. Basically if a user browse a page...
1
2402
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 days, whenever I click the little arrow in the top-right corner to show the DataGridView Tasks subwindow, then click to expand the dropdown for "Choose Data Source...", Studio crashes. If I "Debug" the app, of course I don't have any symbol tables,...
0
9703
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, 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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9564
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,...
0
10316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10295
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
9125
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
7604
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
6842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
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 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.