how to use an mdf in App_Data with shared hosting
Posted
by name
on Stack Overflow
See other posts from Stack Overflow
or by name
Published on 2009-06-16T17:07:15Z
Indexed on
2010/04/11
17:13 UTC
Read the original article
Hit count: 404
If I create a website that uses an mdf in App_Data with the connection string:
Server=.\SQLExpress;AttachDbFilename=|DataDirectory|mydbfile.mdf;Database=dbname; Trusted_Connection=Yes;
what do I need to do to run the site in a shared hosting environment? Do I need to copy the contents of my mdf to the main SQL Server engine of my host? Is there a way to use the non-SQLExpress engine of my host and still keep my mdf in my App_Data?
© Stack Overflow or respective owner