473,377 Members | 1,119 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,377 software developers and data experts.

MS SQL Server Extension?

Hi all, in my next project, my Python code needs to talk to an MS SQL
2000 Server. Internet search gives me http://pymssql.sourceforge.net/
I wonder what module(s) people are using. My code runs on a Linux
box so the module has to build on Linux. Any hints/pointers are welcome.
Apr 25 '07 #1
3 2067
Jack wrote:
Hi all, in my next project, my Python code needs to talk to an MS SQL
2000 Server. Internet search gives me http://pymssql.sourceforge.net/
I wonder what module(s) people are using. My code runs on a Linux
box so the module has to build on Linux. Any hints/pointers are welcome.
There are several modules around which will cover this.
One of these days I'll take the post I'm about to write
and stick it on a Wiki or something because I seem to
write it about once every six months :)

In no particular order:

adodbapi - recently resurrected from moribundity (if
that's a word); search the list archives because I
can't remember who's working on it.

+ Win32 only (afaik)
+ Covers all sorts of things as well as MSSQL
+ Allows for passthrough authentication

- Used to have some slight flakiness in it. Bloke
who's taken over maintenance says he's patched and
simplified things. Haven't tried it since.

pymssql - http://pymssql.sf.net

+ Win32 & Linux (via FreeTDS)

- Doesn't allow passthrough authentication
- Has some issues with Unicode

pyodbc - http://pyodbc.sf.net
(a recent runner)

+ Win32 & Linux (via whatever *nix ODBC package)
+ Apparently more actively maintained than pymssql
+ (Is currently the favoured front-runner among the
sqlalchemy devs)

- Lacks .nextset (in case that's important to you)

Other contenders:

mxODBC - Commercial License but a very strong
and long-standing candidate. Lacks .nextset
support. Works on *nix via iODBC etc.

Object Craft MSSQL - Worked well for me for years
but they seemed to have abandoned it of late.
Still there. Still works. But no binaries beyond
Python 2.3. (I did try to recompile using MingW
but couldn't get it to work). Works on *nix via
FreeTDS.

TJG
Apr 25 '07 #2
Thanks Tim for the reply. Good info.

I just set up pymssql. Setting it up was fairly straightforward. What kind
of problems
does it have with unicode?

"Tim Golden" <ma**@timgolden.me.ukwrote in message
news:ma***************************************@pyt hon.org...
Jack wrote:
>Hi all, in my next project, my Python code needs to talk to an MS SQL
2000 Server. Internet search gives me http://pymssql.sourceforge.net/
I wonder what module(s) people are using. My code runs on a Linux
box so the module has to build on Linux. Any hints/pointers are welcome.

There are several modules around which will cover this.
One of these days I'll take the post I'm about to write
and stick it on a Wiki or something because I seem to
write it about once every six months :)

In no particular order:

adodbapi - recently resurrected from moribundity (if
that's a word); search the list archives because I
can't remember who's working on it.

+ Win32 only (afaik)
+ Covers all sorts of things as well as MSSQL
+ Allows for passthrough authentication

- Used to have some slight flakiness in it. Bloke
who's taken over maintenance says he's patched and
simplified things. Haven't tried it since.

pymssql - http://pymssql.sf.net

+ Win32 & Linux (via FreeTDS)

- Doesn't allow passthrough authentication
- Has some issues with Unicode

pyodbc - http://pyodbc.sf.net
(a recent runner)

+ Win32 & Linux (via whatever *nix ODBC package)
+ Apparently more actively maintained than pymssql
+ (Is currently the favoured front-runner among the sqlalchemy devs)

- Lacks .nextset (in case that's important to you)

Other contenders:

mxODBC - Commercial License but a very strong
and long-standing candidate. Lacks .nextset
support. Works on *nix via iODBC etc.

Object Craft MSSQL - Worked well for me for years
but they seemed to have abandoned it of late.
Still there. Still works. But no binaries beyond
Python 2.3. (I did try to recompile using MingW
but couldn't get it to work). Works on *nix via
FreeTDS.

TJG

Apr 25 '07 #3
On Apr 25, 9:44 am, Tim Golden <m...@timgolden.me.ukwrote:
Jack wrote:
Hi all, in my next project, my Python code needs to talk to an MS SQL
2000 Server. Internet search gives mehttp://pymssql.sourceforge.net/
I wonder what module(s) people are using. My code runs on a Linux
box so the module has to build on Linux. Any hints/pointers are welcome.

There are several modules around which will cover this.
One of these days I'll take the post I'm about to write
and stick it on a Wiki or something because I seem to
write it about once every six months :)

In no particular order:

adodbapi - recently resurrected from moribundity (if
that's a word); search the list archives because I
can't remember who's working on it.

+ Win32 only (afaik)
+ Covers all sorts of things as well as MSSQL
+ Allows for passthrough authentication

- Used to have some slight flakiness in it. Bloke
who's taken over maintenance says he's patched and
simplified things. Haven't tried it since.

pymssql -http://pymssql.sf.net

+ Win32 & Linux (via FreeTDS)

- Doesn't allow passthrough authentication
- Has some issues with Unicode

pyodbc -http://pyodbc.sf.net
(a recent runner)

+ Win32 & Linux (via whatever *nix ODBC package)
+ Apparently more actively maintained than pymssql
+ (Is currently the favoured front-runner among the
sqlalchemy devs)

- Lacks .nextset (in case that's important to you)

Other contenders:

mxODBC - Commercial License but a very strong
and long-standing candidate. Lacks .nextset
support. Works on *nix via iODBC etc.

Object Craft MSSQL - Worked well for me for years
but they seemed to have abandoned it of late.
Still there. Still works. But no binaries beyond
Python 2.3. (I did try to recompile using MingW
but couldn't get it to work). Works on *nix via
FreeTDS.

TJG
An addition to the above list is the odbc module from the win32all
package. I use this, and although it is not 100% DB-API 2.0 compliant,
I find it quite satisfactory.

Google Groups seems to be running about 12 hours behind, so my
apologies if this has already been mentioned.

Frank Millman

Apr 26 '07 #4

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

Similar topics

0
by: Tomislav Petrovic | last post by:
Anyone having similar problems developing XMLRPC server? system.multiCall does not work for any but builtin (system.*) methods. Thorugh description on: http://bugs.php.net/27446 Tomy
1
by: Glen Branham | last post by:
I'm having problems with one of the websites on my MS2000 server. I can't publish a fp2000 web to it properly because it thinks fp server extensions are not installed. Whenever I use the MMC snap...
0
by: Mridul Buragohain | last post by:
hi all! ===================================== my environment: MS .NET 1.1 with Service pack 1 ASP.NET framework IIS 5.0 C#.NET language. =====================================
2
by: Yousri | last post by:
Hi All, Is there any quick reference on how to configure ASP.Net, Visual Studio.Net IIS 5.1 and front Page Server extension so that all work together. I am running XP Professional OS. Thanks...
2
by: alan yeo | last post by:
Hi, I cannot run asp v3 program in my newly installed windows server 2003. I have already enable asp in the web server extension of IIS6. Can some one help me ??
5
by: DMc2005 | last post by:
Hi All I have a big problem, I am always getting an error message when I browse a ASP page I created with Dreamweaver MX, the page is supposed to use VBScript, the page consists of: <HTML>...
2
by: Luqman | last post by:
When I try to view any asp page on server running Windows 2000 Server, it says: "Server Application Unavailable" I checked, IIS is installed, frontpage server extension is installed, what...
3
by: Ricardo Vazquez | last post by:
THIS IS MY SCENARIO: - PBX (a private telephone exchange or switch) - A Telephony server running on computer "A" (it communicates with the PBX via IP) - An ASP.NET application (running on...
2
gagandeepgupta16
by: gagandeepgupta16 | last post by:
Its Urgent !!! Hi we have a website to be hosted on a server which do not have Frontpage server extension. would it be possible to host ASP website in such server??? thanks in advance.
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.