| | |
connection problem via driver
Please support our MS SQL advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2006
Posts: 22
Reputation:
Solved Threads: 0
Hi,
My server machine is running on Windows XP and running MSSQL.
I have another client machine which also installed on Windows 2000 and since i cannot install the whole MSSQL, I installed the Client Tools only.
After installing,through my query analyser in client machine i can query the tables in my server machine.
However, the problem arose when i tried to use python-MSSQL connector called pymssql.
This error resulted :
>>> import pymssql
>>> db = pymssql.connect(host=r'192.168.1.204:1279',user='loginpls',password='qwerty',database='FR6EnterpriseDB')
Traceback (most recent call last):
File "<pyshell#1>", line 1, in -toplevel-
db = pymssql.connect(host=r'192.168.1.204:1279',user='loginpls',password='qwerty',database='FR6EnterpriseDB')
File "E:\Python24\Lib\site-packages\pymssql.py", line 310, in connect
con = _mssql.connect(dbhost, dbuser, dbpasswd)
error: DB-Lib error message 10004, severity 9:
Unable to connect: SQL Server is unavailable or does not exist. Invalid connection.
Net-Lib error during ConnectionOpen (ParseConnectParams()).
Error 14 - Not enough storage is available to complete this operation.
Quite surprising, When i first tried a week ago, there was no problem.
I also know for a fact, the problem isnt with the server either as my collegue running on Linux can connect via this pymssql driver too.
I think probably some setting somewhere or sumtin like that has been turned off/on..
Anyone can help me guide in the right direction
Thanks in advance.
My server machine is running on Windows XP and running MSSQL.
I have another client machine which also installed on Windows 2000 and since i cannot install the whole MSSQL, I installed the Client Tools only.
After installing,through my query analyser in client machine i can query the tables in my server machine.
However, the problem arose when i tried to use python-MSSQL connector called pymssql.
This error resulted :
>>> import pymssql
>>> db = pymssql.connect(host=r'192.168.1.204:1279',user='loginpls',password='qwerty',database='FR6EnterpriseDB')
Traceback (most recent call last):
File "<pyshell#1>", line 1, in -toplevel-
db = pymssql.connect(host=r'192.168.1.204:1279',user='loginpls',password='qwerty',database='FR6EnterpriseDB')
File "E:\Python24\Lib\site-packages\pymssql.py", line 310, in connect
con = _mssql.connect(dbhost, dbuser, dbpasswd)
error: DB-Lib error message 10004, severity 9:
Unable to connect: SQL Server is unavailable or does not exist. Invalid connection.
Net-Lib error during ConnectionOpen (ParseConnectParams()).
Error 14 - Not enough storage is available to complete this operation.
Quite surprising, When i first tried a week ago, there was no problem.
I also know for a fact, the problem isnt with the server either as my collegue running on Linux can connect via this pymssql driver too.
I think probably some setting somewhere or sumtin like that has been turned off/on..
Anyone can help me guide in the right direction
Thanks in advance.
•
•
Join Date: Sep 2008
Posts: 2
Reputation:
Solved Threads: 0
As a followup, I was able to resolve my problem, which didn't have the exact same error, but was similar:
Unable to connect: SQL Server is unavailable or does not exist. Invalid connection.
Net-Lib error during ConnectionOpen (Invalid Instance()).
Error 14 - Not enough storage is available to complete this operation.
It turned out my DBA had added an 'Instance Name' to the DB (I guess this is the sort of thing DBA's like to do.) I had to add that to my connection string:
pymssql.connect(host="10.1.x.y\instancename", user="user", password="password")
(of course, replace 'instancename' and 'user' and 'password' properly for your case.)
Unable to connect: SQL Server is unavailable or does not exist. Invalid connection.
Net-Lib error during ConnectionOpen (Invalid Instance()).
Error 14 - Not enough storage is available to complete this operation.
It turned out my DBA had added an 'Instance Name' to the DB (I guess this is the sort of thing DBA's like to do.) I had to add that to my connection string:
pymssql.connect(host="10.1.x.y\instancename", user="user", password="password")
(of course, replace 'instancename' and 'user' and 'password' properly for your case.)
![]() |
Similar Threads
- A7N8X-X MCP LAN Connection Problem (Windows NT / 2000 / XP)
- Internet Connection problem:Cable to modem to router to PC (Networking Hardware Configuration)
- AOL/router connection problem with msn messenger (Networking Hardware Configuration)
- Internet connection problem (Windows NT / 2000 / XP)
- internet explorer connection problem (Web Browsers)
- Connection Problems (Networking Hardware Configuration)
Other Threads in the MS SQL Forum
- Previous Thread: Fill in null values in outer join
- Next Thread: plese helpe maintenceplan for sql2005
| Thread Tools | Search this Thread |
connectingtodatabaseinuse count cursor data database datepart deadlock delete_trigger highperformancecomputing hpc hpcserver2008 ibm iis loop maximum microsoft ms mssql multithreading news number permission query reporting result server services sets source sql sqlserver sqlserver2005 supercomputing uniqueid update view





