> Sounds interesting... what's the workaround?
>
[quoted text clipped - 44 lines]
> > >
> > > Help!
This my first attempt at deploying a distributed windows app, and I am having
similar issues with connecting to an .mdf. I have a server where I want the
.mdf to be kept, and a few clients running the app that will need to access
the .mdf.
Tom, you said the .mdf needs to be attached to the server. Do you mean it
needs to be permanently attached to some instance of SQL Server/SQL Express
on the server?
The app that I am working on has the .mdf included in the project (in the
bin folder) and I am attaching at run time using "attachdbfilename=..." in
the connection string. I was planning on placing the app in a fileshare,
hoping this would make the database accessible to the clients. Are you
saying that this method does not work in a distributed app?
Thanks

Signature
Jim L
> Hi Liam,
>
[quoted text clipped - 62 lines]
> > > >
> > > > Help!
tommaso.gastaldi@uniroma1.it - 17 Jul 2006 17:10 GMT
hi Jim,
For what I know at the moment (I may be missing some things) .mdf is
not what one who is used to the .mdb format would expect.
Somehow, it does not seem at all to have the portability we would have
wished.
When we open an mdb the engine is in the provider. But the .mdf can be
accessed only through the SQL server engine. So it seems that it must
be "attached" to the server to be accessed.
Further, for the attempts I have done, this fact seems to have some
other bothering consequences, such as the .mdf will not be open unless
it is in some specific directories which the server can access (such as
App_Data in an asp.net application folder).
One undertands the security reasons, but I find very disappointing this
kind of behavior. I expected the .mdf to be a kind of improved .mdb,
but things seem to be quite different.
The story is probably that this format is specific to address the
security problems of asp net applications.
Personally I have forget about the .mdf and - with a lot of
disappointment - turned back to the old .mdb (with all its big
problems, such as locking and so on). In any case I use a file as DBMS
only temporarily, during development, to be free to move things around
and make easily changes, before attaching to some "serious" DBMS.
If someone has some good news about .mdf, I will be happy to hear them.
-tom
Datatime Community Edition
http://cam70.sta.uniroma1.it/Community/
Jim L ha scritto:
> This my first attempt at deploying a distributed windows app, and I am having
> similar issues with connecting to an .mdf. I have a server where I want the
[quoted text clipped - 81 lines]
> > > > >
> > > > > Help!