title: .DATABASES is improperly configured. Please supply the ENGINE value
body: <pre><code>(mydjango) C:\StockMarketResearch\Else\StockAnalysisApp&gt;python manage.py dbshell
  Traceback (most recent call last):
    File "manage.py", line 22, in &lt;module&gt;
      execute_from_command_line(sys.argv)
    File "C:\mydjango\lib\site-packages\django\core\management\__init__.py", line 338, in execute_from_command_line
      utility.execute()
    File "C:\mydjango\lib\site-packages\django\core\management\__init__.py", line 330, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File "C:\mydjango\lib\site-packages\django\core\management\base.py", line 390, in run_from_argv
      self.execute(*args, **cmd_options)
    File "C:\mydjango\lib\site-packages\django\core\management\base.py", line 441, in execute
      output = self.handle(*args, **options)
    File "C:\mydjango\lib\site-packages\django\core\management\commands\dbshell.py", line 19, in handle
      connection.client.runshell()
    File "C:\mydjango\lib\site-packages\django\db\backends\dummy\base.py", line 21, in complain
      raise ImproperlyConfigured("settings.DATABASES is improperly configured. "
  django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details
  </code></pre>
  
  <p>Database setting:</p>
  
  <pre><code>DATABASES = {
  'default':{
  },
  'stock':{
      'NAME': 'STOCK',
      'ENGINE': 'sqlserver_ado',
      'HOST': 'EC2AMAZ-L7EBVJV\SQLEXPRESS1',
      'USER': 'sa',
      'PASSWORD': 'XXX',
      'OPTIONS': {
                  'provider': 'SQLOLEDB',
                  'use_legacy_date_fields': True,
                  #'MARS_Connection': True
              }
  }
  </code></pre>
  
  <p>this error occurs only when I try python manage.py dbshell/migrate/syncdb
  but
  I am able to execute simple database queries like 
  <strong>select * from xyz</strong> <em>(without any error or warning)</em>
  but not able to run queries like 
  <strong>insert into abc(x, c) 
  select x,c from pqr</strong> this gives me error <strong>trying to fetch from a closed connection or empty set</strong>
  And again I am able to execute nested queries without error</p>