Database always being attached as 'master' when AttachDbFileName is used
I'm trying to put my project to shared hosting and use mdf on file system as DB.
This is my connection string:
<
connectionStrings
>
<
add
connectionString
=
"Database=podnikajmecom;data source=.\SQLEXPRESS;AttachDBFileName=|DataDirectory|sf_podnikajme_com.mdf;Integrated Security=SSPI;"
providerName
=
"System.Data.SqlClient;Trusted_Connection=Yes;UserInstance=True;"
dbType
=
"MsSql"
name
=
"Sitefinity"
/>
Hello,
The user who must have access to the database with permissions over the database (database owner) must be added over the .mdf database. I suppose the shared hosting have access to SQL server to attach the database and assign a database user to be used as a user to manage the database. For example here is how sitefinity database is assigned a database user on shared hosting with assigning permissions to the database.
All the best,
Richard Moore
the Telerik team