Showing posts with label connect. Show all posts
Showing posts with label connect. Show all posts

Thursday, March 29, 2012

General network error. Check your network documentation

I use sqlclient to connect directly from my mobile 5 pocketpc to a sql server 2005 database on my desktop.

I use a sqldatareader to traverse the results of a query that delivers 2 fields: (1) the filespec, and (2) the image field.

I use a filestream with a binary writer to write the contents of the image data to the pocketpc's storage card.

I have a test table with 10 images, not one more than 4 MB. I cannot complete a test run prior to receiving the general network error.

The pocketPC is connected via activesync to the desktop, and I connect to the database with:

Integrated Security=false;
user id=sa
password=admin.

Any help with this strange error would be greatly appreciated.

Wil

Will,

Using a SqlDataReader and the SqlClient from a device to a remote SQL Server database is a bad idea unless you have a 100% reliable network connection. Best case you can wrap your calls to dtr.Read() in a try catch and re-establish the connection and data reader if it drops, but what you are really doing is trying to keep an open cursor across a network to a remote db.

Better to grab what you need from SQL Server via RDA or an asynch web service call.

-Darren

|||

Hello Darren,

Thanks for your sensible reply...it was very helpful. I wonder why some sample code illustrates this technique for SqlClient if it is not generally advisable?

I will take a look at the alternatives you proposed.

Thanks again,

Wil Pannell

|||

Sure thing Wil - I think using the SQLClient makes sense in a cradled situation and if you have some local data caching established (using SQL CE/Mobile for example), you can get away with connecting over 802.11 as well, but you have to really protect yourself code-wise and assume the connection could drop at any moment.

-Darren

sql

General network error. Check your network documentation

I use sqlclient to connect directly from my mobile 5 pocketpc to a sql server 2005 database on my desktop.

I use a sqldatareader to traverse the results of a query that delivers 2 fields: (1) the filespec, and (2) the image field.

I use a filestream with a binary writer to write the contents of the image data to the pocketpc's storage card.

I have a test table with 10 images, not one more than 4 MB. I cannot complete a test run prior to receiving the general network error.

The pocketPC is connected via activesync to the desktop, and I connect to the database with:

Integrated Security=false;
user id=sa
password=admin.

Any help with this strange error would be greatly appreciated.

Wil

Will,

Using a SqlDataReader and the SqlClient from a device to a remote SQL Server database is a bad idea unless you have a 100% reliable network connection. Best case you can wrap your calls to dtr.Read() in a try catch and re-establish the connection and data reader if it drops, but what you are really doing is trying to keep an open cursor across a network to a remote db.

Better to grab what you need from SQL Server via RDA or an asynch web service call.

-Darren

|||

Hello Darren,

Thanks for your sensible reply...it was very helpful. I wonder why some sample code illustrates this technique for SqlClient if it is not generally advisable?

I will take a look at the alternatives you proposed.

Thanks again,

Wil Pannell

|||

Sure thing Wil - I think using the SQLClient makes sense in a cradled situation and if you have some local data caching established (using SQL CE/Mobile for example), you can get away with connecting over 802.11 as well, but you have to really protect yourself code-wise and assume the connection could drop at any moment.

-Darren

general network error on asp .net 1.1

hi guys

i am developing my application on framework 1.1 on asp .net

i am trying to connect to sql server 2005 but it gives me error like general network error check your network documentation.

does any one know how to solve this error then pl reply fast

Is SQL Server on your local machine or on a remote server? Make sure the name or IP of the server is correct and that the port is open on any firewall. Try pinging the server to see if it responds.

Tuesday, March 27, 2012

General Network Error

Hello,
A User currently having a problem with an Access 2000 application that uses
Linked tables to connect to an SQL 2005 database. The user receives the
following message:
Connection failed:
SQLState: ‘01000’
SQL Server Error: 11004
[Microsoft ][ODBC SQL Server Driver][TCP/IP Sockets]
ConnectionOpen(gethostbyname()()).
Connection failed:
SQLState: ‘08001’
SQL Server Error: 11
[Microsoft ][ODBC SQL Server Driver][TCP/IP Sockets] General net
work error.
Check your network documentation.
The application was working for the user but it stopped working after a help
desk person had done some things to her machine to get another application
working. Anybody have an idea on what may have changed to cause this to
happen?
The Users workstation is Windows 2000 SP4. I can also ping and telnet to the
SQL server from that machine.It can be caused by different things but I've seen MDAC
versions be the cause of such problems before. Make sure the
PC has the latest MDAC version. You can download MDAC
versions and also download component checker to check the
MDAC version from:
http://msdn.microsoft.com/data/ref/mdac/downloads/
You would also want to check the event logs on the PC for
any network related issues.
-Sue
On Wed, 26 Jul 2006 08:46:02 -0700, Bill Klein
<BillKlein@.discussions.microsoft.com> wrote:

>Hello,
>A User currently having a problem with an Access 2000 application that uses
>Linked tables to connect to an SQL 2005 database. The user receives the
>following message:
>Connection failed:
>SQLState: 01000
>SQL Server Error: 11004
>[Microsoft ][ODBC SQL Server Driver][TCP/IP Sockets]
>ConnectionOpen(gethostbyname()()).
>Connection failed:
>SQLState: 08001
>SQL Server Error: 11
>[Microsoft ][ODBC SQL Server Driver][TCP/IP Sockets] General ne
twork error.
>Check your network documentation.
>The application was working for the user but it stopped working after a hel
p
>desk person had done some things to her machine to get another application
>working. Anybody have an idea on what may have changed to cause this to
>happen?
>The Users workstation is Windows 2000 SP4. I can also ping and telnet to th
e
>SQL server from that machine.|||Thanks Sue, the computer had version 2.53 i've upgraded it to 2.8 sp1 and
everything seems to work fine now.
"Sue Hoegemeier" wrote:

