connection to an existing legacy database

73 views
Skip to first unread message

sum abiut

unread,
Jul 19, 2021, 7:59:03 PM7/19/21
to django...@googlegroups.com
I am trying to connect Django to an existing legacy database but I got this error message. I only get the message why I try to migrate. I follow the guide from the Django documentation.
error message:
django.db.utils.ProgrammingError: ('42S01', "[42S01] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]There is already an object named 'Department' in the database. (2714) (SQLExecDirectW)")


Divyesh Khamele

unread,
Jul 20, 2021, 10:43:37 AM7/20/21
to django...@googlegroups.com

If you have any doubt I’ll provide you all the solutions (Dm for paid work)
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPCf-y68HNmO3yzkgLhhoY18Tav7U6KE-YxXRvcPOXVc1__6FA%40mail.gmail.com.

sum abiut

unread,
Jul 20, 2021, 10:27:16 PM7/20/21
to django...@googlegroups.com
It was simplet fix. department was set to managed =True, i set that to False  and it fixed the problem.

Cheers

Gabriel Araya Garcia

unread,
Jul 21, 2021, 10:54:42 AM7/21/21
to django...@googlegroups.com
Get the  [ODBC Driver in other site, perhaps your odbc driver are corrupted.

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




Reply all
Reply to author
Forward
0 new messages