We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79e421a commit 604de93Copy full SHA for 604de93
sql_server/pyodbc/base.py
@@ -481,12 +481,12 @@ def check_constraints(self, table_names=None):
481
482
def disable_constraint_checking(self):
483
if not self.needs_rollback:
484
- self.cursor().execute('EXEC sp_msforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT ALL"')
+ self.cursor().execute('EXEC sp_MSforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT ALL"')
485
return not self.needs_rollback
486
487
def enable_constraint_checking(self):
488
489
- self.cursor().execute('EXEC sp_msforeachtable "ALTER TABLE ? WITH CHECK CHECK CONSTRAINT ALL"')
+ self.cursor().execute('EXEC sp_MSforeachtable "ALTER TABLE ? WITH CHECK CHECK CONSTRAINT ALL"')
490
491
492
class CursorWrapper(object):
0 commit comments