Code Monkey home page Code Monkey logo

django-pymssql's People

Contributors

aaugustin avatar greggg230 avatar lpmi-13 avatar manfre avatar msabramo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-pymssql's Issues

Password Length

I was getting an Adaptive Connection Failed (SQL Server 2014) that ended up being a password that was too long. This problem is at the pymssql level: it works with pyodbc, but is probably worth documentating, as I was banging my head against this for a while. I'll mention to pymssql also.

SQL Azure support

Does this support SQL Azure?
Could not find it in the documentation.

pip install assumes django-mssql 2.x.x -- that's bad for SQL2005/8

this package wraps django-mssql. the README says it was tested on django-mssql 1.6.x and MSSQL 2012 but should work on 2005/8. If you just pip install django-pymssql, the most recent version of django-mssql installs (2.x.x) . However, 2.x.x does not support MSSQL 2005/8, 1.6.x does. It would be helpful to add a comment to clarify this to the README as well as to specify the version in setup.py and/or add a requirements.txt. Something as simple as:

Note: MSSQL 2005/8 requires django-mssql 1.6.x

table with schema reference

Hi, I'm using pymssql from a django framework on centos7 on viirtualbox to Ms SqlServer 2008 R2 Express. I'm using the meta instrtuction like db_table=schema].[table.
When django generate the sql create a "create index" statement with name the schema and table separated with point. That's the generated error "django.db.utils.ProgrammingError: (102, "Incorrect syntax near '.'.DB-Lib error message 20018,".

Port option not respected

I have an SQL server that requires connection on a specific port, however specifying the port in the database connection settings have no effect

Please upload to Pypi

I don't know what is the development roadmap, but with the current progress, I can use django-pymssql?

Use of sp_MSforeachtable on Azure SQL Database

Hi Aymeric,
Hope you are doing well. I am working on a Django app that uses django-pymssql. It works great on SQL Server, however if I try to run the same app with my Azure SQL Database it fails.

It is because the stored proc - sp_MSforeachtable is not supported on Azure SQL Database.

Here is my error message when I run python manage.py migrate:

File "/Library/Python/2.7/site-packages/sqlserver_ado/base.py", line 292, in disable_constraint_checking
cursor.execute('EXEC sp_MSforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT all"')
File "pymssql.pyx", line 462, in pymssql.Cursor.execute (pymssql.c:6514)
pymssql.ProgrammingError: (2812, "Could not find stored procedure 'sp_MSforeachtable'.DB-Lib error message 20018, severity 16:\nGeneral SQL Server error: Check messages from the SQL Server\n")

What would be your recommendation in getting migrations to work for Azure SQL Database the same as SQL Server. As of now, my work around is using SSMS to create the stored proc so that django-pymssql can use it. However, for a pure linux/mac environment that will be difficult.

Please let me know.

Thanks,
Meet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.