I have been transferring the database from a separate shared SQL Server to SQL Server Express on our server.
I have a fresh DNN install to compare the web.config with (but uses mdf file).
My changes look like this:
<connectionStrings>
<!-- Connection String for SQL Server 2005 Express -->
<add name="SiteSqlServer" connectionString="Data Source=DEDL55\SQLEXPRESS;Initial Catalog=TAC;User ID=user;Password=password" providerName="System.Data.SqlClient" />
<!-- Connection String for SQL Server 2000/2005
<add
name="SiteSqlServer"
connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"
providerName="System.Data.SqlClient" />
-->
</connectionStrings>
<appSettings>
<!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules -->
<add key="SiteSqlServer" value="Data Source=DEDL55\SQLEXPRESS;Initial Catalog=TAC;User ID=user;Password=password" />
Basically I have changed:
- machinevalidationKey & machinedecryptionKey
- Data Source from shared server to local SQL Server Express Instance
- Kept Initial Catalogue as before (fresh DNN install has AttachDbFileName to point to mdf file)
- Kept user & password (fresh DNN install uses Integrated Security, not setup it seems for the old database I want to use)
Problems I have...
It is either saying
Login failed for user. The user is not associated with a trusted SQL Server connection.
, or if I try to use the Integrated Security for this database it was saying Login failed for user 'NT AUTHORITY\NETWORK SERVICE' , which I have now allowed with sys access... but registered users don't seem able to log in (but the website does display!). I think the user login is preferred but whatever works would be great!
If I am "lucky", some combinations I get says Site is currently unavailable, Check back later.
Any help would be appreciated.
Thanks