> It can be caused by different things but I've seen MDAC
> versions be the cause of such problems before. Make sure the
> PC has the latest MDAC version. You can download MDAC
> versions and also download component checker to check the
> MDAC version from:
> http://msdn.microsoft.com/data/ref/mdac/downloads/
> You would also want to check the event logs on the PC for
> any network related issues.
> -Sue
> On Wed, 26 Jul 2006 08:46:02 -0700, Bill Klein
> <BillKlein@.discussions.microsoft.com> wrote:
>
>sql

Sunday, February 26, 2012

Full-Text Search stopped for confict in service accounts

Hi:
In me organizattion are one sql 2000 server with the dbs.
When remote users connect to this server can't see the Full-Text Search
running.
The Microsoft Search service in windows are running.
I was read that the problem concern to change the user of microsoft sql
services after install the server. This is the poit. This server have this
problem. I change the user of sql services after install the sql.
Have any form of resolve this confinct without reinstall the sql server?
Thanks a lot
cyber
MSSearch must run under the local system account. One of the reasons SQL FTS
might not work is because you change the account that MSSQLServer runs under
using control panel. If so you should locate your server in Enterprise
Manager, right click on it, and select properties, then click the security
tab, and change it back to system, SQL Server will prompt you to stop and
start it. Then change it back to the local admin account.
I suspect you are actually running into this problem -
http://www.indexserverfaq.com/tablenotenabled.htm
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"cyb165er" <cyb165er@.discussions.microsoft.com> wrote in message
news:CBD24B8D-9D09-4EC0-84C0-84D48F7344CC@.microsoft.com...
> Hi:
> In me organizattion are one sql 2000 server with the dbs.
> When remote users connect to this server can't see the Full-Text Search
> running.
> The Microsoft Search service in windows are running.
> I was read that the problem concern to change the user of microsoft sql
> services after install the server. This is the poit. This server have this
> problem. I change the user of sql services after install the sql.
> Have any form of resolve this confinct without reinstall the sql server?
> Thanks a lot
> cyber

Full-Text Search stopped for confict in service accounts

Hi:
In me organizattion are one sql 2000 server with the dbs.
When remote users connect to this server can't see the Full-Text Search
running.
The Microsoft Search service in windows are running.
I was read that the problem concern to change the user of microsoft sql
services after install the server. This is the poit. This server have this
problem. I change the user of sql services after install the sql.
Have any form of resolve this confinct without reinstall the sql server?
Thanks a lot
cyberMSSearch must run under the local system account. One of the reasons SQL FTS
might not work is because you change the account that MSSQLServer runs under
using control panel. If so you should locate your server in Enterprise
Manager, right click on it, and select properties, then click the security
tab, and change it back to system, SQL Server will prompt you to stop and
start it. Then change it back to the local admin account.
I suspect you are actually running into this problem -
http://www.indexserverfaq.com/tablenotenabled.htm
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"cyb165er" <cyb165er@.discussions.microsoft.com> wrote in message
news:CBD24B8D-9D09-4EC0-84C0-84D48F7344CC@.microsoft.com...
> Hi:
> In me organizattion are one sql 2000 server with the dbs.
> When remote users connect to this server can't see the Full-Text Search
> running.
> The Microsoft Search service in windows are running.
> I was read that the problem concern to change the user of microsoft sql
> services after install the server. This is the poit. This server have this
> problem. I change the user of sql services after install the sql.
> Have any form of resolve this confinct without reinstall the sql server?
> Thanks a lot
> cyber

Full-Text Search stopped for confict in service accounts

Hi:
In me organizattion are one sql 2000 server with the dbs.
When remote users connect to this server can't see the Full-Text Search
running.
The Microsoft Search service in windows are running.
I was read that the problem concern to change the user of microsoft sql
services after install the server. This is the poit. This server have this
problem. I change the user of sql services after install the sql.
Have any form of resolve this confinct without reinstall the sql server?
Thanks a lot
cyberMSSearch must run under the local system account. One of the reasons SQL FTS
might not work is because you change the account that MSSQLServer runs under
using control panel. If so you should locate your server in Enterprise
Manager, right click on it, and select properties, then click the security
tab, and change it back to system, SQL Server will prompt you to stop and
start it. Then change it back to the local admin account.
I suspect you are actually running into this problem -
http://www.indexserverfaq.com/tablenotenabled.htm
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"cyb165er" <cyb165er@.discussions.microsoft.com> wrote in message
news:CBD24B8D-9D09-4EC0-84C0-84D48F7344CC@.microsoft.com...
> Hi:
> In me organizattion are one sql 2000 server with the dbs.
> When remote users connect to this server can't see the Full-Text Search
> running.
> The Microsoft Search service in windows are running.
> I was read that the problem concern to change the user of microsoft sql
> services after install the server. This is the poit. This server have this
> problem. I change the user of sql services after install the sql.
> Have any form of resolve this confinct without reinstall the sql server?
> Thanks a lot
> cyber