Click here to Skip to main content
15,896,448 members
Home / Discussions / Database
   

Database

 
AnswerRe: How i Can format Date in Sql Server 7.0 Pin
Hesham Amin9-Jun-04 6:50
Hesham Amin9-Jun-04 6:50 
GeneralRe: How i Can format Date in Sql Server 7.0 Pin
-Dr_X-9-Jun-04 15:30
-Dr_X-9-Jun-04 15:30 
Generalgetting value from newly inserted row Pin
sharonz8-Jun-04 20:54
sharonz8-Jun-04 20:54 
GeneralRe: getting value from newly inserted row Pin
Edbert P9-Jun-04 20:34
Edbert P9-Jun-04 20:34 
GeneralRe: getting value from newly inserted row Pin
sharonz9-Jun-04 20:50
sharonz9-Jun-04 20:50 
GeneralProbelm in Displaying records in 2 data grids Pin
orpus8-Jun-04 20:27
orpus8-Jun-04 20:27 
GeneralInserting Rows into Typed DataSets Pin
Member 11376038-Jun-04 17:43
Member 11376038-Jun-04 17:43 
GeneralRe: Inserting Rows into Typed DataSets Pin
Edbert P9-Jun-04 20:16
Edbert P9-Jun-04 20:16 
I updated the parent table for my application before using the PK as FK for the child table, but you might want to try this:
There is a property called DataRow.SetParentRow that sets the parent row for the child table.
I always specify this property before I update the child table, e.g.
<code>parentRow.Key = KeyValue
parentRow.Field1 = Value1
parentRow.Field2 = Value2</code>

//I usually update parent row here before using the value but you might not need to update it before adding the child row.

<code>childRow.Key = parentRow.Key
childRow.Field1 = Value1
childRow.Field2 = Value2
childRow.SetParentRow(parentRow)</code>

//Update child row

This might help you link the two tables along with Key Fields and Foreign Key Fields setting in the dataset.
Remember that you need to update the parent table before the child table for insertion.

I hope it helps.

Edbert P.
Sydney, Australia.
GeneralVC++ ADO Recordset Close Vs NULL Pin
Nemikesoria8-Jun-04 4:47
Nemikesoria8-Jun-04 4:47 
Generalsql reporting services Pin
robmays8-Jun-04 4:03
robmays8-Jun-04 4:03 
GeneralADO &amp; GUID &amp; C++ Pin
Mobileware8-Jun-04 0:46
Mobileware8-Jun-04 0:46 
QuestionI want to do a ETL tool. ADO is feasible? Pin
utiao7-Jun-04 21:27
utiao7-Jun-04 21:27 
AnswerRe: I want to do a ETL tool. ADO is feasible? Pin
Anonymous11-Jun-04 9:47
Anonymous11-Jun-04 9:47 
GeneralOracle REF Cursor and Generic DAL Pin
Vasudevan Deepak Kumar7-Jun-04 17:55
Vasudevan Deepak Kumar7-Jun-04 17:55 
GeneralProblem using table aliases in ADO.net dataset Pin
frank217-Jun-04 11:06
frank217-Jun-04 11:06 
GeneralReturn ID from Insert Query Pin
RDoes7-Jun-04 3:56
RDoes7-Jun-04 3:56 
GeneralRe: Return ID from Insert Query Pin
GISnet7-Jun-04 5:43
GISnet7-Jun-04 5:43 
Generalcode for db access in C# Pin
Md Saleem Navalur7-Jun-04 2:32
Md Saleem Navalur7-Jun-04 2:32 
GeneralRe: code for db access in C# Pin
GISnet7-Jun-04 5:48
GISnet7-Jun-04 5:48 
Generalexport to access Pin
suzyb7-Jun-04 1:52
suzyb7-Jun-04 1:52 
GeneralRe: export to access Pin
GISnet7-Jun-04 5:54
GISnet7-Jun-04 5:54 
GeneralRe: export to access Pin
Mike Ellison7-Jun-04 9:59
Mike Ellison7-Jun-04 9:59 
Generaldb @ pocket pc Pin
ting6687-Jun-04 0:23
ting6687-Jun-04 0:23 
GeneralRe: db @ pocket pc Pin
Richard Jones8-Jun-04 6:18
Richard Jones8-Jun-04 6:18 
GeneralSQL Enterprise Manager Question Pin
matthias s.6-Jun-04 21:51
matthias s.6-Jun-04 21:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.