Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: SQL? Post Reply Post New Topic
Author Message
KSAnalyst
Newbie
Newbie
Avatar

Joined: 04 Mar 2008
Location: United States
Online Status: Offline
Posts: 29
Quote KSAnalyst Replybullet Topic: SQL?
     Posted: 29 May 2008 at 9:48am

Good morning Forum Friends.

Is it possible to embed raw SQL into Crystal Reports XI?  If so, what type of SQL does Crystal accept? and Where would one embed it?

 

Thanks,

IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 29 May 2008 at 12:11pm

Yes, you can.  Where it goes depends on what you're trying to do.

If you want to just work with a field that's in your tables, you can use a SQL Expression.  If you want a whole Select statement, in the Database Expert you may be able to use "Add Command".  This is available for some databases (Client/Server databases like MS SQL, Oracle, etc. but not file-based dbs like Access...) as the first option below the connection (above the tables) after you connect to the database.  However, you can't use BOTH SQL Expressions and Add Command in the same report.
 
-Dell
IP IP Logged
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