<div dir="ltr">I believe there is a bug in Python.. _mssql ...    I am not too familiar with Python yet, but after adding several breakpoints and watching the variable, the last step of pymssql.py is<br><br>    # open the connection<br>
    con = _mssql.connect(dbhost, dbuser, dbpasswd)<br><br>    con.select_db(dbbase)<br><br><br>At this point the contents of dbbase is "Gcare4UI-B6_3_dev" (no quotes)...  however, the immediate error is that<br>
"Gcare4UI" does not exist.<br><br>Again removing the DASH from Gcare4UI-B6_3_dev and turning it into  Gcare4UIB6_3_dev results in error that can't find DB Gcare4UIB6_3_dev (of course because the DB without the - doesnt exist... )<br>
<br>please help... thanks.<br><br><br><div class="gmail_quote">On Wed, Aug 13, 2008 at 4:54 PM, Samuel Morhaim <span dir="ltr"><<a href="mailto:samuel.morhaim@gmail.com">samuel.morhaim@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">I tried:<br><br>import sys<br>import pymssql<br><br>db = 'Gcare4UI-B6_3_dev'<br>
<br>conn = pymssql.connect (host = "localhost",<br>                         user = "myname",<br>                         password = "mypassword",<br>
                         database = db)<br><br><br><br>And this returns an error saying <br>Could not locate entry in sysdatabases for database 'Gcare4UI'. No entry found with that name.<br><br>It is not reading the db name after the Dash... if i remove the dash from the db to see what happens, it shows this obvious error, because it  doesnt exist... i was just making  sure the problem was with the dash<br>

<br>Could not locate entry in sysdatabases for database 'Gcare4UIB6_3_dev'. No entry found with that name.<br><br>Anyone had this problem?  <br><br>Thanks.<br><br></div>
</blockquote></div><br></div>