<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1528" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=548270402-22032006><FONT face=Arial color=#0000ff size=2>I was
just going to say the same thing. That's exactly what I
do.</FONT></SPAN></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Chris Curvey
[mailto:ccurvey@gmail.com] <BR><B>Sent:</B> Tuesday, March 21, 2006 9:01
PM<BR><B>To:</B> David.Bear@asu.edu<BR><B>Cc:</B>
python-sybase@www.object-craft.com.au<BR><B>Subject:</B> Re: [python-sybase]
connection exception<BR><BR></FONT></DIV>You're connecting just fine.
Sybase is sending back an error message telling you what character set and
database you are using. You'll have to trap for that and just drop the
"error"<BR><BR>
<DIV><SPAN class=gmail_quote>On 3/21/06, <B class=gmail_sendername>David
Bear</B> <<A href="mailto:David.Bear@asu.edu">David.Bear@asu.edu</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">I
am using freetds instead of sybase to connect to our sybase
server.<BR><BR>==========<BR>d = Sybase.connect('ASU_DATA_WAREHOUSE',
'user', 'pw')<BR>Traceback (most recent call last):<BR> File
"<stdin>", line 1, in ? <BR> File
"/usr/lib64/python2.4/site-packages/Sybase.py", line 1005,
in<BR>connect<BR> strip, auto_commit, delay_connect,
locking)<BR> File "/usr/lib64/python2.4/site-packages/Sybase.py",
line 867, in
<BR>__init__<BR> self.connect()<BR> File
"/usr/lib64/python2.4/site-packages/Sybase.py", line 886,
in<BR>connect<BR> status =
conn.ct_connect(self.dsn)<BR> File
"/usr/lib64/python2.4/site-packages/Sybase.py", line 200, in
<BR>_servermsg_cb<BR> raise
DatabaseError(_fmt_server(msg))<BR>Sybase.DatabaseError: Msg 4294973000,
Level 10, State 1<BR>Changed client character set setting to 'iso_1'.<BR>Msg
8589940293, Level 10, State 2<BR>Changed database context to 'DICTIONARY'.
<BR>===============<BR><BR>the connection object never gets made. Can anyone
shed light on what<BR>this error means? I am able to connect using freetds
tsql command.<BR><BR>--<BR>David
Bear<BR>phone: 480-965-8257<BR>fax: 480-965-9189
<BR>College of Public Programs/ASU<BR>Wilson Hall 232<BR>Tempe, AZ
85287-0803<BR>"Beware the IP portfolio, everyone will be suspect of
trespassing"<BR>_______________________________________________<BR>Python-sybase
mailing list <BR><A
href="mailto:Python-sybase@www.object-craft.com.au">Python-sybase@www.object-craft.com.au</A><BR><A
href="https://www.object-craft.com.au/cgi-bin/mailman/listinfo/python-sybase">https://www.object-craft.com.au/cgi-bin/mailman/listinfo/python-sybase
</A><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>Nervous passengers are
advised to wear a blindfold. </BLOCKQUOTE></BODY></HTML>