Click here to Skip to main content
16,015,947 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting a base control from event arg. Pin
Diego F.4-Apr-07 1:34
Diego F.4-Apr-07 1:34 
QuestionMy Application takes 5 hours to run Pin
rkherath3-Apr-07 22:40
rkherath3-Apr-07 22:40 
AnswerRe: My Application takes 5 hours to run Pin
Colin Angus Mackay3-Apr-07 22:46
Colin Angus Mackay3-Apr-07 22:46 
GeneralRe: My Application takes 5 hours to run Pin
rkherath3-Apr-07 22:55
rkherath3-Apr-07 22:55 
GeneralRe: My Application takes 5 hours to run Pin
V.3-Apr-07 23:37
professionalV.3-Apr-07 23:37 
GeneralRe: My Application takes 5 hours to run Pin
rkherath3-Apr-07 23:58
rkherath3-Apr-07 23:58 
GeneralRe: My Application takes 5 hours to run Pin
Christian Graus4-Apr-07 0:04
protectorChristian Graus4-Apr-07 0:04 
GeneralRe: My Application takes 5 hours to run Pin
V.4-Apr-07 0:09
professionalV.4-Apr-07 0:09 
well instead of concatening string like this:
string test = "Test " + var + "\n'testmore'" + anothervar;

do this:
StringBuilder test = new StringBuilder("Test ");
test = test.Append(var);
test = test.Append("\n'testmore'");
test = test.Append(anothervar);


if you pass more than one query into the ExecuteNonQuery function (for example 100 queries) you save 99 calls to the ExecuteNonQuery function (which itself goes through enough other functions)
I'm not sure how this is done with SQL-Server but for Ms-Acces eg, the query will pass through the ExecuteNonQuery through the OleDb layer, through the mdac layer to the database.

Hope this helps.

V.

Stop smoking so you can: Enjoy longer the money you save.
Moviereview Archive

AnswerRe: My Application takes 5 hours to run Pin
joon vh.3-Apr-07 22:48
joon vh.3-Apr-07 22:48 
GeneralRe: My Application takes 5 hours to run Pin
rkherath3-Apr-07 22:59
rkherath3-Apr-07 22:59 
QuestionSQL Server 2005, Usage % all databases using performance counters!! Pin
Adeel Chaudhry3-Apr-07 21:26
Adeel Chaudhry3-Apr-07 21:26 
Generaladd to above... Pin
Adeel Chaudhry3-Apr-07 21:27
Adeel Chaudhry3-Apr-07 21:27 
QuestionQuery [modified] Pin
Nekshan3-Apr-07 21:09
Nekshan3-Apr-07 21:09 
AnswerRe: Query Pin
Christian Graus3-Apr-07 21:53
protectorChristian Graus3-Apr-07 21:53 
GeneralRe: Query Pin
joon vh.3-Apr-07 22:33
joon vh.3-Apr-07 22:33 
Questiongrid control Pin
Enter the Dragon3-Apr-07 20:34
Enter the Dragon3-Apr-07 20:34 
AnswerRe: grid control Pin
Christian Graus3-Apr-07 20:46
protectorChristian Graus3-Apr-07 20:46 
GeneralRe: grid control Pin
joon vh.3-Apr-07 22:38
joon vh.3-Apr-07 22:38 
AnswerRe: grid control Pin
sudhakar_vaddepalli3-Apr-07 23:05
sudhakar_vaddepalli3-Apr-07 23:05 
QuestionIs it possible to use visual effect to show data from different sources? Pin
Khoramdin3-Apr-07 20:28
Khoramdin3-Apr-07 20:28 
AnswerRe: Is it possible to use visual effect to show data from different sources? Pin
Christian Graus3-Apr-07 20:32
protectorChristian Graus3-Apr-07 20:32 
GeneralRe: Is it possible to use visual effect to show data from different sources? Pin
Khoramdin3-Apr-07 20:47
Khoramdin3-Apr-07 20:47 
GeneralRe: Is it possible to use visual effect to show data from different sources? Pin
Christian Graus3-Apr-07 21:52
protectorChristian Graus3-Apr-07 21:52 
GeneralRe: Is it possible to use visual effect to show data from different sources? Pin
joon vh.3-Apr-07 22:46
joon vh.3-Apr-07 22:46 
QuestionHandle key in all of application Pin
MHASSANF3-Apr-07 20:22
MHASSANF3-Apr-07 20:22 

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.