views:

1774

answers:

3

hi there,

as google does not deliver what i want to know, i try to ask stackoverflow :) what is the number of max concurrent connections to a sql ce 3.5 database? thanks j.

+2  A: 

I believe the information you are looking for is the SQL Server Edition Comparison.

For standard Editions - Compare Features

For Compact Edition - Compare Features

Edit

Sorry, this Word Document is most likely what you need.

Edit again

The answer is 256 concurrent connections for Compact, unlimited for express. See table 1 in the linked word doc.

Mitchel Sellers
Am I missing something? I don't see anything in that documentation that lists specifically the number of connections you can use.
ctacke
Updated, it is in the word doc!
Mitchel Sellers
+1  A: 

I know that SQL CE 3.5 allows multiple concurrent connections from multiple processes (as opposed to earlier versions that allowed, but did not recommend, multiples from only one process). My guess is that it's resource limited, but I'm not certain. I actually have a call in to the SQLCE team directly to find out if there is a count limit on this (I'll post back when I get a reply, likely later today, though with PDC ongoing, it might be longer).

That said, I question why you would need to know this. How many connections are you trying to make? You should have at least 2 - it's recommended to always maintain 1 connection, even if it's a dummy that's never used, to keep the connection cached for performance reasons - but I've never done any implementation that had more than maybe 4 or 5 at any given time. If you have more than that, you might need to rethink your architecture, or the app is more likely a candidate for a full-blown server product.

Update

I finally heard back from the team and they confirmed from the source code that the number is 256. This is what they said:

"...since we are implementing it in C/C++, the counter starts from 0 and ends in 255. These are the number of parallel connections and not total connections. For every open, the counter goes up by 1 and for every close it goes down by 1. If you have not closed, but just unreferenced close happens on Dispose."

ctacke
+6  A: 

SQL Server Compact 3.5 supports multiple connections up to the 256 connection limit.(source)

saku