Solved

SQL meet Crystal

Posted on 2011-03-25
5
292 Views
Last Modified: 2012-06-27
Need a general walkthrough of how to connect crystal reports to sql server. Im running windows 7 with crystal reports XI release 2 and Im trying to connect to the sql server 2008. Ive tried a few things but did not seem to be working. Hoping someone can give me a general idea of what it takes to make them talk to each other.

thanks
0
Comment
Question by:wjhutchins
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 7

Expert Comment

by:lundnak
ID: 35215454
Have you tried setting up an ODBC DSN for the SQL Server instance?  Then modify the Crystal Report to use this ODBC DSN.
0
 

Author Comment

by:wjhutchins
ID: 35215467
Nope. Give me the detials
0
 
LVL 7

Accepted Solution

by:
lundnak earned 500 total points
ID: 35215528
I took the following steps from another web post.  The method will be the similar.

http://social.msdn.microsoft.com/Forums/eu/vscrystalreports/thread/cd02d47f-08ec-4397-bd1a-6d2b127c79cc

1) Create a FileDSN and select the 'MyDB' database
   Administrative Tools->Data Sources (ODBC)
   Select File DSN
   Create a new file 'MyDB.dsn
   Server: .<<SQL SERVER>>
   Default database: 'MyDB'
   Save the file :MyDB.dsn

2) Create a new report.
      Select ODBC (RDO)
      Select FindFileDNS: browse to MyDB.dsn
      Select finish and you can then select your tables.

      Alternate:
      Select OLE DB (ADO)
      Select SQL Native Client
      Select server <<SQL SERVER>>
      Select Integrated security
      Select database 'MyDB'
      Select finish and you can then select your tables.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 35215580
What have you tried?

The easiest way is to use OLEDB to connect to the server

Open Crystal
Start a NEW report with the wizard
Click CREATE NEW CONNECTION
Choose OLE DB (ADO)
In the popup find Microsoft OLE DB for SQL SERVER
Click NEXT
Enter the server name or select from the dropdown
Enter a userid and password or choose INTEGRATED SECURITY
Select a DATABASE
Click NEXT
Select the tables

If you want to use ODBC you set up the connectionthrough the Control Panel.  

mlmcc
0
 

Author Comment

by:wjhutchins
ID: 35215604
Thanks worked like a charm
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have a large data set and a SSIS package. How can I load this file in multi threading?
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

738 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