Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Transfer data from .mdf to new DNN siteTransfer data from .mdf to new DNN site
Previous
 
Next
New Post
10/29/2010 5:31 PM
 
After opening .mdf DNN database in SQL Server Management Studio, I could not open my site anymore. After trying to reconnect to the database for several days I gave up and created a new site. This time I created the database in SSMS.

But I still have a lot of content in the old .mdf file which I still can open in SSMS. Is there any way to salvage the data in .mdf ? What steps should I take?

Thank you.

Boris
 
New Post
10/29/2010 7:26 PM
 
Please see the following Blog entry:

http://www.dotnetnuke.com/Community/B...

There's no need to have created a new installation. If you have not yet overwritten or deleted the files of the first site, simply changing the connection strings (2) in web.config to use the SQL Server 2005/2008 (rather than the Express) style of connection string should bring the original site back up.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
10/29/2010 10:24 PM
 
William

I followed the advice you referred me to. Here is my connection string now:
<add name="SiteSqlServer" connectionString="Data Source=.\SQLEXPRESS;Database=DotNetNuke;Integrated Security=True;User Instance=False" providerName="System.Data.SqlClient" />

IIS settings should work as my other installation works with exactly the same settings

Here is what happens when I go to the website. First, the wizard starts. I choose installation method Custom. When I come to the database connection page, following settings are selected by default:

Server: .\SQLEXPRESS
Database: DotNetNuke
Integrated Security: yes
Run as db owner: yes

When I click Next, I get htis:
Connection Error(s):
Index #: 0
Source: .Net SqlClient Data Provider
Class: 11
Number: 4060
Message: Invalid Database
Index #: 1
Source: .Net SqlClient Data Provider
Class: 14
Number: 18456
Message: Sql login failed

The database is open in SQL Server, it is not invalid!

In IIS, anonymous authentication is set to Application Pool Identity. Application pool identity is NetworkService.
In SQL Server, NT AUTHORITY\NETWORK SERVICE is db owner for DotNetNuke.mdf. My Windows account is db owner. And just in case, IIS AppPool\DotNetNukePool (pool name) is also db owner.
How come login failed?!

One problem, in SQL Server database name is not displayed as DotNetNuke. It is C:\DOTNETNUKE\APP_DATA\DOTNETNUKE.MDF
Maybe this is the reason? If I try to supply this name in the wizard, the database installation scripts are running and they end up with failure:
undefined...FAILURE null - null

Next time I try to run go to the website I get Resource not found error. Web.config is changed. Now connection string is:
<add name="SiteSqlServer" connectionString="Data Source=MELNIK1\SQLEXPRESS;Initial Catalog=C:\DOTNETNUKE\APP_DATA\DOTNETNUKE.MDF;Integrated Security=True" providerName="System.Data.SqlClient" />

I change connection strings back and I get back to where I started. What do you think I am doing wrong. Very frustrating...

Thank you.


Boris
 
New Post
10/29/2010 10:36 PM
 
I renamed the database to DotNetNuke in SSMS. But result is the same - failure when running installation scripts

Boris
 
New Post
10/29/2010 11:56 PM
 
If you used the mdf file based SQL connection you could only have one connectian at all.  If this file still is mount into your SSMS you cant connect to them with DNN or any other application.

Make sure you have no empty login for your database user -  see at database - security - users on SSMS.

Also you must have the same user allready added on the SQL server where you want add the file.  Make sure you have give permission to execute for scripts and executable files on the IIS and you have full access for the application pool user for all DNN files and folders, read access for the IIS annonymous user for all DNN files and folders.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Transfer data from .mdf to new DNN siteTransfer data from .mdf to new DNN site


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out