|
Settings
Settings used with this backend.
SettingsDjango-mssql supports Django 1.1 and earlier style settings in addition to Django 1.2 multi-db settings. Example SettingsDATABASES = {
'default': {
'NAME': 'my_database',
'ENGINE': 'sqlserver_ado',
'HOST': 'dbserver\\ss2008',
'USER': '',
'PASSWORD': '',
'OPTIONS' : {
'provider': 'SQLOLEDB',
'use_mars': True,
},
}
}The following standard settings are recognized by this backend:
Additional django-mssql specific OPTIONS:
NotesYou will almost certainly want to set use_mars=True in your settings.py to allow you to iterate over query results while issuing new queries per-record. If your code gives you Cannot create new connection because in manual or distributed transaction mode errors, then MARS needs to be on. | ||||||||||||||||
► Sign in to add a comment