Re: Attaching MDF with AttachDBFilename?



The database file (mdf) only needs to be attached one time -at the server.
Clients only need to connect to the server and have access to the database.

If SQL Express was installed on each client, and those clients used the
'AttachDBFilename', they would be attempting to attach a database file to
their local copy of SQL Express. Database files cannot be attached from a
unc network path. They would each need a local copy of the database for that
to work. However, it sounds like you want a centrally located database, not
individual copies.

--
Arnie Rowland
"To be successful, your heart must accompany your knowledge."



"Jim" <Jim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5732D62A-EE09-4ED6-8548-FFB7AC58EC2E@xxxxxxxxxxxxxxxx
I am attempting to attach an .mdf to SQL Express using "AttachDBFilename"
in
the connection string, and I have a few questions on the issue.

I am planning on setting this up on a network with both the .mdf and the
instance of SQL Server residing on a server. All the clients will be
running
an app that will have access to the SQL Server instance and the fileshare,
and they will attempt to use a connection string with the
"AttachDBFilename".
I have successfully connected to the instance of SQL Server and have
access
to the .mdf from a client, but I have not been able to get the connection
to
attach the .mdf file. If I run the app on the server it works, but on a
client I get an error saying something like "The file '..' is on a network
path that is not supported for database files."

My questions are:
Can this be done using "AttachDBFilename"?
If yes, any suggestion on what I may be missing?

Even if I do get this method to work will it support multiple users?

--
Thanks,
Jim


.



Relevant Pages

  • Re: Real time notification
    ... Thanks Sahil for detailed reply. ... > reaction was that I will use a database. ... > a) Logical - The central server informs the clients of a change. ...
    (microsoft.public.dotnet.framework.adonet)
  • Database Access Issue
    ... I reciently attempted to migrate a database application and a number ... of file shares from an NT4 server to a Windows 2000 server. ... XP, Mac OSX, and Mac OS 9.x. ... Following the migration all clients were able to access the file ...
    (microsoft.public.win2000.macintosh)
  • Re: 5 access 2000 users and 1 AccessXP user
    ... Access database in question is in Access 2000). ... The back end is on a server running win2K server. ... Check the permissions of the folder where the workstations are connected ... >> started upgrading my win2K clients to XP and the server is still running ...
    (microsoft.public.access.conversion)
  • MS-SQL Internet Hosting
    ... While the host management backs up one's ... utility is provided that backs up the database to one's web-server site. ... By internet enabled I mean that one, or one's clients can connect ... noticeable is the same as when connecting to a local server. ...
    (comp.databases.ms-access)
  • Re: Real time notification
    ... reaction was that I will use a database. ... Logical - The central server informs the clients of a change. ... so you can network load balance it as your needs grow. ...
    (microsoft.public.dotnet.framework.adonet)