Base solution for your next web application
Open Closed

Unable to add Tenant with connection string #1349


User avatar
0
shyamjith created

Hi

I am setting up project for single instance multiple database. When i try to add tenants with connection string , i am getting an exception

System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AbpAuditLogs' in the database.


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    It seems like you are trying to use an existing database for your new tenant ? Is that correct ?

  • User Avatar
    0
    shyamjith created

    Thanks for the reply. My issue got solved. we must use property "Enlist=false" inside connection string when we are dealing with multiple db with same unit of work . Thank you

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks for sharing your solution :)