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.0DAL+ - extra database connectionDAL+ - extra database connection
Previous
 
Next
New Post
12/6/2006 4:49 PM
 

I am now using the DAL+ to build my new module - works great and all - (thank you Michael)

 

Heres the question - is there a way to define a second database connection string in the web.config and be able to use it with the DAL+ to access and integrate external information from outside the DNN 'universe' - I didnt see where it might 'grab' the connection string - so was wondering if anybody had this problem or, better yet, a simple solution

I was thinking if there was something like

Public Shared Function Codegalaxy_Classifieds_Admin_CategoryList(ByVal PortalId As Integer) As List(Of Codegalaxy_Classifieds_Category_Info)
            Dim CategoryList As List(Of Codegalaxy_Classifieds_Category_Info) = New List(Of Codegalaxy_Classifieds_Category_Info)

ACCESS ALTERNATE CONNECTION STRING HERE TO USE BY ExecuteReader


            Using dr As IDataReader = DotNetNuke.Data.DataProvider.Instance().ExecuteReader("Codegalaxy_Classifieds_Admin_CategoryList", PortalId)
                While dr.Read
                    Dim CategoryItem As Codegalaxy_Classifieds_Category_Info = New Codegalaxy_Classifieds_Category_Info
                    CategoryItem.Id = Convert.ToInt32(dr("ID"))
                    CategoryItem.PortalId = Convert.ToInt32(dr("PortalID"))
                    CategoryItem.ParentId = Convert.ToInt32(dr("ParentID"))
                    CategoryItem.CategoryName = Convert.ToString(dr("CategoryName"))
                    CategoryList.Add(CategoryItem)
                End While
            End Using
            Return CategoryList
        End Function


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
12/7/2006 11:57 AM
 

i asked Micheal Washington this question on his blog. But I didn't get much of an answer.

 

 
New Post
12/7/2006 1:11 PM
 

Did you try what you had suggested ?

Can you post that here so I can keep track of it please - and maybe we can find out together how to make it work

 

:)


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
12/7/2006 1:53 PM
 
I haven't tried it yet. I plan on doing so over the next two weeks though. I'll post back with notes if I make progress. It seems to me that if you define the connection string in the web.config you should be able to switch it on a per method instance in the sqldataprovider.
 
New Post
12/7/2006 2:15 PM
 
Well there its not any problem I have done that before - but thats the DAL - if you want to use the new DAL+ then you might have troubles

Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DAL+ - extra database connectionDAL+ - extra database connection


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