473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Schema Edit Relations question

I don't mean to crosspost but I really don't know where questions on yellow
view Schema window in VS belong. If someone has a better suggestion for a
newsgroup please let me know.

All I do relates to Datasets and not XML directrly. Lets say I am in the
the schema for a dataset and am in the yellow Schema
window and and trying to relate two tables. When my Edit Relations Dialog
box comes up by default, VS puts a value in my field called Key. The value
is Constraint1.

My question is whether this is some sort of default that I should just
generally accept or should I be doing something explicitely. That is, I
know that I can click the New button to the right of the key field and there
identify the primary table of the relationship in the element field. I know
I can identify the field that makes up the primary key in the Fields
section. My question is, should I do this or does it make (generally
speaking) a difference? In the past I have just accepted the default that
VS puts in automatically, i.e., Contraint1.
Nov 11 '05 #1
1 1294
Hi Woody,

The Key field displays the keys defined in the table selected in the Parent
Element drop-down list. A single table can have multiple keys. If your
parent table contains multiple keys, please check which key is used for
this relation. If you have only one key in the parent table and you want to
use this key for your relation, just leave this field as it is.

For more informaiton, please check

http://msdn.microsoft.com/library/de...us/vbcon/html/
vbtskcreatingdatasetrelationswithxmldesigner.asp

and

http://msdn.microsoft.com/library/de...us/vsintro7/ht
ml/vxurfKeyEditorDialogBox.asp

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 11 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Zbyszek Cybulski | last post by:
Hello, I was trying to find anything on the topic in the archives but failed. This may seem a well-known issue but I am a newbie on XML stuff. I have created an XML Schema file (XSD) which...
1
by: Ash Hart | last post by:
Hi Friends, We have a peculiar situation here, where in we have to translate a set of xml documents using xslt and we only have schemas available. How do we use XSLT here? Please advice. Ash
0
by: Andrea N. | last post by:
I'm new to .NET XML classes, so here my dilemma I really like the XMLDataDocument concept of synchronizing automatically XMLDocument and DataSet with a common schema. Can I automatically...
0
by: Greg | last post by:
I'm trying to read an xsd into a DataSet to generate the SQL db that I will import the data into. I get a couple errors (one of which make sense) but am not sure how to work around them I'm using...
0
by: Sean | last post by:
Hello, I have the following scenario. I hope someone may help me on this: I have an ASP.NET web-application that create .xml files according to a defined schema and they are sent out to our...
1
by: George Homorozeanu | last post by:
Hi, I have a question related to the XML-Schema definition. Is it posible to define relations between elements? The following is my XML Schema: <xs:element name="root"> <xs:complexType> ...
7
by: Sharon | last post by:
I have successfully loaded a DataSet object with a XML schema (XSD). Now I wish to populate the tables that was created in the DataSet. I have an XML file/string that contain all the needed data...
3
by: Eric | last post by:
Help! I created a XML schema with a Visual Studio tools. I'm filling a dataset with a DataAdapter. Before I use the "WriteXml" method to write the data to a xml file, I want to map the XSD file I...
9
by: mstilli | last post by:
Hi, I am trying to use schema for server side validation using xerces to catch the validation errors. validating this XML: <Content4> <textarea13></textarea13>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.