Hi All,
In my multi-tenant development environment I've got an Application Database on a SQL 2008 R2 box (SQL1). Tenants that are mounted to this app db are located on both SQL1 and another SQL 2012 box (SQL2). I've discovered that when I try to Import a license into a Tenant the Import always fails for the tenants on SQL2 with the error "Invalid object name 'TenantDBName.dbo.$ndo$tenantproperty'.". I ran SQL Profiler and it turns out it is looking for the Tenant on SQL1 to import the license into even though the Tenant is mounted to SQL2! It seems like it is assuming all tenants are mounted on the same SQL Server as the app db.
Fortunately our prod multi-tenant environments don't have multiple SQL Servers so this is just a development issue for now. Has anyone else come across this behavior?
Ben
0
Comments
Import-NAVServerLicense : The following SQL error was unexpected.
Invalid object name 'database.dbo.$ndo$tenantproperty'.
No solution at the moment.
Another workaround is to have 1 tenant on your app SQL Server and load the license there. Then use TSQL to join your tenant SQL server to your app SQL server via a linked server and update the $ndo$tenantproperty.license column that way. Again you have to dismount\remount for it to take effect (or restart the entire service of course).
Neither workaround is fun, but we only have this setup in our development environment so it hasn't caused us too much grief.
Ben