See sql query from crystal report without crystal report
see sql query from crystal report without crystal report
Hi,
Depends on datasource type but you could have a look at ODBC trace or if you have access to the SQL Server you could use profiler to monitor the session.
Regards,
Craig
And this will only be of use if you know which Server/Insstance/Database the Report is connecting to...
Please click "Mark As Answer" if my post helped. Tony C.
Similar Messages
-
Retrieve SQL Query from report without RAS.
We have a fat client application which uses Crystal Reports. We upgraded from the RDC/ActiveX viewer to the .Net SDK/.Net Viewer. One feature that we miss is that we used to read the SQL Query that a report used and wrote it to our log file. This helped with debugging and with troubleshooting problems in the field.
Since we only deploy the freely distributable Crystal Reports model and I don't think that RAS falls into this category is there a way which we can read the SQL Query from a report? If not, could you add this to a list of requested features for future versions.
I understand why you removed the ability to set the SQL query, but simply reading it does add value. Maybe it is difficult for you to return this before the report is run in which case giving us the ability to read the value after the report has been run would also be fine.
Alternatively some sort of event that is fired each time a query is executed would also be helpful as this would allow Crystal Reports clients to monitor SQL from sub-reports. You could even build a robust logging mechanism which could report additional information (i.e. number of rows returned, formula evaluations, or anything related to report execution). All of this would make troubleshooting report issues easier for those of us who use Crystal Reports.Need to know what version of CR you are using?
You can use InProc RAS, it comes with CR and is distributed with the runtime files.
If you are using CR Basic or the version that comes with Visual Studio .NET then no this will not be added to that product line. It is basic functionality only. You will need to upgrade to a Developer version of Crystal reports to take advantage of the the RCAPI features as well as more general API's.
There is logging for our DB drivers but the log files get very large. If you use ODBC then you have the option to turn on tracing also. Using RAS you don't need to turn on logging as you can get the SQL. This won't be added either.
Thank you
Don -
SQL query to get the without SCCM agent for a Server
Hello every one,
Can I get the SQL query for a server without a SCCM agent .Here you go!!
Add the version for windows 2012 server if you have them as well in your environment
v_R_System.Netbios_Name0
,v_R_System.Full_Domain_Name0
,v_R_System.User_Name0
,case
When v_R_System.Operating_System_Name_and0 LIKE N'%Server 6.1'THEN 'Windows Server 2008 R2'
When v_R_System.Operating_System_Name_and0 LIKE N'%Server 6.0'THEN 'Windows Server 2008'
When v_R_System.Operating_System_Name_and0 LIKE N'%Server 5.2'THEN 'Windows Server 2003 R2'
ELSE 'Unknown Version' END AS 'OS version'
FROM
v_R_System
WHERE
v_R_System.Operating_System_Name_and0 LIKE N'%server%' and v_R_System.Client0 is null
Kindly mark as answer/Vote as helpful if a reply from anybody helped you in this forum. Delphin -
How to transport SQL Query from SQVI Tcode?
Dear Friends,
Can any one tell me how to transport SQL Query from <b>SQVI</b> Tcode.
Full Points will be rewarded.
Thanks & Reagrds
Ravigo to sqvi tool .....
select u r query name ......in the menubar ....quickview....> additianal functions.......>generate program
after doing generate program ....go to again same menu path as i have mentioned above [quickview....> additianal functions.......>display report name it will give the report name of the select query ..........copy the report name and give it abap editor[se38] u will get u r query program......with all authority checks.....
in start of selection event of u r program u will find u r select query.
reward points if helpful -
Help with translating SQL query from SQL Server syntax to Oracle syntax
Hi,
is it someone that can help me translate following SQL query from SQL Server syntax to Oracle syntax.
SELECT ID,
[LMT(MTR)] = MAX(case when TYPE = 'LMT' then VALUE end),
[AAD(KGM)] = MAX(case when TYPE = 'AAD' then VALUE end),
[VOL(MTQ)] = MAX(case when TYPE = 'VOL' then VALUE end)
FROM yourtable
GROUP BY ID
Your help is highly appreciated, thanks in advance.Like this,
SELECT ID,
MAX(case when TYPE = 'LMT' then VALUE end) LMT_MTR,
MAX(case when TYPE = 'AAD' then VALUE end) AAD_KGM ,
MAX(case when TYPE = 'VOL' then VALUE end) VOL_MTQ
FROM yourtable
GROUP BY ID-Arun -
I have photos in a DVD. In order to visualize them in iPhoto, must I necessarily import them? Can't I see the pictures from the media without importing? If not, is there any application with this functionality? I need an app that allows me to navigate through the photos without selecting all of them. I realy dont't like pre-visualization for photos...
In order to visualize them in iPhoto, must I necessarily import them?
iPhoto is a Database. Before it can work with any data it must be imported to the database, so yes it is necessry to import them.
Can't I see the pictures from the media without importing?
See above.
If not, is there any application with this functionality?
Hundreds. Any image viewer will do the job. On your Mac the Finder has QuickLook and there is the Preview app as well. Online you can download any of these:
http://www.macupdate.com/find/mac/image%20viewer -
Where and how do I get the SQL Query used by the Microsoft Generic Report Library - Alerts?
Background:
I'm tasked with the following: I need to create a new Report and the SQL
The two canned reports that I can pattern after are: Microsoft Generic Report Library
- Alerts (there is also an alert detail report that can be chosen within the alert report that we may want to use instead)
- Most Common Alerts
I'm trying to do this:
Add another parameter to search on customfield3.
It should be able to report on all alerts that were assigned to the specific team for the time period along with the top 10 (most common alerts) assigned to the team for the time period.
Choose as the objects (group) all servers, but Imay need to adjust the report to just look at all alerts without having to provide objects or a group
The struggle I'm having is: I know SQL. I know how to create an RDL file.
But Where are the RDL files for the canned reports so I can modify the canned RDL and modify its SQL and forms?
What is the SQL/ where can I find the SQL used for the Generic Report Library -> AlertsEasy but you need to extract it from Microsoft Generic Report Pack.
So.. the procedure is as follows:
1) You export and unseal Management Pack from your SCOM using
Boris's OpsgMgr tools (MPViewer
2.3.3)
2) Ok you've got unsealed xml, now the tricky part, use
MpElementsExtract tool, example of usage:
MPElementsExtract.exe <MP.xml> /ex /destination:<destination>
That you way you get several folders out of mp:
DWScripts, DWSubScripts, LinkedReports, ReportResources, Reports
Take a look into content of first 2, there will be pure sql scripts, and rdl's are in Reports folder :)
Other way is to just use SQL profiler and catch SQL query while generating report.
--- Jeff (Netwrix) -
How to run a sql query from a button in apex 3.0
Hi,
I am brand new and went through/installed the obe project tracker. I have need to create a simple application that displays a result (2 fields, name and license number) based on two parameters (dob and login id) which all are stored in 1 table in the database. I could this very simply in VB or VB.net but have no idea how to do it in apex.
Please provide guidance,
Thank you,
TomHi Tom,
Sounds like a report region will satisfy your requirements.
Create a new report region on one of your pages.
Choose SQL Report and give the region a title.
When you get to the "Enter SQL Query or PL/SQL function returning a SQL Query:" step, type:
SELECT name, license_number
FROM <insert_your_table_name_here>
WHERE dob = :P<n>_dob
AND login_id = :P<n>loginid(replace <n> with the page number that the region is on and use your own table name).
Don't try to run the page yet - it will give 'No data found'
Now, go back to the Page Definition screen and add two items in the region you just created - call them P<n>dob and P<n>login_id
Then, create a button in the same region (to be displayed amongst the region's items) - call it P<n>_GO and click 'Create' (take all the other defaults).
Now you can run the page, put some values into the fields and click go.
If you want to get fancier, you can change the text items to select lists etc. - let us know if you need help with that.
Hope this helps,
Bryan. -
API to retrieve SQL query from a Webi Document
Hi,
Which API can be used to retrieve the Oracle SQL query for a webi report using BO XI web services SDK? The report is connected to a Oracle database in the backend.
A sample code is greatly appreciated.
Thanks a lot!
LizHi Liz,
The libraries for the Enterprise and Report Engine SDKs are included with your Enterprise installation and the location will vary with each version:
XI Release 1 and Release 2
XI Release 1 (assuming it's installed on C:\):
- Windows: C:\Program Files\Common\3.0\java\lib
- Linux/UNIX: (INSTALL_DIR)/java/lib
XI Release 2:
- Windows: (INSTALL_DIR)\Business Objects\Common\3.5\java\lib
- Linux/UNIX: (INSTALL_DIR)/java/lib
There are quite a few JAR files in this location, but you should only need the following set for Enterprise & REBean with XI Release 1 or XI Release 2:
From the java\lib directory
- boconfig.jar
- cecore.jar
- celib.jar
- ceplugins.jar
- cereports.jar
- cesession.jar
- ceutils.jar
- cexsd.jar
- corbaidl.jar
- ebus405.jar
- jtools.jar
- keycodeDecoder.jar
- rebean.common.jar
- rebean.fc.jar
- rebean.jar
- rebean.wi.jar
- rpoifs.jar
- Serialization.jar
- URIUtil.jar
- wilog.jar
From the java\lib\external directory:
- Concurrent.jar
- freessl201.jar
- icu4j.jar
- jaxrpc.jar
- jsafe.jar
- log4j.jar
- pullparser.jar
- saaj.jar
- sslj.jar
- xbean.jar
- xercesImpl.jar
- xml-apis.jar
BusinessObjects Enterprise XI 3.0
- Windows: (INSTALL_DIR)\Business Objects\Common\4.0\java\lib
- Linux/UNIX: (INSTALL_DIR)/java/lib
You can find a list of required JAR files in the [XI 3.0 Enterprise SDK Developer Guide|https://boc.sdn.sap.com/node/7298].
Cheers,
Parin
Edited by: Parin Patel on Jun 25, 2008 11:03 AM -
Oracle SQL Query from EXCEL 2007 with prompt
Hello,
I have many excel reports where I am pulling information from our Oracle 9 db through Excel using the following method:
http://blog.mclaughlinsoftware.com/microsoft-excel/how-to-query-oracle-from-excel-2007/
http://blog.mclaughlinsoftware.com/2009/11/30/sql-query-in-excel-2007/
However, I am having trouble when I try the following query due to the prompt:
SELECT
IM.ITEM_GROUP,
IM.ITEM,
IM.DESCRIPTION
FROM
LAWSON.ITEMMAST IM
WHERE
IM.ITEM = '&ITEM';
Does any one know how I can connect a prompt to an excel cell and then pass the query on to Oracle, or have a PL SQL prompt work from Excel?
Thanks,
BenThe 'prompt' as you call it is a sqlplus feature, so does not belong to the SQL language
You would need to write a stored procedure returning a resultset.
create or replace procedure foo(rc in out sys_refcursor, p_item) as
begin
open rc for
'SELECT
IM.ITEM_GROUP,
IM.ITEM,
IM.DESCRIPTION
FROM
LAWSON.ITEMMAST IM
WHERE
IM.ITEM = '||p_item;
end;
and call that using ODBC or asp.net
Obviously this is profusely documented.
Sybrand Bakker
Senior Oracle DBA -
Export SQL query from link or button
I want to list several 'canned' SQL queries on one page as buttons or links; and have the result of selection be an immediate extract/download to excel of the data.
How can I best do this?
I suppose I could create separate hidden regions with their own reports that could somehow be referenced in the link. I would like to avoid doing all that, if I can create a package or process that includes the SQL query and that can be called in the link.
Thanks in advance,
Rich
Edit:
Found 'Report Query' functionality in Apex v3.2.1: However I am unable to get this to work; tells me my printer is not set up. I don't want to print the detail, I want it to be downloaded into excel... I don't have a printer configured - & don't want to. The URL provided for download as attachment is:
f?p=&APP_ID.:0:&SESSION.:PRINT_REPORT=reportname
I also have no page 0.
Help?
Edited by: rdarlin2 on Sep 16, 2011 11:14 AMrdarlin2 wrote:
I want to list several 'canned' SQL queries on one page as buttons or links; and have the result of selection be an immediate extract/download to excel of the data.
How can I best do this?
I suppose I could create separate hidden regions with their own reports that could somehow be referenced in the link. I would like to avoid doing all that, if I can create a package or process that includes the SQL query and that can be called in the link.10,000ft overview of one way to do this:
<li>Create a package with private functions that return the SQL for each "canned query", and a public switch function that returns a query function based on an input parameter:
create or replace package qry
is
function selector (p_req_qry in varchar2) return varchar2;
end qry;
create or replace package body qry
is
function emp_qry return varchar2
is
begin
return 'select * from emp';
end emp_qry;
function dept_qry return varchar2
is
begin
return 'select * from dept';
end dept_qry;
function selector (p_req_qry in varchar2) return varchar2
is
begin
return
case p_req_qry
when 'EMP' then emp_qry()
when 'DEPT' then dept_qry()
end;
end selector;
end qry;
/<li>Create 2 pages
<li>On page 2 create a standard SQL report region of type SQL Query (PL/SQL function body returning SQL query):
Region Source
return qry.selector(:request);*(o) Use Generic Column Names (parse query at runtime only)*
Maximum number of generic report columns
number of columns in your biggest query
Report Template
export: CSV
<li>On page 1 create an HTML region (or use an APEX list) with a link for each query, where the REQUEST component of the URL is the parameter used to select a query in the <tt>qry.selector</tt> function:
<ul>
<li><a href="f?p=&APP_ID.:2:&SESSION.:EMP">Emp</a></li>
<li><a href="f?p=&APP_ID.:2:&SESSION.:DEPT">Dept</a></li>
</ul>However this begs the question: Why bother? What's Excel got that APEX hasn't? -
Sql query from Oracle/Hyperion
Hi, guys. my problem is:
My work environment is windows 2003 server sp2 on both servers, to have a Hyperion System 9.2 and the other Hyperion System 9.3.1. I have an Oracle ODBC server to fetch data.
When you load data from an Oracle database (version 9.2.0.5) to an Essbase cube through a rule file sql Hyperion System with version 9.2 everything works fine, I am all the necessary information. But when I try to do the same (in another server, version 9.3.1 Hyperion System) with the sql query does not do well. What is the problem. the bag is a bad version or set the ODBC
please help me
Thank you very much.
Alberto.without knowing more information, I'm going to guess the probem is with the ODBC driver. Try using the SQL in a tool like toad to use the ODBC to query the data. That will tell you if it is an ODBC issue or not.
-
It is possible to execute a SQL query from OMBPlus?
We have some simple SQL scripts we'd like to be able to incorporate into our existing TCL scripts, instead of having to run them outside of OMBPlus in sqlplus. Is is possible to run a SQL SELECT query from OMBPlus and/or TCL? And get a result set back to iterate through?
Thanks,
Jim C.You can execute SQLPlus from OMB or just get down and use JDBC to execute the SQL, see others posts on forum such as below;
How to run SQL from OMB+
Cheers
David -
Passing variables to SQL query from checkboxes
Hello,
I have a cursor which gets different ids from an id table. The cursor is something like this:
CURSOR id IS
SELECT distinct id_ FROM I
order by id_;I then iterated through the cursor to made checkboxes to choose multiple ids:
FOR i IN id
LOOP
htp.p('<tr>
<DIV align="left"><td><input type="checkbox" name="option" value=ID '||i.id_||'> </td></tr>');
htp.p('<font size="'||3||'">'
ID'||i.id_||'</a></font>'
||'</a>' );
htp.br;
END LOOP;The values of the checkboxes were extracted by:
var ids ="";
for (var j = 0;j < document.form.option.length; j++)
if (document.form.option[j].checked)
ids = ids + document.lf.option1[j].value + "\n";
}I have the following SQL query:
Select * from Persons where Identification = ...; I would like to use to pass the values of the checkboxes (i.e. the variable ids ) to my SQL query. I want the user to select multiple values for the checkboxes. For example, they can select 4 and 3. I want to pass the difference to my SQL query....that is, I want the id to be 1. So, I want this:
Select * from Persons where Identification = 1; Any ideas how to do this? Also my code above is in different procedures within a single package.Your requirement is not very clear. What happens when you select 3 checkboxes? What will be the difference between them? How do you pass that information to the oracle report?
-
Problems witth sql query from servlet
hi,
I have a servlet that accesses a MySql database to get the ID of an employee based on employee name (grabbed from session). My problem is that :
empName contains a whitespace (String empName ="abc xyz")
When I try to give this to the query:
String query ="select id from user where eName =" +empName;
Now I keep getting a "SQL syntax error:please check your syntax to use near 'xyz' at line 1." here which I think is because of the white space in the empName. ( I tried dummy empName without spaces).
How do I get around this ..I cannot keep the names in the database without any space since they are being dislpayed in other pages. I tried doing a trim() on the empName before passing it to the sql query but I keep getting the same error.
Is there any way I could query the DB with a white space in the empName?
Thanks,
G.
Is there any way toSecond of all: Use prepared statements:
like:
insertStatement = "SELECT ? FROM ? WHERE name=?";
stmnt = _sql_connection.prepareStatement(insertStatement);
stmnt.setString(1, "name");
stmnt.setString(2, "table");
stmnt.setString(3, "test");This is more secure. If you do it the above way i could enter some thing like
*; DROP TABLE *; --
You dont want a user to kill your whole db, dont you?
so your querry String query ="select id from user where eName = '" +empName +"'"; will end up:
select id from user where eName = '*'; DROP TABLE *; -- 'where everything after -- is ignored because this is a comment flag.
Maybe you are looking for
-
Adobe Photoshop Quite Unexpectedly photoshop cc Please Help Me solve this Problem
Please Please Help Me Please
-
What is the difference between APPLE TV models 30850MD199LLA and 300024854433?
What is the difference between APPLE TV models 30850MD199LLA and 300024854433?
-
Problem with add fields in KOB1
Hi, I need to add some fields in the KOB1 report for Display Actual Cost Line Items for Orders, i have tried change the Customizing include CI_RKPOS with the new fields and the includes ZXKAEPTOP, ZXKAEPU01 from EXIT_SAPLKAEP_001. The problem is that
-
How to handle Events in OO abap.
Hii all as im new to SAP and ABAP , i want to know , what are events all about and how to handle events? Like how to guide double click to call a transaction , or to create a hot sopt and then , calling the transaction........... Please Help.
-
Hi guys, I need sales averages from a COPA table, the problem is that the query that reads the averages is in a loop for each employee that get comission from sales (500). So the programs runs in 4 or 5 hours. Here is the code. loop at ti_pa0001. S