Home All Groups Group Topic Archive Search About

SQL CE - Multi-user



Author
21 Apr 2007 11:18 PM
arothberg
If a SQL CE database is deployed on a file server, is there a way to block
the second user from accessing it?  (preferrably without the use of a
separate "KEEP OUT" file that would be created after the first user accesses
the database)

I know this isn't a great deployment scenario, but I am dealing with an
existing application and am exploring some options.

Thanks.

Author
22 Apr 2007 8:44 AM
Bob Simms
"arothberg" <arothberg@newsgroups.nospam> wrote in message
news:326BEBD5-5ED5-4487-A3A2-8D18E2B03F70@microsoft.com...
> If a SQL CE database is deployed on a file server, is there a way to block
> the second user from accessing it?  (preferrably without the use of a
> separate "KEEP OUT" file that would be created after the first user
> accesses
> the database)
>
> I know this isn't a great deployment scenario, but I am dealing with an
> existing application and am exploring some options.
>
Set the database properties to single-user.
Are all your drivers up to date? click for free checkup

Author
22 Apr 2007 10:34 AM
arothberg
I don't understand this reply.  Please clarify.  SQL Server 2005 Compact
Edition is only supported for single-user.  To my knowledge, there is no
option to turn if "off" or "on"

Show quoteHide quote
"Bob Simms" wrote:

> "arothberg" <arothberg@newsgroups.nospam> wrote in message
> news:326BEBD5-5ED5-4487-A3A2-8D18E2B03F70@microsoft.com...
> > If a SQL CE database is deployed on a file server, is there a way to block
> > the second user from accessing it?  (preferrably without the use of a
> > separate "KEEP OUT" file that would be created after the first user
> > accesses
> > the database)
> >
> > I know this isn't a great deployment scenario, but I am dealing with an
> > existing application and am exploring some options.
> >
> Set the database properties to single-user.
>
>
>
Author
22 Apr 2007 11:44 AM
Hilary Cotter
In your connection string set file mode to exclusive.

Show quoteHide quote
"arothberg" <arothberg@newsgroups.nospam> wrote in message
news:326BEBD5-5ED5-4487-A3A2-8D18E2B03F70@microsoft.com...
> If a SQL CE database is deployed on a file server, is there a way to block
> the second user from accessing it?  (preferrably without the use of a
> separate "KEEP OUT" file that would be created after the first user
> accesses
> the database)
>
> I know this isn't a great deployment scenario, but I am dealing with an
> existing application and am exploring some options.
>
> Thanks.

Bookmark and Share