Share

Simple MS SQL Python extension module

Code

Programming Languages: C, Python

License: GNU Library or Lesser General Public License (LGPL)

Repositories

browse code, statistics, last commit on 2009-06-06 cvs -d:pserver:anonymous@pymssql.cvs.sourceforge.net:/cvsroot/pymssql login

cvs -z3 -d:pserver:anonymous@pymssql.cvs.sourceforge.net:/cvsroot/pymssql co -P modulename

Show:

What's happening?

  • Bulk insert

    Hi, I need to insert a large number of rows to a temporary table prior to running a query that will use them (making joins with other data on the database). Any advise on how to accomplish this maintaining reasonable performance? I know sqlserver has the concept of a bulk insert, although i'm still not sure which are its limitations, and if it would be useful here. In either case, is this...

    2009-11-10 20:24:38 UTC by filipecorreia

  • Comment: problem with getting several sets.(nextresult returns 1)

    OOps. I have been in! With version in cvs problem doesn't appear. When will next release appear? 1.0.3 :) BTW, in freebsd ports still version 1.0.1. Thank you for good lib!

    2009-10-26 12:45:29 UTC by igorpotapenko

  • problem with getting several sets.(nextresult returns 1)

    Hello! I have a problem with recieving serveral sets by one query. I am using python 2.5 and pymssql 1.0.2.(from http://sourceforge.net/projects/pymssql/files/) on freebsd with freetds (and on windows - same problem). SQL server 9.0.3042 After execute following code: [code] self.con = _mssql.connect(192.168.1.1:1433', 'USER', '12345',) sql = '''select 1,2,3.

    2009-10-26 12:41:29 UTC by igorpotapenko

  • Track statistics

    Is there a way to get the results of "set statistics time on" via pymssql? I tried using cursor.nextset() after retrieving the SELECT results, but there is no other data set. If there is no way, it would be a nice feature to have.

    2009-10-06 23:19:09 UTC by kmartine

  • Followup: RE: cannot create tables with _mssql and pymssql

    It worked for me. Had to ensure create table permissions were granted for the user in the database. Try running your SQL from Query Analyzer or sqlcmd to verify it is correct. Also, use semicolons, not "go" as command delimiters.

    2009-10-05 18:30:21 UTC by kmartine

  • Followup: RE: Select query returns nothing

    Nevermind, it seems the parameters were actually different. Doh!

    2009-10-05 14:46:04 UTC by grebekel

  • Select query returns nothing

    I'm running a query that should return at least 20000 rows. The query returns the whole of them when I run the query on a small test script, but returns nothing when I run it in my full app. The connection parameters are the same on both scripts and the query is a simple select: select cola, colb, colc, cold from sometable where create_date >= '2009-01-01' On my full app I'm executing...

    2009-10-05 14:40:31 UTC by grebekel

  • cannot create tables with _mssql and pymssql

    Hi everyone, i am trying to create a table with a query, but, after it ran, nothing happens: the table is not created and no error message is thrown. The same query done with SQL Server Management Studio instead have successful ending (ie the table is created) The problem occours with both pymssql and _mssql. What could be the problem? I'm running Python 2.5 under Windows Vista Business...

    2009-09-30 10:54:56 UTC by maloe

  • Followup: RE: ImportError _mssql missing

    I got exactly the same problem. I can guees why : _mssql has an extention **.pyd** I have no idea what that is, but when Python is trying to import modules, it's looking for **.py** files with source code in them. I've sent an email to the person who maintains this project.

    2009-09-23 00:32:18 UTC by vzingertal

  • Simple MS SQL Python extension module

    akukula added damoxc to the Simple MS SQL Python extension module project.

    2009-09-17 09:41:50 UTC by akukula

Our Numbers