June 17, 2008 at 8:18 am
Does anyone know how to find out the contraints which link tables in mssql using php? And then to remove them?
I am making a database website for someone and i had to delete the constriants using SQL Server Studio and i am worried about them returning and them being unable to use the database becuase the functions that error when a constraint is met cannot find and delete these constraints automatically.
June 24, 2008 at 6:37 pm
Constraints are meant to protect the data.... little things like Primary Keys and Foreign keys as well as some data level constraints in columns keep people from entering garbage into a database. You need to program you PHP to respect those constraints. If the constraints were incorrectly added to the database, then deleting them as you did should be enough. If someone adds a constraint, you need to repect that constraint in your PHP.
Talk with the DBA...
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy