home     about    news     books     forums     contact us
Add RSS Feeds to your site
 Front Page 
 Report Design
 Report Integration
 Sample Reports
 Sample Code
 Tips, Tricks & Techniques
 News & Reviews
 Books
 Tutorials
 From the Editor
 Crystal Reports.NET 2005


 Crystal Developer Newsletter



Subscribe
Unsubscribe
 From the Editor
New look for Crystal Developers Journal

 Sponsored By:



 



 

 
 
 
Tutorial: Setting up an ODBC Data Source

By David McAmis
Tue, 23 Mar 2004
  

Email this article
Printer friendly page

Most databases are accessed through ODBC, and you will need to set up an ODBC driver before you can report from your database. In this tutorial, we are going to set up an ODBC driver for the sample Access database that ships with Crystal Reports 10 and then use it to create a report.

Note: These instructions are for Windows XP. If you are using Windows ME/2000, consult your system administrator for ODBC setup instructions.

Step-by-Step
1. Open the Windows control panel and open Administrative Tools and then Data Sources (ODBC) to open the ODBC Data Source Administrator.

2. Select the System DSN tab and then click the Add button

3. In the next dialog box, scroll down the list and select Microsoft Access (.mdb) as the data source type.

4. Using the dialog box that opens, enter a name for your data source. In this example, enter My Data and use the Select button to locate and select the sample Xtreme database that ships with Crystal Reports (usually located under c:\Program Files\Crystal Decisions\Crystal Reports 10\Samples\En\Databasesxtreme.mdb).

Note: Crystal Reports ships ODBC drivers for the following databases: Oracle, Informix, Sybase, DB2, SQL Server, FoxPro, and SQL*Base. For more information on configuring these drivers, consult the help files that reside in the /Windows/System32/ subdirectory, prefixed by CR (for example, CRSYB14.HLP).

5. Click OK to accept your changes. Your new data source should now appear within the ODBC Administrator, under System DSN.

6. Exit the ODBC Administrator and open Crystal Reports from the Start menu.

7. Select File | New and select the Standard Report Expert.

8. On the Data tab of the Standard Report Expert, expand the folder marked Create New Connection to see a list of available data sources. Expand the folder marked ODBC(RDO)

9. Select the data source you just created and click Finish. The tables from your data source will be listed.

9. Select the tables, fields, and so on that you want to see in your report, complete the report expert, and preview your report.

Summary
Crystal Reports provides a number of data access methods, the most popular being ODBC. Before you can create a report through an ODBC connection, you first need to set up an ODBC driver that points to your database. With that done, all of the data held within the database is available for reporting


Applies to: Crystal Reports 10



© Copyright 2006 by Crystal Developers Journal

Top of Page


  

  
Latest Headlines
 Report Design
Improving Performance of Dynamic Cascading Parameters
Dynamic Cascading Parameters in Crystal Reports XI
Creating Accessible Reports
 Report Integration
Creating nested Xcelsius Dashboards
Quick and Easy Links to Reports, Dashboards and more
Getting Started with Crystal Reports XI R2 Development
 Sample Reports
Sample Report: Simulated Cross-Tab
Sample Report: Specified Grouping
Sample Report: Formula Samples
 Sample Code
Sample Applications for C#
Passing Parameters with VS.NET and CE
Sample Code: Crystal Enterprise and JSP
 Tips, Tricks & Techniques
Tip: Set your default formula language in Crystal Reports XI R2
Tip: Using Summary Information in Crystal Reports
Tip: Inserting a User Name on Reports
 News & Reviews
Business Objects adds "Vision" to Crystal Product Family
Crystal Reports for Eclipse Available
Business Objects acquires Infomersion
 Books
Crystal Reports XI for Developers
Professional Crystal Reports in Visual Studio.NET
Second Edition
CRCP Crystal Reports Certified Professional All-In-One Exam Guide
 Tutorials
Tutorial: Creating Reports from Salesforce.com Data
Tutorial: Creating Interactive Dashboards with Crystal Xcelsius
Tutorial: Working with Dynamic Parameter Fields
 From the Editor
Crystal Reports for Eclipse makes it's Rational Debut
Recap: Insight Americas 2006 - Day 3
Recap: Insight Americas 2006 - Day 2
 Crystal Reports.NET 2005
Upgrading to Crystal Reports in Visual Studio.NET 2005
Getting started with Crystal Reports.NET 2005
Reviewers Guide for Crystal Reports in Visual Studio.NET 2005

 

 
Copyright© 200
6 | Crystal Developers Journal is an independent publication. It is not owned or controlled by Business Objects. Crystal Developers Journal is the trademark or registered trademark of CXM Media. Crystal Reports, Crystal Analysis, Crystal Enterprise, and Crystal Decisions are the trademarks or registered trademarks of Business Objects, Inc. All other trademarks referenced are the property of their respective owners.