While Database Conversion from NAV 2015 to NAV 2018 Getting Error

rambhu_05rambhu_05 Member Posts: 8
Hi All,
I am upgrading Database from NAV 2013 to NAV 2018.

I upgraded from NAV 2013 to NAV 2015 without any error.

Now while I am doing Form NAV 2015 to NAV 2018 upgradation.

For this when i am opening Database in NAV 2018 for database conversion i am getting the following error.

Microsoft Dynamics NAV Development Environment
The following SQL Server error or errors occurred:

102,"42000",[Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near ' '.
102,"42000",[Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near ' '.
102,"42000",[Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near ' '.
102,"42000",[Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near ' '.
102,"42000",[Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near ' '.
102,"42000",[Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near ' '.

SQL:
-- Drop existing 'Object Tracking' triggers
IF EXISTS (SELECT * FROM sysobjects WHERE name = N'$ndo$objecttracking' AND type = N'TR') DROP TRIGGER [dbo].[$ndo$objecttracking]
IF EXISTS (SELECT * FROM sysobjects WHERE name = N'$ndo$objecttracking$bp' AND type = N'TR') DROP TRIGGER [dbo].[$ndo$objecttracking$bp]
IF EXISTS (SELECT * FROM sysobjects WHERE name = N'$ndo$objecttracking$ca' AND type = N'TR') DROP TRIGGER [dbo].[$ndo$objecttracking$ca]
IF EXISTS (SELECT * FROM sysobjects WHERE name = N'$ndo$objecttracking$naom' AND type = N'TR') DROP TRIGGER [dbo].[$ndo$objecttracking$naom]
IF EXISTS (SELECT * FROM sysobjects WHERE name = N'$ndo$objecttracking$nata' AND type = N'TR') DROP TRIGGER [dbo].[$ndo$objecttracking$nata]
-- Enable change tracking on individual tables
IF NOT EXISTS (SELECT * FROM sys.change_tracking_tables WHERE object_id=Object_ID('[dbo].[Object Metadata]')) ALTER TABLE [dbo].[Object Metadata] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
IF NOT EXISTS (SELECT * FROM sys.change_tracking_tables WHERE object_id=Object_ID('[dbo].[Debugger Breakpoint]')) ALTER TABLE [dbo].[Debugger Breakpoint] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
IF NOT EXISTS (SELECT * FROM sys.change_tracking_tables WHERE object_id=Object_ID('[dbo].[Add-in]')) ALTER TABLE [dbo].[Add-in] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
IF NOT EXISTS (SELECT * FROM sys.change_tracking_tables WHERE object_id=Object_ID('[dbo].[NAV App Object Me
OK

Please suggest what to do.

Answers

Sign In or Register to comment.