connection problem via driver

Please support our MS SQL advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2006
Posts: 22
Reputation: hanifa is an unknown quantity at this point 
Solved Threads: 0
hanifa hanifa is offline Offline
Newbie Poster

connection problem via driver

 
0
  #1
Sep 15th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 7
Reputation: itsdavetime is an unknown quantity at this point 
Solved Threads: 1
itsdavetime itsdavetime is offline Offline
Newbie Poster

Re: connection problem via driver

 
0
  #2
Sep 19th, 2006
I really have never heard of that driver nor understand what you're trying to do.
The question is though, why are you connecting to port 1279? Did you change the port number in the server network utility? If not, it should be 1433.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 2
Reputation: adamsd5 is an unknown quantity at this point 
Solved Threads: 0
adamsd5 adamsd5 is offline Offline
Newbie Poster

Re: connection problem via driver

 
0
  #3
Sep 26th, 2008
Any chance you've come across a solution for this problem? I'm getting the same error, and have fumbled for a couple of days now.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 2
Reputation: adamsd5 is an unknown quantity at this point 
Solved Threads: 0
adamsd5 adamsd5 is offline Offline
Newbie Poster

Re: connection problem via driver

 
0
  #4
Sep 26th, 2008
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.)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the MS SQL Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC