Advertisement

07.09.2008 at 10:23AM PDT, ID: 23551068
[x]
Attachment Details

Constrains using fillschema or code all constraints "manual"

Asked by mark_norge in Microsoft Visual Basic.Net, .NET

Tags: Visual basic .net

Hi Experts,
I use a SQL datasource to fill a datatable that I use for a VB application. When setting up the contraints in and between datatables I can use fillschema or setup all contraints (primairy keys, relations, autoincrement, etc) manual.

I have a few questions regarding this:
- Is there a preferred method? (use SQL to set all contraints and use fillschema to get the contraints).
- Should some contraints always be setup in code,  since datatable and SQL are "disconnected".
- Does one exclude the other? (use FillSchema to get contraints on the tables and setup the relations in code for instance)?
- Does someone have a good reference / link?

Regards, MBStart Free Trial
 
Loading Advertisement...
 
[+][-]07.18.2008 at 01:54PM PDT, ID: 22039717

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual Basic.Net, .NET
Tags: Visual basic .net
Sign Up Now!
Solution Provided By: Priest04
Participating Experts: 1
Solution Grade: B
 
 
[+][-]07.18.2008 at 02:19PM PDT, ID: 22039898

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 02:28PM PDT, ID: 22039957

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 03:00PM PDT, ID: 22040166

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628