Solved

Access data for reports directly from SQL or via COM+???

Posted on 2006-06-22
4
394 Views
Last Modified: 2012-08-13
Hi please can someone tell me which way is best -

I have an program written in VB which has uses dll's in a COM+ application to access data stored in SQL. I am also using  functions in the dll's to get data used in Crystal reports. The problem with this is every time i need a new report i need to add a new function to the dll to get the new data then recompile and redistribute the COM proxy application (v. painfull).

Instead should i get the crystal reports to access the data directly from SQL, if so what are the possible pitfuls?

Many thanks in advance,

Jim
0
Comment
Question by:ocschur
  • 2
4 Comments
 
LVL 7

Expert Comment

by:assyst
Comment Utility
ur application is using odbc for database connection?
0
 
LVL 1

Author Comment

by:ocschur
Comment Utility
ADO - OLEDB
0
 
LVL 7

Accepted Solution

by:
assyst earned 400 total points
Comment Utility
You can populate data directly from SQL. You can use the crystal report control to call the report from the VB application.  It will be faster. You can also pass parameters to display vales from your applications and specify record selection formula to fetch the records based on conditions.

Try...
0
 
LVL 5

Assisted Solution

by:nakul_vachhrajani
nakul_vachhrajani earned 100 total points
Comment Utility
I agree with "Assyst" - when you want to fetch data in Crystal reports, Access data directly from SQL Server. As "assyst" rightly put it, it's faster and easy.

I have one more suggestion in order to simplify your reports. Write views on the SQL Server so that all you now need to do is fire a select on the view from Crystal Reports, as if you are using a single table! - This would be even faster!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now