Hi!
I got this exception:
File "/home/fviktor/dbsync/webexport_mag.py", line 12, in ?
db=3D Sybase.connect(server,user,passw,database)
File "/usr/local/lib/python2.4/site-packages/Sybase.py", line 1005, in con=
nect
strip, auto_commit, delay_connect, locking)
File "/usr/local/lib/python2.4/site-packages/Sybase.py", line 867, in __in=
it__
self.connect()
File "/usr/local/lib/python2.4/site-packages/Sybase.py", line 886, in conn=
ect
status =3D 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 '=8A09999=F5=DF=C2x' nor language nam=
e
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.ht=
ml
I'm using FreeTDS too, I tried to drop the error:
try:
db=3D Sybase.connect(server,user,passw,database)
except:
pass
but the db object doesn't exist after try-except.
What can be the solution?
|