Home All Groups Group Topic Archive Search About

Database files (VS 2005) - usage?

Author
2 Dec 2005 12:07 PM
Andrew Kidd
I'm just getting to grips with the new SQL Database file concept in VS 2005
and have a couple of questions in the hope that someone can clarify my
understanding.

I understand that I can now add both the <dbname>.mdf and <dbname>.ldf files
traditionally associated with a SQL Server into my application folder, and
that these are attached to SQL Express at runtime. I see this an ideal
replacement for an Access database on single user desktop applications,
leveraging the power of a SQL Server whilst offering the advantages of a
file-based db like Access (x-copy backups for example).

However, for a small multi-user system (say 5 users), am I right in thinking
that the database is now shared and therefore the database files need to be
available to all users on a network share? It seems obvious, but then does
each user attach these shared files to their local SQL Express, or is there
one application / SQL Express nominated as the 'server' with the remaining
applications running in a pure 'client' mode? And if the latter, how is the
connection string managed?

Am I barking up the wrong tree with this?

Cheers

Author
2 Dec 2005 12:54 PM
David Portas
Andrew Kidd wrote:
> However, for a small multi-user system (say 5 users), am I right in thinking
> that the database is now shared and therefore the database files need to be
> available to all users on a network share?

No. The database files just need to be visible to the server. In fact
it's probably a good idea to make sure that user's can't see the
network share where the database resides.

> It seems obvious, but then does
> each user attach these shared files to their local SQL Express, or is there
> one application / SQL Express nominated as the 'server' with the remaining
> applications running in a pure 'client' mode? And if the latter, how is the
> connection string managed?
>

One server. Multiple clients. The clients don't need Express they just
need SQL Server connectivity: Native Client or MDAC.

--
David Portas
SQL Server MVP
--
Author
2 Dec 2005 1:36 PM
Andrew Kidd
Thanks David.


Show quote
"David Portas" <REMOVE_BEFORE_REPLYING_dpor***@acm.org> wrote in message
news:1133528080.622239.309940@o13g2000cwo.googlegroups.com...
> Andrew Kidd wrote:
>> However, for a small multi-user system (say 5 users), am I right in
>> thinking
>> that the database is now shared and therefore the database files need to
>> be
>> available to all users on a network share?
>
> No. The database files just need to be visible to the server. In fact
> it's probably a good idea to make sure that user's can't see the
> network share where the database resides.
>
>> It seems obvious, but then does
>> each user attach these shared files to their local SQL Express, or is
>> there
>> one application / SQL Express nominated as the 'server' with the
>> remaining
>> applications running in a pure 'client' mode? And if the latter, how is
>> the
>> connection string managed?
>>
>
> One server. Multiple clients. The clients don't need Express they just
> need SQL Server connectivity: Native Client or MDAC.
>
> --
> David Portas
> SQL Server MVP
> --
>
Author
2 Dec 2005 2:39 PM
JT
When would a department, with say only 5 users and < 2GB of data, want to
move from using SQL Server Express to Workgroup Edition?

Show quote
"David Portas" <REMOVE_BEFORE_REPLYING_dpor***@acm.org> wrote in message
news:1133528080.622239.309940@o13g2000cwo.googlegroups.com...
> Andrew Kidd wrote:
>> However, for a small multi-user system (say 5 users), am I right in
>> thinking
>> that the database is now shared and therefore the database files need to
>> be
>> available to all users on a network share?
>
> No. The database files just need to be visible to the server. In fact
> it's probably a good idea to make sure that user's can't see the
> network share where the database resides.
>
>> It seems obvious, but then does
>> each user attach these shared files to their local SQL Express, or is
>> there
>> one application / SQL Express nominated as the 'server' with the
>> remaining
>> applications running in a pure 'client' mode? And if the latter, how is
>> the
>> connection string managed?
>>
>
> One server. Multiple clients. The clients don't need Express they just
> need SQL Server connectivity: Native Client or MDAC.
>
> --
> David Portas
> SQL Server MVP
> --
>
Author
2 Dec 2005 2:57 PM
REMOVE_BEFORE_REPLYING_dportas
JT wrote:
> When would a department, with say only 5 users and < 2GB of data, want to
> move from using SQL Server Express to Workgroup Edition?
>

When they need the scalability or functionality of one of the other
editions:
http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx

--
David Portas
SQL Server MVP
--

AddThis Social Bookmark Button