Click here to Skip to main content
15,897,137 members
Home / Discussions / Database
   

Database

 
QuestionHow i Can format Date in Sql Server 7.0 Pin
syed saba8-Jun-04 21:47
syed saba8-Jun-04 21:47 
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 
Hi All,

I have an issue with inserting new rows into a typed dataset. The dataset has two datatables (e.g. Order, OrderDetails). Both tables have a primary key (not nullable) and there is a foreign key constraint (and relation) between the OrderDetails and Order datatable.

The problem comes when trying to insert a new row into the Order (parent) table. Because I haven't been to the DB to get the next sequence number (i'm using Oracle), there is no value on the primary key. Obviously I can't add this row to the datatable unless i turn constraints off which I don't want to do. I also don't want to have to go to the database everytime I add a new row to the datatable as it could result in a stack of roundtrips to the database (each orderdetail insert would require another round trip)

Surely there is another way that I'm not aware of? What would be good is that for any new rows that are created, I put a GUID or something in the PK which would allow me to insert and relate child rows etc.. but I don't know if this is even possible or if it's best practice.

Thanks in advance for any help!
GeneralRe: Inserting Rows into Typed DataSets Pin
Edbert P9-Jun-04 20:16
Edbert P9-Jun-04 20:16 
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 & GUID & 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 

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.