Answered by:
Can i include SQL SERVER database in app_data folder on production with SQL SERVER Entertprise edition

Question
-
User-775697465 posted
Can i include SQL SERVER database in app_data folder on production server with SQL SERVER enterprize edition.
all the time i uploaded sql server database into hosting sql sever database , can i include the database file .mdf inside app_data folder
Des it will work normally or only this work with sql server express edition?
Thursday, May 9, 2013 12:45 PM
Answers
-
User2108829372 posted
i am not clear on the question you asked . are you asking if we can change the connection string of attachdb, if so change "
"SQL-FULLVERSION\SQL2008" in the connection string below to the connection string of your production database
<add name="connectionstring" connectionString="Data Source=SQL-FULLVERSION\SQL2008;AttachDbFilename=|DataDirectory|Data.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, May 9, 2013 1:07 PM -
User-166373564 posted
Hi maliksh
maliksh
what if there was SQL Server enterprise edition installed on the hosting server does it will work if i attached database inside app_data??If you want to work with attached database inside app_data in SQL SERVER enterprize edition, you should change your connection string first,
With regards
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, May 15, 2013 5:29 AM
All replies
-
User2108829372 posted
i am not clear on the question you asked . are you asking if we can change the connection string of attachdb, if so change "
"SQL-FULLVERSION\SQL2008" in the connection string below to the connection string of your production database
<add name="connectionstring" connectionString="Data Source=SQL-FULLVERSION\SQL2008;AttachDbFilename=|DataDirectory|Data.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, May 9, 2013 1:07 PM -
User311508580 posted
Hi maliksh,
Could you please explain a bit more?
Thursday, May 9, 2013 10:12 PM -
User-775697465 posted
I mean that attach database inside app_date folder is only work with SQL Server express , what if there was SQL Server enterprise edition installed on the hosting server does it will work if i attached database inside app_data??
Friday, May 10, 2013 7:08 AM -
User2108829372 posted
have you tried the changing the connection string ( mentioned in the above post) ?
Friday, May 10, 2013 10:58 AM -
User-166373564 posted
Hi maliksh
maliksh
what if there was SQL Server enterprise edition installed on the hosting server does it will work if i attached database inside app_data??If you want to work with attached database inside app_data in SQL SERVER enterprize edition, you should change your connection string first,
With regards
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, May 15, 2013 5:29 AM