Ok, now I can safely say I've done my share of reading this forum, two DNN books, and experimental work. After about 40 hours worth of research I still have questions and I know there are hundreds, if not thousands, of people out there that feel frustrated and are not getting much help with DNN installation issues - specifically, database connection problems. Why aren't there clear installation instructions (given two books published by Mr. Walker on this subject)?
I've seen dozens of posts out there about this, but none had a complete answer. Let me list my outstanding questions in this post.
ULTIMATE GOAL
To get DNN 4.x running on Windows 2003 Server, ASP 2, IIS 6, SQL Server 2005 Express.
OUTSTANDING QUESTIONS
1. DNN 4.3.5 worked for me simply after downloading the install package, unzipping, setting permissions, and configuring IIS, but WITHOUT CREATING A NEW DATABASE IN SQL SERVER EXPRESS AND WITHOUT ANY CHANGES TO CONFIG FILES. Thus, I question the section of installation instructions saying that you must create a database. I have (or actually, I had) an instance of DNN 4.3.5 working without the database creation part. Research indicates that in such default install situation, DNN uses the database file $ROOT/App_Data/Database.mdf. Given I have experimental proof, does this mean that the "create database" step is optional, and by default DNN will use the App_Data/Database.mdf file?
2. I would not be writing this if my portal continued to work. However, after about a week of operation it stopped working and now I'm having all sorts of database connection errors described in millions other threads on this forum. There have been no changes that I know of that might have caused this. And I'm definite that web.config file was never altered. Thus, my second question: if portal was working as described in #1 (above), what might have caused it to stop working and complain about database connections?
3. In trying to fix this, I have attempted to create the database via Microsoft SQL Server Management Studio Express and repoint my portal to that database. This only led to more questions. Hence this question number three: from the DNN's perspective, is there any difference between "SQL EXPRESS" (the one I have) and non-EXPRESS (i.e. SQL 2000 or SQL 2005) server?
4. In the web.config file there are two distinct configuration sections. Comments to one indicate that it is for use with "Express" SQL Server and comment for another indicate that it is for use with "2000/2005", non-Express versions. Here's one:
And here's another:
name="SiteSqlServer"
connectionString="Server=(local);Database=dnn;uid=dnnuser;pwd=dnnpass;"
providerName="System.Data.SqlClient" />
However, in a number of posts I saw suggestions that even if I'm using 2005 Express, I should still use the configuration section for "2000/2005", and my connection string should look something like this:
name="SiteSqlServer"
connectionString="Server=(local);Database=dnn;uid=dnnuser;pwd=dnnpass;"
providerName="System.Data.SqlClient" />
(note the "express" portion commented). Hence my fourth question: if I'm running SQL Express, which "flavor" of configuration should I use?
5. If as comments suggest, I should be using the "express" part of the configuration section for my SQL Express Server, how should the connection string look like? I mean, where do I specify username/password, etc.? There is absolutely nothing about this in both DNN books ("Installation" section by Mr. Walker).
Can I use this option without creating the DB via SQL Server Management tools? Can I simply point to the .mdf file on the file system? Somehow I get a feeling that "AttachDBFilename=|DataDirectory|Database.mdf" already points to the .mdf file that is by default located under App_Data directory.
6. Assuming I am eventually able to point to the database I created via SQL Management Tools, how to I get my data that is now in $ROOT/App_Data/Database.mdf file into that new database? Can I "attach" the .mdf file via SQL Management Tools? Or can I still somehow point back to my $ROOT/App_Data/Database.mdf file?
If there is anyone out there with understanding of these aspects willing to invest a little time to help out DOZENS IF NOT HUNDREDS OF TROUBLED USERS, please, please, please - DO SO! I wish installation instructions were more clear about these points. Maybe if someone is kind enough to answer my questions, this thread will server as such clarification? I'm only afraid this will remain unanswered like number of posts with similar questions I have seen...
Thank you for reading.