Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: Using a CSV file for Crystal Post Reply Post New Topic
Author Message
Pari
Newbie
Newbie


Joined: 25 Mar 2010
Location: United Kingdom
Online Status: Offline
Posts: 2
Quote Pari Replybullet Topic: Using a CSV file for Crystal
    Posted: 25 Mar 2010 at 11:32pm
Hi,
 
I am looking into the feasability of using Crystal Reports to replace Access as a way of reporting on data. Currently we make use of .csv files that we import into Access but the problem is the reports can take a long time to complete and also the presentation of the reports would off course be a lot better in Crystal.
 
So my question is can I import the CSV files into Crystal Reports to then run my queries like I do in Access and also is there any benefit in importing the data into SQL to then use Crystal to run the reports from. Although as far as I am aware importing into SQL appears to be a very difficult job.
 
Regards. Pari.
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 27 Mar 2010 at 9:46pm
Importing CSV files into SQL Server actually is pretty easy.  Using Crystal for data from a file instead of a database can be very slow - especially if it's a large dataset.  Crystal has to do ALL of the work to process the data instead of letting the database do it.  I don't think you have the option to write a command against a CSV file like you do when you're connected to the database.
 
-Dell
IP IP Logged
Pari
Newbie
Newbie


Joined: 25 Mar 2010
Location: United Kingdom
Online Status: Offline
Posts: 2
Quote Pari Replybullet Posted: 29 Mar 2010 at 12:03am
Thanks Hiffy,
 
I was advised that importing data from CSV to SQL would require me to write a script. As I am no programmer is there an easy way to do this?
 
Regards. Pari.
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 30 Mar 2010 at 4:05am

If you have access to SQL Server Management Studio, it has an import function that will allow you to create a new table or append to an existing table.  Right-click on the database you want to import to, select Tasks, and then select Import Data.  Once you've configured this for the first time, you can save it as an SSIS package that can be run automatically as needed.  (NOTE:  I'm using SQL Server 2005 - I'm not sure how this process works for any other version.)

-Dell

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.