FuzMic
DataBase Tinker
- Local time
- Today, 15:17
- Joined
- Sep 13, 2006
- Messages
- 719
Still on the learning curve .mdb link to SQL
Situation
1. A Query is created with fields from 2 primary keyed tables in BE .mdb. These 2 tables have 1:many DRI. Deletion of a record in this query is allowed as it only deletes a record on the many side.
2. These 2 tables were earlier upsized to an SQLEXPRESS .mdf which are similarly keyed with 1:many DRI.
3. Both DRI has no cascading updates just plain enforce RI.
4. A View modeled against the .mdb Query is created from these 2 tables in the .mdf
5. When i try to delete a record from the View, SQLX rejects stating that 'modification affects multiple base tables'. Essentially i think the deletion is also deleting the key field in the 1 side of the link which is not allowed as it will cause orphans.
Question
1. Why is the deletion possible within .mdb & not in VIEW of .mdf?
What did i missed?
2. Some mention that 'Views are not for deletes only selects' use 'either use query analyzer (if not permanent) or create a stored proc'. I don't understand this.
3. What is the best approach?
Truly need the gurus to lead the way.
Thanks in Advance.
Situation
1. A Query is created with fields from 2 primary keyed tables in BE .mdb. These 2 tables have 1:many DRI. Deletion of a record in this query is allowed as it only deletes a record on the many side.
2. These 2 tables were earlier upsized to an SQLEXPRESS .mdf which are similarly keyed with 1:many DRI.
3. Both DRI has no cascading updates just plain enforce RI.
4. A View modeled against the .mdb Query is created from these 2 tables in the .mdf
5. When i try to delete a record from the View, SQLX rejects stating that 'modification affects multiple base tables'. Essentially i think the deletion is also deleting the key field in the 1 side of the link which is not allowed as it will cause orphans.
Question
1. Why is the deletion possible within .mdb & not in VIEW of .mdf?
What did i missed?
2. Some mention that 'Views are not for deletes only selects' use 'either use query analyzer (if not permanent) or create a stored proc'. I don't understand this.
3. What is the best approach?
Truly need the gurus to lead the way.
Thanks in Advance.