G
Guest
I am using sql server, and in my database there two tables. One of the tables
is the primary (tasks) and the other is secondary (Detail). The primary keys
in both tables is "services-order-number". The 'Detail table' also has
aother key "taskid". They look fine in the sql database, but when I generate
a dataset using these tables the keys in the detail table do not show up.
Please help!!
task-details
3 [service-order-number] int 4 0
2 taskid int 4 0
0 [task-desc] char 25 0
0 [complete-date] smalldatetime 4 0
0 [task-cost] money 8 0
0 [time-stamp] datetime 8 0
Task
3 [service-order-number] int 4 0
0 [task-date] smalldatetime 4 0
0 [animal-id] int 4 0
0 [owner-id] int 4 0
0 [animal-name] char 15 0
0 [owner-fname] char 15 0
0 [owner-lname] char 15 0
0 [service-status] char 10 0
0 animalsize char 7 0
0 filler char 10 1
0 [time-stamp] datetime 8 0
<xs:element name="task" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType>
<xs:sequence>
<xs:element name="service-order-number" msdata:ReadOnly="true"
msdata:AutoIncrement="true" type="xs:int"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" />
<xs:element name="task-date" type="xs:dateTime" />
<xs:element name="animal-id" type="xs:int" />
<xs:element name="owner-id" type="xs:int" />
<xs:element name="animal-name" type="xs:string" />
<xs:element name="owner-fname" type="xs:string" />
<xs:element name="owner-lname" type="xs:string" />
<xs:element name="service-status" type="xs:string" />
<xs:element name="animalsize" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element><xs:element name="task-details"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType>
<xs:sequence>
<xs:element name="service-order-number" type="xs:int" />
<xs:element name="taskid" msdata:ReadOnly="true"
msdata:AutoIncrement="true" type="xs:int"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" />
<xs:element name="task-desc" type="xs:string" />
<xs:element name="complete-date" type="xs:dateTime" />
<xs:element name="task-cost" type="xs:decimal" />
</xs:sequence>
</xs:complexType>
</xs:element>
is the primary (tasks) and the other is secondary (Detail). The primary keys
in both tables is "services-order-number". The 'Detail table' also has
aother key "taskid". They look fine in the sql database, but when I generate
a dataset using these tables the keys in the detail table do not show up.
Please help!!
task-details
3 [service-order-number] int 4 0
2 taskid int 4 0
0 [task-desc] char 25 0
0 [complete-date] smalldatetime 4 0
0 [task-cost] money 8 0
0 [time-stamp] datetime 8 0
Task
3 [service-order-number] int 4 0
0 [task-date] smalldatetime 4 0
0 [animal-id] int 4 0
0 [owner-id] int 4 0
0 [animal-name] char 15 0
0 [owner-fname] char 15 0
0 [owner-lname] char 15 0
0 [service-status] char 10 0
0 animalsize char 7 0
0 filler char 10 1
0 [time-stamp] datetime 8 0
<xs:element name="task" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType>
<xs:sequence>
<xs:element name="service-order-number" msdata:ReadOnly="true"
msdata:AutoIncrement="true" type="xs:int"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" />
<xs:element name="task-date" type="xs:dateTime" />
<xs:element name="animal-id" type="xs:int" />
<xs:element name="owner-id" type="xs:int" />
<xs:element name="animal-name" type="xs:string" />
<xs:element name="owner-fname" type="xs:string" />
<xs:element name="owner-lname" type="xs:string" />
<xs:element name="service-status" type="xs:string" />
<xs:element name="animalsize" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element><xs:element name="task-details"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType>
<xs:sequence>
<xs:element name="service-order-number" type="xs:int" />
<xs:element name="taskid" msdata:ReadOnly="true"
msdata:AutoIncrement="true" type="xs:int"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" />
<xs:element name="task-desc" type="xs:string" />
<xs:element name="complete-date" type="xs:dateTime" />
<xs:element name="task-cost" type="xs:decimal" />
</xs:sequence>
</xs:complexType>
</xs:element>