Dear All,
I am getting the following error while trying to rename the company on a SQL Server database from Nav 2009 Sp1 Client.Kindly help.
Microsoft Dynamics NAV Classic
The following SQL Server error or errors occurred when accessing the Trans. Sales Entry table:
15336,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server]Object '"TESTDB"."dbo"."XYZ$Trans_ Sales Entry"' cannot be renamed because the object participates in enforced dependencies.
SQL:
{CALL [sp_rename](?, ?, ?)}
0
Comments
Go to SSMS and run "View Dependencies" on that table.
But there is no tick on Maintain Relationships.
I suggest that you "View Dependencies" on the table from SQL Server Management Studio. If there are any which is out of NAV (i.e. created from SQL, then delete them and retry.
Thanks a lot for the help.
I deleted all the views of the Trans. Sales Entry table in SSMS. After that I was able to rename the company and then I compiled and redesigned the table in NAV.