Thanks for reply web services,
unfortunately I can't the database restored properly locally. I can't get it to connect to the SQLExpress Database.
I have complete access (RDP with domain admin account) to both the production server and local instance (ofcourse).
Connectionstring on production servers:
<add name="SiteSqlServer" connectionString="Data Source=BNOPRDWIN2008R2,8639;Initial Catalog=DATABASEA;User ID=USERNAMEA;Password=PASSWORDA" providerName="System.Data.SqlClient" />
<add key="SiteSqlServer" value="Data Source=BNOPRDWIN2008R2,8639;Initial Catalog=DATABASEA;User ID=USERNAMEA;Password=PASSWORDA" />
On the local machine I restored a backup of the database using SQL Server Management Studio. This all goes well. Due to your mention about the username, I created a new SQL User USERNAMEB, gave it the Sysadmin server role. Added USERNAMEB as dbo to the restored database named DATABASEB.
Been trying variations in the connectionstring on the local machine, but cannot get DNN to successfully connect to the database.
Examples of connectionstrings I've been trying:
<add name="SiteSqlServer" connectionString="Data Source=COMPUTERNAME\SQLEXPRESS;Initial Catalog=DATABASEB;User ID=USERNAMEB;Password=PASSWORDB" providerName="System.Data.SqlClient" />
<add name="SiteSqlServer" connectionString="Data Source=(local);Initial Catalog=DATABASEB;User ID=USERNAMEB;Password=PASSWORDB" providerName="System.Data.SqlClient" />
<add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Initial Catalog=DATABASEB;User ID=USERNAMEB;Password=PASSWORDB" providerName="System.Data.SqlClient" />
<add name="SiteSqlServer" connectionString="Server=COMPUTERNAME\SQLEXPRESS;Database=DATABASEB;uid=USERNAMEB;pwd=PASSWORDB" providerName="System.Data.SqlClient" />
<add name="SiteSqlServer" connectionString="Server=(local);Database=DATABASEB;uid=USERNAMEB;pwd=PASSWORDB" providerName="System.Data.SqlClient" />
<add name="SiteSqlServer" connectionString="Server=.\SQLExpress;Database=DATABASEB;uid=USERNAMEB;pwd=PASSWORDB" providerName="System.Data.SqlClient" />
<add name="SiteSqlServer" connectionString="Data Source=COMPUTERNAME\SQLEXPRESS;Initial Catalog=DATABASEB;User ID=USERNAMEB;Password=PASSWORDB;" providerName="System.Data.SqlClient" />
<add name="SiteSqlServer" connectionString="Data Source=(local);Initial Catalog=DATABASEB;User ID=USERNAMEB;Password=PASSWORDB;" providerName="System.Data.SqlClient" />
<add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Initial Catalog=DATABASEB;User ID=USERNAMEB;Password=PASSWORDB;" providerName="System.Data.SqlClient" />
<add name="SiteSqlServer" connectionString="Server=COMPUTERNAME\SQLEXPRESS;Database=DATABASEB;uid=USERNAMEB;pwd=PASSWORDB;" providerName="System.Data.SqlClient" />
<add name="SiteSqlServer" connectionString="Server=(local);Database=DATABASEB;uid=USERNAMEB;pwd=PASSWORDB;" providerName="System.Data.SqlClient" />
<add name="SiteSqlServer" connectionString="Server=.\SQLExpress;Database=DATABASEB;uid=USERNAMEB;pwd=PASSWORDB;" providerName="System.Data.SqlClient" />
Any help would be greatly appreciated.