In the above error scenario for a database restored from .bacpac exported from BC SaaS, I guess we can give a try by exporting the Create table "$ndo$dbproperty" query on top of any existing Business Central Database in On-premises SQL server. and reuse to create the table "$ndo$dbproperty" in the ".bacpac restored database" where the issue is occurring.
In Simple terms.
Get on a Business Central database of a required version in your on-premises SQL server. In my case I'm using Business Central V22 Database.
Expand the tables part select the "$ndo$dbproperty".
Right-click the table -> Script Table as -> CREATE To
The above query can be reused in a database and then on top, Business Central license can be attached further.
I hope this is already old and a known one to many.
If you are having any other way to tackle the above issue, let me and the community know your thoughts.
GO
SET ANSI_NULLS ON
GO
GO
[programid] [int] NOT NULL,
[chartable] [image] NULL,
[maxrecsize] [int] NOT NULL,
[maxloginattempts] [int] NOT NULL,
[passwordexpindays] [int] NOT NULL,
[supergroupid] [varchar](128) NOT NULL,
[unifiedloginallowed] [tinyint] NOT NULL,
[contype] [int] NOT NULL,
[shadowpwd] [varchar](128) NOT NULL,
[databasemagic] [int] NOT NULL,
[databaseversionno] [int] NOT NULL,
[clientdatabaseversionno] [int] NOT NULL,
[maintainviews] [int] NOT NULL,
[diagnostics] [int] NOT NULL,
[identifiers] [varchar](2000) NOT NULL,
[maintainrelationships] [int] NOT NULL,
[convertidentifiers] [int] NOT NULL,
[invalididentifierchars] [varchar](128) NOT NULL,
[license] [image] NULL,
[checkcodepage] [int] NOT NULL,
[quickfind] [int] NOT NULL,
[maintaindefaults] [int] NOT NULL,
[locktimeout] [int] NOT NULL,
[locktimeoutperiod] [int] NOT NULL,
[hardrowlock] [int] NOT NULL,
[bufferedrows] [int] NOT NULL,
[securityoption] [int] NOT NULL,
[enabledforserver] [int] NOT NULL,
[uidoffset] [int] NOT NULL,
[applicationversion] [varchar](50) NOT NULL,
[applicationfamily] [varchar](50) NOT NULL,
CONSTRAINT [PK$ndo$dbproperty] PRIMARY KEY CLUSTERED
(
[programid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO
GO

Report
All responses (
Answers (