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

C#

 
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 
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 
Actually,
when you hit the final end bracket of the using statement,a dispose call is made closing and disposing the connection. Using the using statement does the exact same thing as opening and then closing a connection manually, it just is way easier to read. You should also do the same thing with the command object as it is also IDisposable type.

using (SqlConnection connection = new SqlConnection(connectionString))
{
    Do some thing with the database here!
}//This provides the dispose method for you!

Is the same as
connection.open();
connection.close();


Pardon the berevety.\

Aaron
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 
GeneralRe: label problem Pin
groundzero11116-Jan-07 5:19
groundzero11116-Jan-07 5:19 
GeneralRe: label problem Pin
il_masacratore16-Jan-07 5:28
il_masacratore16-Jan-07 5:28 
GeneralRe: label problem Pin
groundzero11117-Jan-07 4:04
groundzero11117-Jan-07 4:04 

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.