By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,096 Members | 1,568 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,096 IT Pros & Developers. It's quick & easy.

Python, Windows and SQL Server

P: n/a
I am developing an application for a client that will have data in a MS
SQL Server database. Costs have to be kept down so I have to develop
using the free version of any and all tools I may need. I have the SQL
Server installed, running on Windows XP. I was going to develop the GUI
using wxPython. My only obstacle so far is having Python (wxPython or
just plain Python) connect to the database. Is there a way to use
Python (installed on the same XP server) to connect to SQL Server? I
had read somewhere that Sybase and SQL Server have the same 'roots' and
that using a Sybase driver, can sometimes work when one wants to connect
to a SQL Server instance.

Any ideas?
Jul 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
> Is there a way to use
Python (installed on the same XP server) to connect to SQL Server? I
had read somewhere that Sybase and SQL Server have the same 'roots' and
that using a Sybase driver, can sometimes work when one wants to connect
to a SQL Server instance.

Any ideas?


Steve,
I program in Python against MS SQL Server fairly often, using Mark
Hammond's Win32 extensions for Python.
(http://starship.python.net/crew/mham...Downloads.html) With its
help, you can easily wrap ADO COM objects & access SQL Server. If
you're already familiar with ADO, it's a snap. (Even if you're not, ADO
is a pretty straightforward interface.)
Jul 18 '05 #2

P: n/a
Brian wrote:
Is there a way to use Python (installed on the same XP server) to
connect to SQL Server? I had read somewhere that Sybase and SQL
Server have the same 'roots' and that using a Sybase driver, can
sometimes work when one wants to connect to a SQL Server instance.
I program in Python against MS SQL Server fairly often, using Mark
Hammond's Win32 extensions for Python.
(http://starship.python.net/crew/mham...Downloads.html) With its
help, you can easily wrap ADO COM objects & access SQL Server. If
you're already familiar with ADO, it's a snap. (Even if you're not, ADO
is a pretty straightforward interface.)


That's have already been done. ;-)

See adodbapi.sf.net.
Jul 18 '05 #3

P: n/a
Max Ischenko wrote:
you can easily wrap ADO COM objects & access SQL Server. If
you're already familiar with ADO, it's a snap. (Even if you're not,
ADO is a pretty straightforward interface.)


That's have already been done. ;-)

See adodbapi.sf.net.


Thanks Max, I didn't realize this was available. I'll give it a try on
my next project.
Jul 18 '05 #4

P: n/a
Steve <sp***@pennswoods.net> wrote in message news:<ma*************************************@pyth on.org>...
I am developing an application for a client that will have data in a MS
SQL Server database. Costs have to be kept down so I have to develop
using the free version of any and all tools I may need. I have the SQL
Server installed, running on Windows XP. I was going to develop the GUI
using wxPython. My only obstacle so far is having Python (wxPython or
just plain Python) connect to the database. Is there a way to use
Python (installed on the same XP server) to connect to SQL Server? I
had read somewhere that Sybase and SQL Server have the same 'roots' and
that using a Sybase driver, can sometimes work when one wants to connect
to a SQL Server instance.

Any ideas?


mssql python db api

http://pymssql.sf.net
Jul 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.