Thanks.
If you don't want to use pymssql, you'll have a lot of work ahead of
you. And it doesn't seem to fit your rationale, since it's a fair bet
your (new) code would be no more stable than (pretty widely used)
pymssql.
Perhaps you should help push pymssql to 1.0 instead? If NIH, you'll
want to look at FreeTDS, which I think is the underlying C library
pymssql is using to speak SQL Server's language.
In any case, a sticking point to adding support for mssql is that
Django uses non-standard LIMIT/OFFSET clauses. Those are used when
indexing and slicing querysets (which, in turn, is used for pagination
and similar).
Pymssql also depends on "MS SQL 2000 DB-Library for C". And that
library's been deprecated.
There are 3 reasons I'm considering ODBC instead.
1) It should also allow connecting to other db's. Firebird is one I'm
interested in.
2) It hasn't been deprecated AFAIK.
3) It shouldn't be a problem installing it on our existing host. I
could always find another host. So this isn't too important.
Concerning LIMIT/OFFSET clauses, I've just read the thread in the
bellow URL. It's in the context of connecting to MSSql via ADO, but I
think that's irrelevant in this case. any solution found for pymssql
should also work with other providers, and vice-versa.
http://groups.google.com/group/django-developers/browse_frm/thread/6fa803c0fdcb82f3/3afb2c92f67d0511
hope this helps,
Filipe
> There is also this one (SWIG based):
> https://sourceforge.net/projects/pyodb
didn't know that one, it seems promising, I think I'll try it.
The following message (and it's thread) has a good (non-exhaustive)
review of the several ways to connect to MSSqlserver out there, which
might be useful:
http://groups.google.com/group/comp.lang.python/msg/0efa82b55929803e
> I cannot say anything about any of them, at work I'm forced to use Windows
> with MS-SQL and for my personal projects I would probably choose Postgres on
> Linux.
I'd also prefer to use postgres in this project of mine, but the data I
need is already "packaged" in a MSSqlServer database, so my choice is
bit limited for now.
regards,
Filipe
This tool lets you do arbitrary sql on migration, so if the MSSQL
database is being used by another app, you can leave unessesary stuff
behind (we left credit card numbers behind...a big advantage).