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 do i connect to the SQL database and add data without locking the file?How do i connect to the SQL database and add data without locking the file?
Previous
 
Next
New Post
10/13/2006 12:28 PM
 

For a lot of tasks it is just faster for me to edit the database file itself and i have made a little MS Access app that makes things fast and easy.  The problem is.. i have to stop webserves.. copy the database to another folder.. restart webservices, Use ODBC connection to the copied database.  Then make all my changes.  Then stop webservices again.. then copy the database over the top of the old one.  Then start webservices again.

This causes a bit of down time and a off chance that a user is trying to change data on one of the parent portals while i am working on the database itself.

Is there a way to connect to the live DNN Database File with Microsoft Access, Locally, without knocking down the pages to do it?

If it is possible, i would love to refine this MS Access front end to DNN and make it available for others.

brandon

 
New Post
12/28/2006 4:12 PM
 

Hi,

me not being an expert in Ms Access, i know what did the trick for me in for example SQL 2005 express.

add a database user to you (dnn) Database, give this user the prperty of database owner.

Use this useraccount for both your connection used by access and the web.config of your site.

your webconfig shoull'd be something like:

<connectionStrings>
    <!-- Connection String for SQL Server 2005 Express -->
    <add name="SiteSqlServer" connectionString="Server=SERVERNAME\sqlexpress;Database=DATABASENAME;uid=USER;pwd=THISISTHEPASSWORD;" providerName="System.Data.SqlClient" />
    </connectionStrings>
  <appSettings>
    <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules -->
    <add key="SiteSqlServer" value="SERVERNAME\sqlexpress;Database=DATABASENAME;uid=USER;pwd=THISISTHEPASSWORD;"/>

change the orange parameters with yours.

hope this helps you!

 

cheers

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How do i connect to the SQL database and add data without locking the file?How do i connect to the SQL database and add data without locking the file?


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