app_data folder question!

A

Artificer

Why by simply having a .mdf file in the app_data folder it is made
accessible? Does placing a .mdf in the app_data folder does some kind
of attachment? Do this pseudo attachment works only with the express
version of SQL Server? Do this feature works for access databases?
 
B

bruce barker \(sqlwork.com\)

its doesn't. the connect string contains the path to the mdf.

-- bruce (sqlwork.com)
 
J

Juan T. Llibre

re;
Why by simply having a .mdf file in the app_data folder it is made accessible?

Only if it's the Membership database registered into ASP.NET with the aspnet_regsql tool.
Any other database placed there *must* be explicitly made accessible.

re:
Do this pseudo attachment works only with the express version of SQL Server?

Yes, but only for the Membership DB.

re:
Do this feature works for access databases?

No, and it doesn't work for *any* other DB.





Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top