Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 17th, 2004, 03:07 PM
Authorized User
 
Join Date: Jul 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to p_nut33 Send a message via MSN to p_nut33
Default Removing Tables

Hi I need to implement a sign out. Through this sign out, I need to remove the tables or clear the rows of the tables so when the other user log's in, he gets his information on these tables. I am removing and clearing (Everything) the relations and using accept changes(). Yet when I try to remove the tables I get a constraint error telling me that I cant remove the table, to please remove the constraint firsts. Yet, I have done this already. This is really taking valuable time.

 
Old February 18th, 2004, 04:53 PM
Authorized User
 
Join Date: Jul 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to p_nut33 Send a message via MSN to p_nut33
Default

I figured it out. The relation object doesn't enforce the foreign key constraints. Turns out each table has a constraints collection. This must be cleared also in order to delete a table.

Quote:
quote:Originally posted by p_nut33
 Hi I need to implement a sign out. Through this sign out, I need to remove the tables or clear the rows of the tables so when the other user log's in, he gets his information on these tables. I am removing and clearing (Everything) the relations and using accept changes(). Yet when I try to remove the tables I get a constraint error telling me that I cant remove the table, to please remove the constraint firsts. Yet, I have done this already. This is really taking valuable time.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Namespace Pankaj C XSLT 2 September 22nd, 2007 03:23 AM
Removing Comments in one go Pankaj C XSLT 3 September 9th, 2007 07:05 AM
Removing Read Only anukagni Access 5 June 13th, 2006 01:57 PM
Removing an element izbor XSLT 3 May 8th, 2006 11:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.