Skip to content

Inspectdb command

Gaurav Sharma edited this page Sep 18, 2026 · 3 revisions

Inspecting a database schema

Use --schema to select the schema inspected by inspectdb. The default is dbo.

python manage.py inspectdb --schema "your_schema"

mssql-django 2.0 correctly handles schema names containing single quotes, for example:

python manage.py inspectdb --schema "O'Brien"

Add mssql to INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    "mssql",
)

Clone this wiki locally