Giter VIP home page Giter VIP logo

Comments (8)

Angelmaneuver avatar Angelmaneuver commented on June 6, 2024 1

Just to be sure, explicitly setting it to False has not resolved the issue.

from mssql-django.

mShan0 avatar mShan0 commented on June 6, 2024

HI there, we're able to reproduce this locally and are investigating.

from mssql-django.

mShan0 avatar mShan0 commented on June 6, 2024

This is due to a change on our end. As a workaround, can you try adding "OPTIONS": {"return_rows_bulk_insert": False} to your options?

from mssql-django.

Angelmaneuver avatar Angelmaneuver commented on June 6, 2024

I tried but the situation remained the same and the same error occurred.

DATABASES = {
    "default": {
        "ENGINE": "mssql",
        "NAME": "db",
        "USER": "user",
        "PASSWORD": "password",
        "HOST": "localhost",
        "PORT": "1433",
        "OPTIONS": {
            "driver": os.getenv("MSSQL_DRIVER", "ODBC Driver 18 for SQL Server"),
            "return_rows_bulk_insert": False,
            "extra_params": "",
        },
    }
}

The default value is False, so it was already False when I first reported it.

from mssql-django.

mShan0 avatar mShan0 commented on June 6, 2024

The default was changed to true for 1.4 but we are planning to change it back

from mssql-django.

hannylicious avatar hannylicious commented on June 6, 2024

Having a similar issue with:

Django: 5.0.3
mssql-django: 1.4
python: 3.11.6

The target table 'xxxxxxxxxx' of the DML statement cannot have any enabled triggers if the statement contains an OUTPUT clause without INTO clause. (334) (SQLExecDirectW);

Have tried setting return_rows_bulk_insert to True and False, neither worked. Cannot roll back to 1.3 as it doesn't support Django 5.

I can confirm that running 4.2.11 & mssql-django 1.3 does not have this issue.

from mssql-django.

marcura-guido avatar marcura-guido commented on June 6, 2024

Same issue appearing in my side as well with mssql-django: 1.4

SQL Trigger for 'AFTER INSERT' fails with the same error

[SQL Server]The target table 'xxxxxxxxxxxx' of the DML statement cannot have any enabled triggers if the statement contains an OUTPUT clause without INTO clause.

from mssql-django.

braga83 avatar braga83 commented on June 6, 2024

Same issue here with. I'm using mssql-django: 1.4

from mssql-django.

Related Issues (20)

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.