Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server CE / February 2008

Tip: Looking for answers? Try searching our database.

Consequences and Repercussions....Multiple connections question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
The Mad Ape - 02 Feb 2008 14:04 GMT
Hi - Using VS Studio 2005 - VB.Net and MS SQL Server 2005 Compact on
the desktop

I am in the process of writing some code that follows this pattern:

1) Cycle through all database files in all project directories - could
be 1000's of project files all containing 2 databases or more. Each
will need to be accessed using a unique connection string that is
programmatically generated.

2) Test schema to see if all tables and columns are present according
to meta data

3) If schema passes test, then check to see if there is at least one
record present.

4) If schema does not pass or passes but tables have no data then the
whole project directory (folders and sub folders are deleted)

All files will be open, closed, then disposed. I have already tested
this on a directory of 50 or so files using a RAM monitor and can not
see any system degradation.

It is important that I do this right. Even with Try - Catch - Do you
see any problems with the opening and closing of 1000's of connections
in one process? No new one will be opened until the current one has
been processed then closed and disposed.

Thanks

The Mad Ape
www.tatumba.com
Jin - 03 Feb 2008 18:23 GMT
> Hi - Using VS Studio 2005 - VB.Net and MS SQL Server 2005 Compact on
> the desktop
[quoted text clipped - 27 lines]
>
> The Mad Apewww.tatumba.com

If it works for 50, then there's no reason it won't work for 5,000,
especially on a desktop.  I guess you're concerned about perhaps
running into GC issues, but with the resources on desktop these days,
it shouldn't be a factor.  Trying something similar on a mobile device
with very little RAM may be problematic, but for desktops, it should
be ok.

- Jin
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.