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 ...CanCan't connect to DataBase
Previous
 
Next
New Post
8/1/2006 8:04 AM
 
I use of DNN 4.3.3 and unzip it to c://DotNetNuke_2/Website and
in sql2005 create a database with name DotNetNuke and 
create a login with name DotNet and get owner premission for dotnetnuke database and
a user under my database(dotnetnuke) with name DotNet and login DotNet and
in IIS create a virtual directory to top address and with setting use of asp.net 2 and
delete web.config and development.config and rename release.config to web.config and in that doing following changes:
***red is Comments***
 

  <connectionStrings>
    <!-- Connection String for SQL Server 2005 Express
    <add
      name="SiteSqlServer"
      connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"
      providerName="System.Data.SqlClient" />-->

    <!-- Connection String for SQL Server 2000/2005-->
    <add
      name="SiteSqlServer"
      connectionString="Server=(local);Database=DotNetNuke;uid=DotNet;pwd=;"
      providerName="System.Data.SqlClient" />
  
  </connectionStrings>
  <appSettings>
    <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules  
    <add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>-->
    <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules-->

    <add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;uid=DotNet;pwd=;"/> 
    <add key="InstallTemplate" value="DotNetNuke.install.config" />
    <add key="AutoUpgrade" value="true" />
    <add key="InstallMemberRole" value="true" />
    <add key="ShowMissingKeys" value="false" />
    <add key="EnableWebFarmSupport" value="false" />
    <add key="EnableCachePersistence" value="false"/>
    <add key="HostHeader" value="" /><!-- Host Header to remove from URL so "www.mydomain.com/johndoe/Default.aspx" is treated as "www.mydomain.com/Default.aspx" -->
    <add key="RemoveAngleBrackets" value="false" />
    <!--optionally strip angle brackets on public login and registration screens-->
  </appSettings>


but i get an error : can't connect to database  because in defualt  sql2005  haven't  premission to  remote  login

or error :
connection is correct but an error has accured on getting data

or error   :
the user DotNet hasn't  premission to connect to database

can you help to me ?
thanks  in advanced
 
New Post
8/1/2006 12:50 PM
 

I found the easiest way to trouble shoot is to try and setup a ODBC connection to that database using the credentials you mentioned.  The ODBC connection will give you some better error codes to help track down the issue.

Let me know the error, or if you have no problem connecting to the database via ODBC.

Wil

 
New Post
8/1/2006 1:39 PM
 

The following is my connection string which works great:

<add name="SiteSqlServer" connectionString="Server=MIKEJR\SQL;Database=DotNetNukeTest;uid=mikekist;pwd=XXXX;" providerName="System.Data.SqlClient"/>

First notice my local server is identified by "MIKEJR/SQL" which is my machine name/SQL instance - the (local) in the string is just a placeholder. Also I assume you are actually entering a password but just omitted it in the post.

Good luck,

Mike


Kist Enterprises
www.kistenterprises.com
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...CanCan't connect to DataBase


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