We are running a SQL Server 2000 database witrh Navision with defaults enabled. This means every Navision defined field as a default constraint in SQL Server.
I had a SQL Server programmer change the field size of a field in a Navision defined table from 30 to 50 characters using SQL Server Enterprise instead of Navision.
Naturally Navision did not like that.
I changed the field size back in SQL Server and Navision is happy again.
I then tried to change the field size in Navision and received a drop constraint error where it cannot find the constraint.
Does anyone know a fix for this?
Could I create a contraint with the name it is expecting so it will drop it sucessfully or is it more complicated than that?
0
Comments
First of all, you should create a NAV backup, just in case.
I'd probably try to create a new database with your objects, which then would create a new table according to the NAV design. Then script the table you're talking about into an UPDATE script and see if you can update the table.
RIS Plus, LLC
I have a copy of the database before it was changed and the constraint name it is looking for is not there - I am looking in the sysobjects table.
http://mibuso.com/blogs/davidmachanick/
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Then executed the script.
Navision can now modify the table fields again.
The constraints are stored in the sysobjects table and you can find the parent_obj number by querying on [name] = companyname$tablename and using the id.
http://mibuso.com/blogs/davidmachanick/
I guess you won't be doing that again [-o<
the changing of fields has been discussed to infinitum.
better to add a new field or use the developers tool kit to find out where all the places that field needs to be updated. Plus as I've read here, it usually will cause problems during upgrades.
http://www.BiloBeauty.com
http://www.autismspeaks.org
I did not ask him to change it - he just did it.
I found out when Navision got an error accessing that table when its internal definition did not match SQL Server's definition.
I had told him that table changes needed to be done in Navision. Judging from the errors he keeps fixing in his custom applications, I think this guy does not understand the importance of testing and collaboration.
http://mibuso.com/blogs/davidmachanick/
RIS Plus, LLC
The previous .net developer was not as quick, but a lot more mature, and understood we were sharing the same database and referred all table changes to me.
http://mibuso.com/blogs/davidmachanick/