# Crystal Reports and Clarion

**URL:** <https://clarionhub.com/t/crystal-reports-and-clarion/6671>\
**Category:** questions\
**Tags:** mssql, report\
**Created:** [October 12, 2023, 9:33am UTC](https://clarionhub.com/t/crystal-reports-and-clarion/6671 "2023-10-12T09:33:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![edo1403](https://clarionhub.com/letter_avatar_proxy/v4/letter/e/46a35a/32.png) [@edo1403](https://clarionhub.com/u/edo1403)\
**Post date:** [October 12, 2023, 9:33am UTC](https://clarionhub.com/t/crystal-reports-and-clarion/6671/1 "2023-10-12T09:33:16Z")

</div>

Does anyone has positive experience with connecting CrystalReports on two SQL server databases.  
Clarion needs to connect to traffic , yearly data in first database , and linked table is in another SQL server database.  
I already have experience with CrystalReports and ODBC connectors through CrystalClear class.  
Any guide or example ?

Thanks

---

<div class="post-metadata">

**Author:** ![Rick\_UpperPark](https://clarionhub.com/user_avatar/clarionhub.com/rick_upperpark/32/346_2.png) [@Rick\_UpperPark](https://clarionhub.com/u/Rick_UpperPark)\
**Post date:** [October 12, 2023, 2:26pm UTC](https://clarionhub.com/t/crystal-reports-and-clarion/6671/2 "2023-10-12T14:26:06Z")

</div>

I would do this on the server. Write a view or stored procedure on SQL server database 1 that joins the data from both databases however is required. Then use Crystal to access that view/store proc.  
Keeps the double connection complexity out of Crystal’s side of things.

---

<div class="post-metadata">

**Author:** ![Jock](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e68b1a/32.png) [@Jock](https://clarionhub.com/u/Jock)\
**Post date:** [October 12, 2023, 6:53pm UTC](https://clarionhub.com/t/crystal-reports-and-clarion/6671/3 "2023-10-12T18:53:59Z")

</div>

Yep. That way you can also verify the data on it’s own, massage it as needed before moving it in to Crystal

---

<div class="post-metadata">

**Author:** ![edo1403](https://clarionhub.com/letter_avatar_proxy/v4/letter/e/46a35a/32.png) [@edo1403](https://clarionhub.com/u/edo1403)\
**Post date:** [October 13, 2023, 11:52am UTC](https://clarionhub.com/t/crystal-reports-and-clarion/6671/4 "2023-10-13T11:52:31Z")

</div>

Elegant solution for new project . In our case , there are hundreds Crystal reports . We thought , in report call to after " SetAllTablesLogOnInfo " cheaply redirect one table to "SetTableLogOnInfo(‘LinkedTable’,clip(GLO:server),clip(GLO:database),clip(GLO:user),clip(GLO:PASSWORD2),true) ".  
There is old one OCX topic  
?CrystalControl{‘ReportFileName’}=vsu3.getexepath() & ‘test00.rpt’  
! ne valja ?CrystalControl{‘PrintFileName’}=vsu3.getexepath() & ‘test00.rpt’  
?CrystalControl{‘WindowState’}=2  
?CrystalControl{‘WindowControls’}=true  
?CrystalControl{‘WindowControlBox’}=true  
?CrystalControl{‘WindowAllowDrillDown’}=true  
?CrystalControl{‘WindowShowRefreshBtn’}=true  
?CrystalControl{‘WindowShowSearchBtn’}=true  
?CrystalControl{‘WindowShowPrintSetupBtn’}=true  
?CrystalControl{‘WindowShowGroupTree’}=true  
?CrystalControl{‘ProgressDialog’}=True  
?CrystalControl{‘Destination’}=0 !0=window  
?CrystalControl{‘DiscardSavedData’}=1  
?CrystalControl{‘CopiestoPrinter’}=1 !Copies  
X#=?CrystalControl{‘PrintReport’}

It works with flat tables , but don’t have full set of properties ( SQL Server and ODBC) .  
May be someone has whole list ?
