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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportschanging database for reportschanging database for reports
Previous
 
Next
New Post
1/2/2007 4:43 PM
 

is it possible change the database name (not the provider es: Northwind instead of Dotnetnuke db) to work with for reports only with substitution in sqldataprovider.vb of the value of   _connectionString present in 'Public Sub New'?

es._connectionString ="Server=(local) etc..."

thanks, rizomatosa

 
New Post
1/2/2007 7:53 PM
 
That might work, but I can't say for sure (you should probably back up the DB first). However, the next version of the Reports module will support data sources that are not the same as the DNN Data Provider.

Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
New Post
1/2/2007 9:26 PM
 

As an alternative to the Reports Module - or at least until the next version, you may want to check out SQLGridSelectedView at www.tressleworks.ca 

This module will allow you to define the database connection, so you can use it to work with most databases. 

The module is free and there is a User Guide available to show you how to use the various options available. 

Another alternative is SQLView fron www.dnnstuff.com.  This module will also allow you to define the database connection.

Hope this helps, Paul.

 
New Post
1/4/2007 7:15 AM
 

Thanks for replay. But waiting for the new version of prpject::reports:

in according with some suggestions in this forum, i worked with web.config:

<

 

[.....]

<

<

[..... below <data>]

 

appSettings>add key="mydataserver" value="Server=(local);Database=Northwind;uid=sa;pwd=******;" />

<

<

<

<

 

 

 

 

 

 

</

</

So in sqldataprovider.vb instead of working with _connectionString,  i modified "Private Const ProviderType As String = "mydb"" but i don't know what i've to do with DATAPROVIDER.VB.

Please, help me!

mydb defaultProvider="Sql">providers>clear />add name="Sql" type="DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider" connectionStringName= "mydataserver" upgradeConnectionString="" providerPath="~\Providers\DataProviders\SqlDataProvider\" objectQualifier="" databaseOwner="dbo" />providers>mydb>
sectionGroup name="dotnetnuke">[.....]

section name="mydb" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" />

<
 
New Post
1/4/2007 11:06 AM
 

ok i do it!: (but is it stable?) (substitute the char _ with <)

in web.config i add ::: section name="customdata" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" />

and below data tag  data>customdata defaultProvider="SqlDataProvider">_ providers> _ clear />_ add name="SqlDataProvider" type="DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider" connectionString="Server=(local);Database=Northwind;uid=sa;pwd=xxxxxxxxxx;"upgradeConnectionString="" providerPath="~\Providers\DataProviders\SqlDataProvider\" objectQualifier="" databaseOwner="dbo" />_ /providers>_ /customdata>

in dataprovider.vb: objProvider = CType(Framework.Reflection.CreateObject("customdata", "DotNetNuke.Modules.Reports.Data", String.Empty), DataProvider)

in sqldataprovider.vb: Private Const ProviderType As String = "customdata"......'_connectionString = Config.GetConnectionString()'If _connectionString = "" Then' Use connection string specified in provider_connectionString = objProvider.Attributes("connectionString")'End If

 

 

 

what about this solution?

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportschanging database for reportschanging database for reports


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