Click here to Skip to main content
15,917,061 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# & things I can put in XML? Pin
TrooperIronMan15-Jan-07 14:07
TrooperIronMan15-Jan-07 14:07 
AnswerRe: C# & things I can put in XML? Pin
bluewavestrider15-Jan-07 13:01
bluewavestrider15-Jan-07 13:01 
GeneralRe: C# & things I can put in XML? Pin
TrooperIronMan15-Jan-07 13:08
TrooperIronMan15-Jan-07 13:08 
AnswerRe: C# & things I can put in XML? Pin
Guffa15-Jan-07 13:06
Guffa15-Jan-07 13:06 
GeneralRe: C# & things I can put in XML? Pin
TrooperIronMan15-Jan-07 13:10
TrooperIronMan15-Jan-07 13:10 
GeneralRe: C# & things I can put in XML? Pin
Christian Graus15-Jan-07 13:21
protectorChristian Graus15-Jan-07 13:21 
GeneralRe: C# & things I can put in XML? Pin
TrooperIronMan16-Jan-07 8:37
TrooperIronMan16-Jan-07 8:37 
QuestionQuery Access Database too slow! Why? Pin
deanpugh15-Jan-07 6:04
deanpugh15-Jan-07 6:04 
Sorry if title bit abrupt. I have an Access Database, in this database are two tables, one is a table of teams and the other a table of players. My table of teams contains 11 index numbers (1 for each player).

My program currently loads all the teams from the database, while loading each teams, it search's the other table for the players details using the index number.

I know this will query the database 11 times for each team. This seems to really slow down the program to an unmanagable speed.

What is the best and fastest way to talk to an access database and am i going about it the right way? A sample of how I am currently querying the database is below. Thanks



string strQuery = "SELECT * FROM t_DT_Teams;<br />
OleDbCommand dbsCommand = new OleDbCommand(strQuery, dbsConnection);		<br />
OleDbDataAdapter dbsAdapter = new OleDbDataAdapter();<br />
dbsAdapter.SelectCommand = dbsCommand;<br />
<br />
DataSet dbsDataSet = new DataSet();<br />
dbsAdapter.Fill(dbsDataSet, "t_DT_Teams");<br />
DataTable dbsDataTable = dbsDataSet.Tables["t_DT_Teams"];<br />
<br />
// i then loop through each team and do roughly the same to find a player<br />
<br />
dbsConnection.Close

AnswerRe: Query Access Database too slow! Why? Pin
Aaron VanWieren15-Jan-07 12:39
Aaron VanWieren15-Jan-07 12:39 
GeneralRe: Query Access Database too slow! Why? Pin
Colin Angus Mackay15-Jan-07 12:57
Colin Angus Mackay15-Jan-07 12:57 
AnswerRe: Query Access Database too slow! Why? Pin
Aaron VanWieren15-Jan-07 13:24
Aaron VanWieren15-Jan-07 13:24 
GeneralRe: Query Access Database too slow! Why? Pin
Colin Angus Mackay15-Jan-07 13:46
Colin Angus Mackay15-Jan-07 13:46 
GeneralRe: Query Access Database too slow! Why? Pin
Aaron VanWieren16-Jan-07 2:09
Aaron VanWieren16-Jan-07 2:09 
GeneralRe: Query Access Database too slow! Why? Pin
deanpugh15-Jan-07 21:36
deanpugh15-Jan-07 21:36 
GeneralRe: Query Access Database too slow! Why? Pin
Aaron VanWieren16-Jan-07 2:13
Aaron VanWieren16-Jan-07 2:13 
GeneralRe: Query Access Database too slow! Why? Pin
deanpugh16-Jan-07 2:26
deanpugh16-Jan-07 2:26 
AnswerRe: Query Access Database too slow! Why? Pin
Aaron VanWieren16-Jan-07 4:29
Aaron VanWieren16-Jan-07 4:29 
GeneralRe: Query Access Database too slow! Why? Pin
deanpugh16-Jan-07 4:39
deanpugh16-Jan-07 4:39 
GeneralRe: Query Access Database too slow! Why? Pin
Aaron VanWieren16-Jan-07 4:47
Aaron VanWieren16-Jan-07 4:47 
GeneralRe: Query Access Database too slow! Why? Pin
deanpugh16-Jan-07 4:51
deanpugh16-Jan-07 4:51 
GeneralRe: Query Access Database too slow! Why? Pin
deanpugh23-Jan-07 23:57
deanpugh23-Jan-07 23:57 
QuestionHow to create whiteboard for web application in .Net? Pin
pankaj_infogain15-Jan-07 5:45
pankaj_infogain15-Jan-07 5:45 
AnswerRe: How to create whiteboard for web application in .Net? Pin
Not Active15-Jan-07 6:11
mentorNot Active15-Jan-07 6:11 
Questionlabel problem Pin
groundzero11115-Jan-07 5:14
groundzero11115-Jan-07 5:14 
AnswerRe: label problem Pin
il_masacratore15-Jan-07 21:37
il_masacratore15-Jan-07 21:37 

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.