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  |  

DotNetNuke Marketplace
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
 


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
344 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
182 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.

 


DNNSpired.com
Inspired to extend DotNetNuke®, everyday.
www.DNNSpired.com
TMA Resources
TMA Resources is a software company providing eBusiness solutions for the Association market.
www.tmaresources.com
DotNetNuke Hosting Provider UK
UK leading DotNetNuke Hosting provider. Owned and operated by a Microsoft Gold Certified Partner.
www.DNN-Portals.co.uk

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