Click here to Skip to main content
15,922,015 members
Home / Discussions / Database
   

Database

 
GeneralRe: Saving Recordset to a stream Pin
mysorian14-Jan-05 18:08
professionalmysorian14-Jan-05 18:08 
GeneralRe: Saving Recordset to a stream Pin
-Dr_X-15-Jan-05 12:50
-Dr_X-15-Jan-05 12:50 
GeneralRe: Saving Recordset to a stream Pin
mysorian15-Jan-05 17:37
professionalmysorian15-Jan-05 17:37 
GeneralSQL-select and insert Pin
BrockVnm14-Jan-05 9:38
BrockVnm14-Jan-05 9:38 
GeneralRe: SQL-select and insert Pin
-Dr_X-14-Jan-05 14:17
-Dr_X-14-Jan-05 14:17 
GeneralRe: SQL-select and insert Pin
Anonymous14-Jan-05 15:07
Anonymous14-Jan-05 15:07 
QuestionSqlserver -gui ? Pin
kaiowa5114-Jan-05 8:39
kaiowa5114-Jan-05 8:39 
QuestionDataTable with nested Child Tables?? Pin
work_to_live13-Jan-05 8:09
work_to_live13-Jan-05 8:09 
Let's assume I have three tables, where Table1 is the topmost table, Table2 is a child relation to Table1 and Table3 is a child relation to Table2. I'd like to get all rows in Table1 where a column in Table3 is a particular value. This is fairly straight forward with an SQL query, but I can't figure out how to do it with DataTables/DataSets. Any suggestions?

The only solution I've been able to come up with involves getting every row in Table1, and then GetChildRows twice to get to Table3, and testing the column of interest in Table3...

foreach (DataRow row in Table1.Rows)
{
if (row.GetChildRows("Table1-Table2")[0].GetChildRows("Table2-Table3")[0]["ColumnOfInterest"] == something)
{
This is one of the desired rows, do something with it
}
}

Seems very cumbersomb. You'd think there'd be a way to execute a single "query" that would return the desired set of rows...

AnswerRe: DataTable with nested Child Tables?? Pin
Rob Graham13-Jan-05 16:09
Rob Graham13-Jan-05 16:09 
GeneralRe: DataTable with nested Child Tables?? Pin
work_to_live14-Jan-05 4:56
work_to_live14-Jan-05 4:56 
GeneralDatabase schema Pin
webhay13-Jan-05 1:15
webhay13-Jan-05 1:15 
GeneralRe: Database schema Pin
Colin Angus Mackay13-Jan-05 11:46
Colin Angus Mackay13-Jan-05 11:46 
Generali couldn't see Databases in SQL server Pin
BSRK13-Jan-05 0:17
BSRK13-Jan-05 0:17 
GeneralRe: i couldn't see Databases in SQL server Pin
Colin Angus Mackay13-Jan-05 1:02
Colin Angus Mackay13-Jan-05 1:02 
GeneralRe: i couldn't see Databases in SQL server Pin
BSRK13-Jan-05 1:28
BSRK13-Jan-05 1:28 
GeneralRe: i couldn't see Databases in SQL server Pin
Colin Angus Mackay13-Jan-05 2:07
Colin Angus Mackay13-Jan-05 2:07 
Generalwe cannot use MSDE & Enterprise Manager Pin
BSRK13-Jan-05 2:39
BSRK13-Jan-05 2:39 
GeneralRe: we cannot use MSDE & Enterprise Manager Pin
Colin Angus Mackay13-Jan-05 2:48
Colin Angus Mackay13-Jan-05 2:48 
GeneralRe: we cannot use MSDE & Enterprise Manager Pin
Michael P Butler13-Jan-05 8:42
Michael P Butler13-Jan-05 8:42 
GeneralRe: i couldn't see Databases in SQL server Pin
Mike Dimmick14-Jan-05 0:42
Mike Dimmick14-Jan-05 0:42 
QuestionHow To connect to MySql database from JAva Pin
Aakash Jain12-Jan-05 18:28
Aakash Jain12-Jan-05 18:28 
AnswerRe: How To connect to MySql database from JAva Pin
David Salter13-Jan-05 22:26
David Salter13-Jan-05 22:26 
Generalselect Pin
webhay12-Jan-05 10:11
webhay12-Jan-05 10:11 
GeneralRe: select Pin
Colin Angus Mackay12-Jan-05 22:58
Colin Angus Mackay12-Jan-05 22:58 
GeneralRe: select Pin
webhay12-Jan-05 23:40
webhay12-Jan-05 23:40 

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.