Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Reports Module ...  changing database for reports
Previous Previous
 
Next Next
New Post 1/2/2007 12:43 PM
User is offline roberto roberto
5 posts
10th Ranked


changing database for reports 

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 3:53 PM
User is offline Andrew Nurse
353 posts
8th Ranked






Re: changing database for reports 
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 5:26 PM
User is offline Paul Scarlett
185 posts
www.tressleworks.ca
9th Ranked






Re: changing database for reports 

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 3:15 AM
User is offline roberto roberto
5 posts
10th Ranked


Re: changing database for reports 

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 7:06 AM
User is offline roberto roberto
5 posts
10th Ranked


Re: changing database for reports 

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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Reports Module ...  changing database for reports
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Gearworx Web Hosting
As a premier provider of Web Hosting, Private/White Label hosting, Server Colocation, Dedicated Server, and other Managed Services, Gearworx offers an array of services designed to more effectively manage strategies driving businesses on the Web. Headquartered in Fremont, California our state of the art tier one data centers and distributed managed services environment enables Gearworx to offer your business enterprise level solutions through simplified processes.
Gearworx Web Hosting
Glanton: Enterprise Intranet Specialists Using DNN
Glanton Solutions are a premier provider of sevices for large corporates lloking to outsource Intranet sites.
www.glanton.com
Jetkey Smart Map
Smart Map is an AJAX powered Google Map module that displays driving directions, proximity search results and data from your own databases. Smart Map reads GPX (GPS data) files, GeoRSS feeds, and KML data. You can pass any querystring parameter to Smart Map and into your own custom queries to control what data displays on the map.
smartmap.jetkey.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP