It was simplet fix. department was set to managed =True, i set that to
False  and it fixed the problem.

Cheers

On Wed, Jul 21, 2021 at 1:43 AM Divyesh Khamele <dkkham...@gmail.com> wrote:

>
> If you have any doubt I’ll provide you all the solutions (Dm for paid work)
> On Tue, 20 Jul 2021 at 5:29 AM, sum abiut <suab...@gmail.com> wrote:
>
>> 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
>> <https://docs.djangoproject.com/en/3.2/howto/legacy-databases/>.
>> 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)")
>>
>>
>> --
>> 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+unsubscr...@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
>> <https://groups.google.com/d/msgid/django-users/CAPCf-y68HNmO3yzkgLhhoY18Tav7U6KE-YxXRvcPOXVc1__6FA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAOcoDQX0Bio_2wcQ%2BCCvZZwfuX3h8bhjOc%2BGXqNN292bG_K9dw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAOcoDQX0Bio_2wcQ%2BCCvZZwfuX3h8bhjOc%2BGXqNN292bG_K9dw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPCf-y5aY7yfe%3DZXmmOywAqftb7s46EMo-qyeD9%3D8MmzBj6pyg%40mail.gmail.com.

Reply via email to