Solved

Looking to add SQL Query to a crystal Report.

Posted on 2014-11-12
4
171 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
[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
4 Comments
 
LVL 101

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

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

Question has a verified solution.

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

'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

632 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