I would use one static instance of it and just keep it open all the time.
--
Regards,
Christian Resma Helle
http://christian-helle.blogspot.com
"Adam" <(E-Mail Removed)> wrote in message
news:fg45pu$6fg$(E-Mail Removed)...
> hi
> I would like to know whats better
> To declare a SQLCeConnection variable as a Static member of
> a Class containing functions to MakeConnection and
> CloseConnection, or should I just declare it as a Public
> member of the above mentioned class containing Connection
> code.
>
> And, if better is use a static SQLCeConnection should i use open a
> connection once or open before a execute an query and close after it?
>
>
> Thanks