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

General network error. Check your network documentation.

Hello,

I'm getting the following error when running a large SQL.
I am using the SqlCommand and calling the ExecuteNonQuery
with the CommandTimeout set to 0.

Here is the example of the code

sqlCommand = new SqlCommand(m_SQLBuffer, (SqlConnection)
m_connection);
sqlCommand.CommandTimeout=0;
//I GET THE EXCEPTION ON THE LINE BELOW
m_numOfRowAffected = sqlCommand.ExecuteNonQuery();
//
//Throws an exception of System.SystemException {"General
network error. Check your network documentation."}

Does anyone know what this exception means?

Thanks
Nov 15 '05 #1
5 7975
Connecting to the sql server fails for some odd reason? Maybe it gets
broken mid query or something.
Sorry, can't really help. Use a try/catch statement to get a more
descriptive error message.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #2
Hello,

There are'nt any broken queries and I have used the
try/catch which provided the error information.

Thanks,
-----Original Message-----
Connecting to the sql server fails for some odd reason? Maybe it getsbroken mid query or something.
Sorry, can't really help. Use a try/catch statement to get a moredescriptive error message.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/.

Nov 15 '05 #3
Can you execute any other query to the database?
I get a feeling that while ExecuteNonQuery is waiting for the result it
looses touch with the server.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #4
Could you have a look in the directory where SQL Server places its logs.
Last time I had such an error, it was due to a real crash of MSSQL and I had
a SQL dump in it.

José
"Buddy" <an*******@discussions.microsoft.com> wrote in message
news:0f****************************@phx.gbl...
Hello,

I'm getting the following error when running a large SQL.
I am using the SqlCommand and calling the ExecuteNonQuery
with the CommandTimeout set to 0.

Here is the example of the code

sqlCommand = new SqlCommand(m_SQLBuffer, (SqlConnection)
m_connection);
sqlCommand.CommandTimeout=0;
//I GET THE EXCEPTION ON THE LINE BELOW
m_numOfRowAffected = sqlCommand.ExecuteNonQuery();
//
//Throws an exception of System.SystemException {"General
network error. Check your network documentation."}

Does anyone know what this exception means?

Thanks

Nov 15 '05 #5
I can execute other queries but when I try and excecute
queries that takes at least 5 minutes I get the exception.

Thanks,
-----Original Message-----
Can you execute any other query to the database?
I get a feeling that while ExecuteNonQuery is waiting for the result itlooses touch with the server.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/.

Nov 15 '05 #6

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

Similar topics

2
by: stanley j Mroczek | last post by:
Every thing is on one machine, Programs and sql. Sql is up and running(can test with query analyzer). No changes where made! This was working fine. How do you track this error? What network...
2
by: SteveS | last post by:
Hello all. This problem is stumping me.... I run a page called "default.aspx". For some reason when I execute this page, I get the error below. It seems to run through the entire code behind...
7
by: stan | last post by:
I have .net 2003 and SQL 2000 setup on one system. All I have is one computer (no network). I am able to get to the internet that works. I can run SQL Query Analyzer and it works. The program was...
7
by: Joe Ross | last post by:
I've been working with Microsoft support for over 3 weeks now on an intermittent General Network Error we're seeing in our production environment between our ASP.NET application and SQL Server...
1
by: Kal | last post by:
Hello, System.Data.SqlClient.SqlException: General network error. Check your network documentation. What does this error means? My web app, suddenly started to show this error today in my...
0
by: archana | last post by:
Hi all, I am filling sqldataadapter by executing one stored procedure. But while calling adapter.fill i am getting error 'General network error. Check your network documentation.'. This...
0
by: johnkamal | last post by:
Hi, Some times while opening a page, I am getting the following error message, Please help me to rectify the problem. Server Error in '/' Application. General network error. Check your...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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
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.