[python-sybase] Language name error

Norbert Sebok seboknorbi at gmail.com
Sat May 27 16:00:54 EST 2006


Hi!

I got this exception:

 File "/home/fviktor/dbsync/webexport_mag.py", line 12, in ?
   db= Sybase.connect(server,user,passw,database)
 File "/usr/local/lib/python2.4/site-packages/Sybase.py", line 1005, in connect
   strip, auto_commit, delay_connect, locking)
 File "/usr/local/lib/python2.4/site-packages/Sybase.py", line 867, in __init__
   self.connect()
 File "/usr/local/lib/python2.4/site-packages/Sybase.py", line 886, in connect
   status = conn.ct_connect(self.dsn)
 File "/usr/local/lib/python2.4/site-packages/Sybase.py", line 200, in
_servermsg_cb
   raise DatabaseError(_fmt_server(msg))
DatabaseError: Msg 4017, Level 16, State 1
Neither language name in login record 'Š09999õßÂx' nor language name
in syslogins '<NULL>' is an official language name on this SQL Server.
 Using server-wide default 'us_english' instead.

It's maybe like this thread:
http://www.object-craft.com.au/pipermail/python-sybase/2006-March/000463.html

I'm using FreeTDS too, I tried to drop the error:
try:
   db= Sybase.connect(server,user,passw,database)
except:
  pass

but the db object doesn't exist after try-except.

What can be the solution?


More information about the Python-sybase mailing list