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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Hot to query an existing SQL database?Hot to query an existing SQL database?
Previous
 
Next
New Post
3/15/2009 10:48 PM
 

Migrating our intranet to DNN we have to integrate some tables from our proprietary HR system. As these are really simple - basically a table with employee data and one with the departments - we would like to write a little module which does the following:

  • create a list with all employees
  • link each employee to his profile
  • let an employee update his profile (as both DNN and our HR system uses the Active Directory user, we can assure that an employee only updates his personal data)
  • request a business card by choosing two employees from the list (requesting employee and approving employee) which adds a new row to a specific table
  • generate a list with all business card requests and their status

Does anyone has advise how to do this? In particular I do not know where in our existing (ASP based) intranet to find the data how to connect to the database (yes, seriously, but the existing application was developed by someone who left the company and since then the system is running but actually no one of our small existing IT staff has a clue about web development) and how to connect to the database from DNN.

Our webserver is running ASP.NET 2.0 so we cannot use LINQ.

 
New Post
3/15/2009 11:55 PM
 

Developing a module to connect to an external db under DNN is pretty much the same as developing a standalone ASP.NET application.  Define the connection string in the web.config file (under the appSettings section or in its own section) and utilize it in your module.  Simple as that.

Alternatively there is a commercial module available, Enterprise forms, that has the the capability to connect to an external DB and provide the functionalities you're looking for.  In addition the external DB could be hosted in any of the supported servers (Oracle, MySQL, SQL Server etc..)

 

 
New Post
3/16/2009 12:36 AM
 

Thank you for your answer. Do you have any further information or example for the second solution, hosting the external DB in any of the supported servers? Does it have any advantages over just querying the database the way with the web.config?

 
New Post
3/16/2009 1:17 AM
 

What I was referring to was that you could connect to an external database other than the default DNN database.  From their website I think you could connect to Oracle, MySql, MSSQL, Access, VistaDb and Postgres.  As a starting point you could check out this blog

 

 
New Post
3/16/2009 5:29 AM
 

Do you have any example or tutorial which explains how to setup a small basic module using a connection string to an external database? I already had a look on Michael Washington's pages but do not really know how to start. The connection string so far was not a problem.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Hot to query an existing SQL database?Hot to query an existing SQL 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