Solved

SQL meet Crystal

Posted on 2011-03-25
5
277 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
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.

930 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

14 Experts available now in Live!

Get 1:1 Help Now