![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there, Wanted to get a feel for what the feeling was out there about removing foreign key constraints on the database side for the n-tier application that enforces the integrity in the middle tier. Theoretically, if the only way the database is updated is through the application there might not be a need to enforce foreign key constraints. Any thoughts? Bob |
#3
| |||
| |||
|
|
Hi there, Wanted to get a feel for what the feeling was out there about removing foreign key constraints on the database side for the n-tier application that enforces the integrity in the middle tier. Theoretically, if the only way the database is updated is through the application there might not be a need to enforce foreign key constraints. Any thoughts? Bob |
#4
| |||
| |||
|
|
Bob wrote: Hi there, Wanted to get a feel for what the feeling was out there about removing foreign key constraints on the database side for the n-tier application that enforces the integrity in the middle tier. Theoretically, if the only way the database is updated is through the application there might not be a need to enforce foreign key constraints. Any thoughts? Bob Go lie down until the feeling goes away! ::grin:: If your customer's administrator has interactive SQL access to the database (which they legitimately have a right to do as administrators) they will also be able to inadvertantly screw up the integrity unless you enforce it with the database. The probability that this will happen approaches 1. NPL If anything, Nick is an optimist. Don't do it. |
#5
| |||
| |||
|
|
Bob wrote: Wanted to get a feel for what the feeling was out there about removing foreign key constraints on the database side for the n-tier application that enforces the integrity in the middle tier. Theoretically, if the only way the database is updated is through the application there might not be a need to enforce foreign key constraints. Any thoughts? |
|
Go lie down until the feeling goes away! ::grin:: If your customer's administrator has interactive SQL access to the database (which they legitimately have a right to do as administrators) they will also be able to inadvertantly screw up the integrity unless you enforce it with the database. The probability that this will happen approaches 1. |
#6
| |||
| |||
|
|
Hi there, Wanted to get a feel for what the feeling was out there about removing foreign key constraints on the database side for the n-tier application that enforces the integrity in the middle tier. Theoretically, if the only way the database is updated is through the application there might not be a need to enforce foreign key constraints. Any thoughts? Bob |
![]() |
| Thread Tools | |
| Display Modes | |
| |