471,305 Members | 1,352 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Python, Windows and SQL Server

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
4 2296
> 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
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
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
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.

Similar topics

19 posts views Thread by Jane Austine | last post: by
3 posts views Thread by francisl | last post: by
10 posts views Thread by Andrew Dalke | last post: by
3 posts views Thread by Mike Moum | last post: by
10 posts views Thread by martijn | last post: by
6 posts views Thread by Gary Kshepitzki | last post: by
16 posts views Thread by diffuser78 | last post: by
reply views Thread by Kurt B. Kaiser | last post: by
reply views Thread by rosydwin | last post: by

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.