C# Programming
08-11-2009, 11:50 PM
hi
what is the best way for open connection to database ?
1.open in form1 - and close and open again in form2 ?
2.open in form1 as static - and use it for all form's (stay open all the time) ?
3.after I clossing the connection is it good to do - Connection.dispose() ?
I work on C#, and connect to sqlCE, Windows mobile 2005
thank's in addvance
what is the best way for open connection to database ?
1.open in form1 - and close and open again in form2 ?
2.open in form1 as static - and use it for all form's (stay open all the time) ?
3.after I clossing the connection is it good to do - Connection.dispose() ?
I work on C#, and connect to sqlCE, Windows mobile 2005
thank's in addvance