Please help me solve this weird ODBC Connection Problem

Please help me solve this weird ODBC Connection Problem

Post by Zee Xu » Sat, 31 Jan 1998 04:00:00



I developed a simple Access 95 database to copy some data from a SQL
server 6.5 to a local Access database. It worked well. It also worked
with the WINAT scheduling program. However, when I tried to schedule it
in another SQL server 6.5, it never finished. (These two SQL servers are
installed on two NT servers in the same domain.) I did some ODBC tracing
and found the error occured at SQLDriverConnectW call. I checked the
server error log and found there was no login attempt which normally
occurred. The SQLError call followed the failure showed the following
message:

....(function parameters here)
[Microsoft][ODBC SQL Server Driver][dbnmpntw]ConnectionOpen
(CreateFile()).
....(function parameters here)

I am just curious about what went wrong, why it did not work within SQL
Enterprise Manager? If anyone has an answer or solution to this problem,
please let me. Thanks.

Zhiming Xue

 
 
 

Please help me solve this weird ODBC Connection Problem

Post by Chris Leonar » Sat, 31 Jan 1998 04:00:00


Forgive me if you are way, way past this, which you might be, but...

Do you have identical ODBC DSNs defined on both machines?  And are both the
SQL and Access DSNs on the failing machine pointing to valid databases?

--
Chris Leonard
SQL Server / Windows NT MCP


>I developed a simple Access 95 database to copy some data from a SQL
>server 6.5 to a local Access database. It worked well. It also worked
>with the WINAT scheduling program. However, when I tried to schedule it
>in another SQL server 6.5, it never finished. (These two SQL servers are
>installed on two NT servers in the same domain.) I did some ODBC tracing
>and found the error occured at SQLDriverConnectW call. I checked the
>server error log and found there was no login attempt which normally
>occurred. The SQLError call followed the failure showed the following
>message:

>....(function parameters here)
>[Microsoft][ODBC SQL Server Driver][dbnmpntw]ConnectionOpen
>(CreateFile()).
>....(function parameters here)

>I am just curious about what went wrong, why it did not work within SQL
>Enterprise Manager? If anyone has an answer or solution to this problem,
>please let me. Thanks.

>Zhiming Xue



 
 
 

1. Problem in ODBC connection to remote sql 7 - Please Help

I have a windows 2000, SP2 machine and am running SQL Server 2000 on
it.  I have installed latest MDAC (2.7) independently also.  I am
trying to connect to a remote sql server 7 using ODBC.  I am getting a
general network error in doing so.  I used to be able to connect to
the same server from my old laptop (windows 95).  Have no idea what
the problem is.  Once I can get connect, I want to link the remote SQL
7 to the local SQL 2000.  Please HELP.

Below is exactly what I am getting when trying to create a DSN in ODBC
Admin:-

Connection Failed:
SQLState: '01000'
SQL Server Error: 11
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]ConnectionRead
(recv()).
Connection Failed:
SQLState: '08S01'
SQL Server Error: 11
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]General Network
Error. Check your network documentation.

I also created an alias in Client Network Utility..same problem when
tried to use the alias in Enterprise Manager to connect to the remote
SQL 7.

Many thanks in advance.

-Sam

2. SQLMail and Pager

3. SQL Mail with Exchange

4. dtsrun access exception

5. Difficult problem to solve....please help.

6. Best Way 2 Change Schema on Publisher

7. Please Help to solve the replication problem

8. Please Help solve my problem: Execution cancelled error.

9. Can't solve this Problem, Please Help!!!

10. Please help me solve problems with OLE fields in Paradox 5 Win

11. Please Help: Crystal Rep.:weird problem !