Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Database Connection Error for 1 table Post Reply Post New Topic
Author Message
JFinzel
Groupie
Groupie
Avatar

Joined: 20 Jul 2011
Location: United States
Online Status: Offline
Posts: 49
Quote JFinzel Replybullet Topic: Database Connection Error for 1 table
    Posted: 27 Jul 2012 at 4:29am
I am having a join problem that has to do with how I want to group my report.  Here is a mock schema for the layout of my tables:
GUNS --> (linking table) --> AMMO
(A1.gun)                            (Aa1.ammo)
 
ORDER -->  GUNS
(fields...)     (B1.gun)
                   AMMO
                   (B2.ammo)
                   Table B3
                   (B3......)
 
I have put in bold the tables/fields I need to link.  IMPORTANT: GUNS and ORDER are two separate databases being pulled into one report.  So it is not allowing me to do a SQL statement.
 
GUNS (A1.gun) links to GUNS (field B1.gun) where A1.gun = B1.gun
AMMO (Aa1.ammo) links to AMMO (B2.ammo) where Aa1.ammo = B2.ammo
 
The idea is, I WANT TO SEE ALL "GUNS" and all "AMMO" even if there are none in "ORDERS".
 
At this point, all is fine and dandy when I set up my groups in Crystal Reports like so:
 
Group 1: A1.gun
   Group 2: Aa1.ammo
        DETAILS: B1.gun (although here I get zillions of duplicates)
                       B2.ammo (this one does not create duplicates)
 
This all works (despite the duplicates), but if I try to do this:
 
        DETAILS: ORDER (any field)
                       (B3.anyfield)
 
I get "Unknown Database Connection Error".  I have tried changing the join types with no success.  I am too much of a newbie to conceive of why my database links are making this report impossible.
 
Any help GREATLY appreciated!  This is for an immensely important report for my organization.
 


Edited by JFinzel - 27 Jul 2012 at 4:56am
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 27 Jul 2012 at 5:10am
We ran into an issue where the table name was a reserved work (Order?), we aliased the table and now it works fine.  Just a thought.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.