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  |  

AspDotNetStoreFront
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Reports Module ...  Query Databse
Previous Previous
 
Next Next
New Post 7/30/2007 11:48 AM
User is offline Carlos Pereira
7 posts
www.hotmail.com
10th Ranked


Query Databse 

Someone could help in a way to query another DB in same server ?

In a normal way we made

SELECT dbo._Name, dbo._Adress FROM anotherdb.dbo.table WHERE something

 

but if i made it in the reports section it give a empty query.

 

 
New Post 8/1/2007 10:57 AM
User is offline mjliscio
110 posts
9th Ranked


Re: Query Databse 

I dont know if I fully understand your issue so I am not sure how much help this will be, but I was able to query another database with the reports module by changing the connection string located in the SqlDataProvider.vb class

 

hope this helps Mike

 
New Post 8/1/2007 11:18 AM
User is offline Andrew Nurse
366 posts
8th Ranked






Re: Query Databse 

That trick will work, but it is a very unsupported workaround that will affect your entire installation (all portals using the same codebase). However, the next version of Reports (coming in the next month or so, hope to have some more news soon, keep an eye on the DNN blogs) will allow a module to query, not only another database, but completely different data sources including other SQL Servers, OLE DB, and others.


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

 
New Post 8/1/2007 11:53 AM
User is offline Mitch Sellers
5719 posts
www.mitchelsellers.com
3rd Ranked




Re: Query Databse 

Your posting should work IF the DotNetNuke database user has permissions to that specific database table.


-Mitchel Sellers
MCITP, MCPD, MCTS
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Consulting Quotes, and DNN Technical Support Services

I reccomend 3Essentials for shared hosting and BaseCamp for project management
 
New Post 8/1/2007 1:05 PM
User is offline Paul Scarlett
188 posts
www.tressleworks.ca
9th Ranked






Re: Query Databse 

If you know the appropriate connection string to access the "other" database.  You can use a module like SQLGridSelectedView (www.tressleworks.ca) or SQLView (www.dnnstuff.com) to access the database.  These modules are free and allow the user  to specify the connection string to be used when accessing a database.  

For example, you can use the existing DNN database connection string where the database is defined and change it to the "other" database, then you can perform selects without referencing the database name.    If you have Northwind example database installed, you can used something like:

Server=(local);Database=Norhtwind;uid=uuuu;pwd=ppppp;

as the connection string.  For help with connection strings, see www.connectionstrings.com   Based on the connection string you can access a Excel file,  MS Access, Oracle, MySQL, and many other data stores.

Hope this helps,
Paul.

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Reports Module ...  Query Databse
 


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.

 


DNNhost Scandinavia
SUPER fast QuadCore DELL servers, MSSQL servers, DotNetPanel, daily backup, Check out our customers websites
DNNhost.dk
Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com
DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com

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