Solved

Looking to add SQL Query to a crystal Report.

Posted on 2014-11-12
4
153 Views
Last Modified: 2015-02-12
Looking to add below SQL query to crystal report.

select substring(messagetrackeddata, PATINDEX('%=%', MessageTrackedData)+1, (PATINDEX('%;Header%', MessageTrackedData)-PATINDEX('%=%', MessageTrackedData))-1)
from outboundx12messagelog where outboundx12messagekey = 589317
0
Comment
Question by:JDCam
4 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 250 total points
ID: 40437867
Is this to an existing report?

You can build reports based on a Crystal Command.
When you select the data source choose the ADD COMMAND
Enter the SQL
Crystal will run the SQL before the report opens

mlmcc
0
 
LVL 18

Assisted Solution

by:vasto
vasto earned 250 total points
ID: 40437905
You can create also a view

select substring(messagetrackeddata, PATINDEX('%=%', MessageTrackedData)+1, (PATINDEX('%;Header%', MessageTrackedData)-PATINDEX('%=%', MessageTrackedData))-1)

Open in new window


and add it o the report
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

680 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