L
Loogie
I am using VB.Net SP1 Compact Framework 2.0 with MS SQL Compact Server
2005.
I notice that when my app opens its first database there is a slight lag
(3 or 4 seconds at the most).
However any subsequent databases I open there is no lag whatsoever.
Any thoughts on why this happens? Here is my standard open and close of
a db:
' Create and open connection.
Dim ssceconn As New SqlCeConnection("Data Source = \Program
Files\data\" & Me.Text & ".sdf")
ssceconn.Open()
do stuff here
' Close the connection
ssceconn.Close()
ssceconn.Dispose()
ssceconn = Nothing
All of the db's are small < 100 records. None will ever be much larger
than 500 records.
I have been thinking that I should just have a db open and then close at
the launch of my app but that seems a rather odd way to do things.
Thanks in advance for any feedback.
:L
2005.
I notice that when my app opens its first database there is a slight lag
(3 or 4 seconds at the most).
However any subsequent databases I open there is no lag whatsoever.
Any thoughts on why this happens? Here is my standard open and close of
a db:
' Create and open connection.
Dim ssceconn As New SqlCeConnection("Data Source = \Program
Files\data\" & Me.Text & ".sdf")
ssceconn.Open()
do stuff here
' Close the connection
ssceconn.Close()
ssceconn.Dispose()
ssceconn = Nothing
All of the db's are small < 100 records. None will ever be much larger
than 500 records.
I have been thinking that I should just have a db open and then close at
the launch of my app but that seems a rather odd way to do things.
Thanks in advance for any feedback.
:L