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 b81a024 commit 70c17d5Copy full SHA for 70c17d5
sql_server/pyodbc/base.py
@@ -479,12 +479,12 @@ def check_constraints(self, table_names=None):
479
480
def disable_constraint_checking(self):
481
if not self.needs_rollback:
482
- self.cursor().execute('EXEC sp_msforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT ALL"')
+ self.cursor().execute('EXEC sp_MSforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT ALL"')
483
return not self.needs_rollback
484
485
def enable_constraint_checking(self):
486
487
- 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"')
488
489
490
class CursorWrapper(object):
0 commit comments