I have a mobile application that connects directly to an instance of SQL Server 2008.
Normally, if this was was a desktop application I would wrap every database call in a using statement:
using (SqlConnection sqlConnection = new SqlConnection(ConnectionString))
{ }
And if it was a mobile application connecting to a local compact database, I would leave the connection open for the life of the application (since it has to be rebuilt every time).
But, now I'm faced with a mobile application that's connecting to a real server...so would it be best to follow the desktop route, or the mobile route? At first I was going to do the desktop route but then I remembered that pooling isn't even supported on the mobile version so maybe it would be best to leave it open?