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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How does the SQL Express 2005 database work with DNN?How does the SQL Express 2005 database work with DNN?
Previous
 
Next
New Post
4/5/2006 2:44 PM
 

I briefly discussed this on the ASP.Net forums, but nothing ever really come of it. 

How is the SQL Server 2005 Express database "supposed" to work with DNN 4.0.2? 

It is up and running, but I could not locate the database in the Enterprise Manager console.  I could see all the generic databases, master, model, msdb, tempdb, etc..., but could not see a DotNetNuke database.  I attempted to add the database into the console, since I knew where the file was, and it said I could attach it because it was currently in use.

So, I then downloaded the SQL Server Management for Express, and tried that, same thing.  I then waited for our new CDs to arrive with the full version of SQL Server 2005, and then tried that console, same thing.  I could not add the database in because it was "already in use".  Finally, I shut down IIS, and then added the database into the Management Console.  I could then view the database as expected, browsing all the tables, etc...  But when I started up IIS/DNN again, I could no longer reach the database from the console.

In all the previous versions of DNN, I was always able to view the database in real-time, but now I can't.  I don't think this is the way it is "supposed" to be working, it is like it is being opened in exclusive mode or something similar.  I also am suspecting that this inability to access the database correctly is the root cause of many of my problems with DNN that I am experiencing.

Does anyone have enough experience with the SQL server to assist me with this?  Unfortunately, I don't know it intricately enough to figure this problem out.

 
New Post
4/5/2006 3:19 PM
 

Everything is behaving as it should. The issue is that your connection string makes use of the new sql express feature of "user instances" . User instances get automatically loaded the first time they're accessed, and autoclose once they're not used (e.g. when IIS is reset). This allows you to xcopy the mdf/ldf files which is a handy way to develop (and it automatically uses your user security context to run under) , but does have the limitation you've mentioned where you can't attach to a file that's already in use. If you don't want/need the xcopy capabilities, shut down IIS, attach your database, create a user and grant them permissions (e.g. dbo), and amend your web.config connectionstring so it uses a more traditional connection string such as "Server=(local);Database=mydatabase;uid=myuser;pwd=mypass;" .

You can read more about user instances here and here

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/6/2006 8:18 AM
 

Thanks, that is both good news and bad news.  Good news because everything is behaving as it should, bad news because I thought I had finally narrowed down a possible cause of other problems...

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How does the SQL Express 2005 database work with DNN?How does the SQL Express 2005 database work with DNN?


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