473,386 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Re: Can't use DB name with dashes using pymssql ???

Samuel Morhaim wrote:
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

# open the connection
con = _mssql.connect(dbhost, dbuser, dbpasswd)
con.select_db(dbbase)
At this point the contents of dbbase is "Gcare4UI-B6_3_dev" (no
quotes)... however, the immediate error is that
"Gcare4UI" does not exist.
reading the documentation might help:

http://pymssql.sourceforge.net/troub...ting.html#dbid

</F>

Aug 13 '08 #1
0 969

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chris Bedford | last post by:
Hello, I'm using Xalan and I have a bunch of xslt documents that were constructed to run with another processor that has alot of custom extension functions. The names of these functions ...
9
by: tomakated | last post by:
How do I get rid of the dashes next to the 3, 6, and the 9<?. Also the last row of "------" and the "|" on the last line so that the board will look like this<?. | | | | 1| 2| ...
4
by: David | last post by:
(dhl) Using Access 2K. I have a ISBN number that is 10 char long and has dashes somewhere in the number. I need to remove the dashes and just leave the numbers. Is there any way of doing this? ...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
1
by: tshad | last post by:
I found that if I do a select from .csv file, it won't work if the filename has "." or "-" in them such as: PAYROLL.ALLOC.RPT_8511_3-15-07.CSV I am doing the following: Dim ConStr As String...
0
by: Neil | last post by:
I am having trouble using long dashes (Em dashes) with the Microsoft Rich Textbox 6.0 control. Whenever I paste them in, the control converts them to hyphens. I have found it is the same with the...
1
by: James Su | last post by:
I tried to use pymssql to access MSSQL 2000, with a table, I store Chinese Character in NVarchar field, Chinese Character display normally when I query them by MS SQL Query Analyzer under Windows...
0
by: Fredrik Lundh | last post by:
Fredrik Lundh wrote: also see the SQL server reference documentation (the section "Rules for Regular Identifiers" describes the valid syntax): ...
4
by: gdyren | last post by:
the code is below: import pymssql conn = pymssql.connect(host = "121.198.126.233",user = "xxxx",password = "xxxx",database = "test") print "connecting success" cursor = conn.cursor()...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.