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  |  

Affordable ASP.NET Hosting Service
  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

OnyakTech
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.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Reports Module ...  RETRIEVE FROM 2 DB
Previous Previous
 
Next Next
New Post 9/5/2007 4:35 AM
User is offline Carlos Pereira
7 posts
www.hotmail.com
10th Ranked


RETRIEVE FROM 2 DB 

Hello!!

I have one db (NUKE) and another db(web) -- 2 DB's

So!

In the WEB database i have a tbl called customers with a field named Id

In the nuke database i have the users table with the same id field

I make a query to Obtain the customer's name and the reports retrieve an error.... I must declare the variable @ID ... i made it, but it give always the same error.

At the end, what i want is only a simple query like:

SELECT W.Name, W.Adress FROM web.Customers w INNER JOIN NUKE.Users U ON W.Id=U.Id

 

 
New Post 9/5/2007 8:58 AM
User is offline Mitch Sellers
5719 posts
www.mitchelsellers.com
3rd Ranked




Re: RETRIEVE FROM 2 DB 

Are the databases on the same server?


-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 9/5/2007 9:32 AM
User is offline Carlos Pereira
7 posts
www.hotmail.com
10th Ranked


Re: RETRIEVE FROM 2 DB 

Hi Mitchel !!

Yes

The DB's are in the same server...

 
New Post 9/5/2007 9:52 AM
User is offline Mitch Sellers
5719 posts
www.mitchelsellers.com
3rd Ranked




Re: RETRIEVE FROM 2 DB 

In that case it should be easy!

SELECT W.Name, W.Adress
FROM web.Customers w
    INNER JOIN NUKE.dbo.Users U
 ON W.Id=U.Id

Just make sure that the user account you are using has access to both databases!


-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 9/5/2007 10:11 AM
User is offline Carlos Pereira
7 posts
www.hotmail.com
10th Ranked


Re: RETRIEVE FROM 2 DB 

Ok. it works fine, not with the reports module, but with myselve module of reports with a conectionstring to the other bd .... Solved

But now i need to query the db like that

SELECT W.Name, W.Adress
FROM web.Customers w
    INNER JOIN NUKE.dbo.Users U
 ON W.Id=U.Id

WHERE U.ID=(User logged)

You could help me with that ?

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Reports Module ...  RETRIEVE FROM 2 DB
 


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.

 


Swanzey Internet Group LLC
DotNetNuke design, development, e-Commerce, hosting, maintenance, and training. Exclusively DotNetNuke.
www.swanzey.com
Lucede Systems Group
Providing a full range of IT services for large and medium sized companies
www.lucede.com
Adaptive InfoSystems, Inc.
We provide custom programming and various levels of support for DotNetNuke and the .Net framework.
www.aisysweb.com

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