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 ...DNN4.3.4 with SQL Server Express Please Help!DNN4.3.4 with SQL Server Express Please Help!
Previous
 
Next
New Post
8/6/2006 12:32 PM
 

Hello All,

I am pulling what little hair I have left out trying to get DNN434 working with SQL SErver Express.

What is up with this  "AttachDbFilename" parameter.    I have searched the web and MS and have seen samples of the connection string.   Here is what I am using.

connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDbFilename=C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\DNN4.mdf;Database=DNN4;Trusted_Connection=Yes;"

I read on another site  that express will attempt to attach the "mdf"  to the server. I also read that if it is already attached it will try to connect but only if you also supply the "Database=DNN4" parameter.

Is this the only valid connection string.   Can someone give me an example of a connect string that can be used if the DB already exists and using SQL authentication with a User ID and PW, please?

I'm getting ready to chuck Express and go back to 2000.

Any help is greeatly appreciated.

 
New Post
8/6/2006 8:54 PM
 

This is what I've been using on my development server in all of the 4.x versions:

connectionString="Server=.\SQLEXPRESS;Initial Catalog=DNN4Db;uid=DNN4DbUsr;pwd=******;"

The SQLExpress database DNN4Db and the username DNN4DbUsr were created (using SQL Server Management Express) prior to the DNN installation. Note also that I am using only SQL authentication, not windows or mixed mode authentication, so there is no inclusion of the Trusted_Connection or Integrated Security attributes in the connection string.


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
8/6/2006 9:03 PM
 

BillD42,

I too had problems connecting to SQLExpress.  I got the following to work

Provider=SQLNCLI; Server=.\SQLEXPRESS; Database=Whatever; uid=xxxx; pwd=yyyy;

This assumes you connected to the Database using something like SQL Server Management Studio and set the userid and password accordingly.

The User Instance and AttachDBFilename give you the same single file database experience asAccess - from what I can best determine.  I spend most of my time SQL 2000 and SQL 2005, so my knowledge of SQLExpress is limited at best.

Hope this helps
Paul
www.tressleworks.ca (home of SQLGridSelectedView)

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN4.3.4 with SQL Server Express Please Help!DNN4.3.4 with SQL Server Express Please Help!


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