Query SQL database inside XSL

Do you guys know how can I query SQL database select records and input them to XSL file?
Let me know this is urgent.

Is there an efficient way of doing this, rather than
hardcoding all the less than,greater than lines?Sounds like you need to read this:
http://java.sun.com/webservices/docs/1.1/tutorial/doc/index.html

Similar Messages

  • BSP to query Sql database?

    Just curious to find out if this is an option..
    We web AS 6.40, can we write in ABAP to query data from a SQL database?
    Thanks in advance..
    Vince

    Yes.
    if you can eloborate little more on what you are trying to do, we can be helpful.
    Regards
    Raja

  • Query SQL database with Crystal

    I have a crystal report that is a production work order from our ERP system Macola ES.  The user enters the work order in Macola then prints it.  The user will input a work order number and the report will populate multiple fields from that work order.  To be specific I am trying to add a field on the report that will display the most recently entered batch number for the item number that is in the work order.
    item_no = Field 7 in the report
    The t-sql below above achieves what I would like to display on the report when searching the database.  The text after /* and before */ are my comments.
    /* Search for the most recent order entered in the ppordfil_sql database
    where the item number equals Field7 */
    select top 1
    cus_name /* Batch number field */
    from dbo.ppordfil_sql
    where ppordfil_sql.item_no = "Crystal Report Field 7"
    order by entered_dt desc

    Yes Macola is partner of ours.  However, they are not going to write the Crystal Report for us.  The question I am asking is how I can query an SQL database to display and create a query of the SQL data in my report.  I know how to write the t-sql as shown above.  The field "Crystal Report Field 7" is the field I would like to base my query off.  I was hoping someone could point me in the right direction with using a combination of a command object and a parameter.

  • Query SQL database using JSF problem!! Using CachedRowSet

    I'm using JSF and want to query data from SQL by using CachedRowSet like this,
    rowset.setCommand("SELECT * FROM dbo.SomeTable WHERE SomeField='"+ xyz +"'");
    then check if the record does exist by using
    *if(rowset.next()) {/ do something with the retrieved data}*
    but i get SQLException telling that execute() never called.
    Anyone can tell me what i'm missing? or is there any better way to check the existence of a record ?
    Thanks in advance :-)

    Hi grzegorz,
    1. If your sap application server is unix/aix
      (and not a microsoft OS),
    2. then this kind of secondary databse connection,
       to MS SQL (which is microsoft system),
       is at present not possible.
      (BCOS the required system files, for such
       cross - platform connection is not delivery by sap)
    regards,
    amit m.

  • Build dynamic SQL query in Database Adapter.

    Hi All,
    I have a requirement to build dynamic sql query at Database Adapter.
    My BPEL process is getting search spec as input from siebel. I need to process this searchspec in BPEL and need to build the SQL query dynamically at Database Adapter to fetch the records from DB.
    it goes like this....
    1. Sieble Search Spec: city1 OR city2 OR city3 OR city4 .....
    I need to build query as
    select * from S_ADDR_PER where city like 'city1' OR city like 'city2' OR city like 'city3' OR city like 'city4' ......
    2. Siebel Search spec: city1 AND country1 AND state1....
    I need to build query as
    Select * from S_ADDR_PER where city like 'city1' AND country like 'country1' AND state like 'state1' ....
    3. Siebel Search spec: state
    I need to build query as
    select * from S_ADDR_PER where state like '%state%';
    Is it feasible in Database Adapter? if its Yes.
    Any guidelines to achieve this?
    Thank you
    Chandra

    Hi All,
    I have a requirement to build dynamic sql query at Database Adapter.
    My BPEL process is getting search spec as input from siebel. I need to process this searchspec in BPEL and need to build the SQL query dynamically at Database Adapter to fetch the records from DB.
    it goes like this....
    1. Sieble Search Spec: city1 OR city2 OR city3 OR city4 .....
    I need to build query as
    select * from S_ADDR_PER where city like 'city1' OR city like 'city2' OR city like 'city3' OR city like 'city4' ......
    2. Siebel Search spec: city1 AND country1 AND state1....
    I need to build query as
    Select * from S_ADDR_PER where city like 'city1' AND country like 'country1' AND state like 'state1' ....
    3. Siebel Search spec: state
    I need to build query as
    select * from S_ADDR_PER where state like '%state%';
    Is it feasible in Database Adapter? if its Yes.
    Any guidelines to achieve this?
    Thank you
    Chandra

  • Dynamically Pass sql query in Database adapter

    hi',
    How can we dynamically pass sql query in Database adapter, is there any way, I am using SOA 11G.
    Thanks
    Yatan

    Hi,
    Tried that too. No luck. Gives me this.
    The selected operation process could not be invoked.
    An exception occured while invoking the webservice operation. Please see logs for more details.
    oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'selectUsingIn' failed due to: Pure SQL Exception.
    Pure SQL Execute of select interface_id, property_name, property_value from ( (?) ) failed.
    Caused by java.sql.SQLSyntaxErrorException: ORA-00903: invalid table name
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    Regards,
    Neeraj Sehgal

  • How to connect and query the sql database in mobile application

    Hello,
    Can any one say how to connect the sql database from the j2me application.
    I have got some info that only through servlet or jsp only we can connect the database and from their we should get the info or query in mobile application.
    Is it true? and can i have any sample codes or white paper or guildlines.
    It would be more useful form my project.
    Thanks in advance.
    regards,
    sara

    Hi David,
    According to your description, when you add Windows Azure Mobile Services to a Window Phone 8 app, then store app data in the new mobile service. I recommend you post the related question on the Windows Azure Mobile Services Forums at
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=azuremobile .It is appropriate and more experts will assist you.
    In addition, there are the details about creating a Windows Phone app connected to your mobile service.
    http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-wp8/
    http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-data-wp8/
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • I want to query sql server database from oracle

    i want to query sql server database from oracle
    can anyone help me in this regard

    First of all - you are in the wrong forum.
    Look either for the Database general or search for Transparant / Heterogenous Gateways.
    cu
    Andreas

  • I want to query oracle database from sql server can anyone tell steps 2 fo

    i want to query oracle database from sql server can anyone tell steps 2 followed
    i tried with linked servers but it is throwing errors can anyone hepl in this regard
    The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
    OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].

    First of all - you are in the wrong forum.
    Look either for the Database general or search for Transparant / Heterogenous Gateways.
    cu
    Andreas

  • I want to query oracle database from sql server can anyone tell steps 2 fol

    i want to query oracle database from sql server can anyone tell steps 2 followed
    i tried with linked servers but it is throwing errors can anyone hepl in this regard
    The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
    OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].

    First of all - you are in the wrong forum.
    Look either for the Database general or search for Transparant / Heterogenous Gateways.
    cu
    Andreas

  • How Can I find SQL Query in Database

    Dear Experts,
    How Can I find SQL Query in Database.

    Hi,
    U mena what query got executed in db? u can try V$SQL for it.
    Regards
    Bharath

  • Querying Multiple databases on Azure SQL

    Does anybody know if there is a way to query multiple Azure sql databases in a query?
    I have tested the query on a standard sql server I have setup here and that works fine.
    I believe Azure does not support cross database queries and you have to do an elastic database query.  Any ideas how this works?
    This topic first appeared in the Spiceworks Community

    Hello. We currently have a database cluster that has a WSUS database on it.  We wanted to setup another WSUS server in our environment, is this possible?  I have read some posts saying that there was a 1 to 1 for WSUS DB to SQL Instance
    but those were from 2008 and 2011 and I am wondering if it is possible today.  If not, what would be the recommendation?  Another SQL Instance or just use the Windows Internal Database. 
    There is still a limitation of 1 WSUS to 1 SQL Instance, because the database name is hardcoded to SUSDB. To use multiple WSUS servers on that same cluster will require the installation of an additional instance.
    If that additional server is destined to be a downstream server, though, I would recommend just using the native Windows Internal Database on the local system.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • Help me on CVP class to query a SQL database

    Dear friends,
    I try to create a class extends to Action element. But when I do deploy, it return no result.
    I want this class receive Calling Number and do the query to database (SQL as I test, later if it works I will do for another database). After query I will get Name, Address, Email of this Customer based on Calling Number (ANI).
    Please help to take a look on my program and help me to fix it.
    Thank you very much.
    import com.audium.server.AudiumException;
    import com.audium.server.voiceElement.ActionElementBase;
    import com.audium.server.session.ActionElementData;
    import java.sql.*;
    * This class is called when a standard action has been configured to use a
    * Java class. Since this is a standard action element, it applies to a
    * specific application and does not have a configuration. As a result, the
    * only method needed in this class is the doAction method.
    public class DBLookupStandardAction extends ActionElementBase
    class WhatIGot
    String ANI = null;
    String Name = null;
    String Address = null;
    String Email = null;
    public void doAction(String name, ActionElementData data) throws AudiumException
    Connection conn = null;
    String Name = null;
    String Address = null;
    conn = connectToDatabase();
    String ani = data.getAni();
    WhatIGot whatigot = new WhatIGot();
    whatigot = QueryDatabase(conn, ani);
    Name = whatigot.Name;
    Address = whatigot.Address;
    data.setSessionData("Name",Name);
    data.setSessionData("Address",Address);
    // PUT YOUR CODE HERE.
    private Connection connectToDatabase()
    Connection conn = null;
    try
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    conn = DriverManager.getConnection("jdbc:sqlserver://172.16.3.5:1433;DatabaseName=hcmpt","sa","");
    catch (ClassNotFoundException e)
    e.printStackTrace();
    System.exit(1);
    catch (SQLException e)
    e.printStackTrace();
    System.exit(2);
    return conn;
    /*Query*/
    private WhatIGot QueryDatabase(Connection conn, String ANI)
    WhatIGot WhatIGot = new WhatIGot();
    try
    Statement st = conn.createStatement();
    ResultSet rs = st.executeQuery("SELECT prefixnos, Name, Address, Email FROM customer_info where prefixnos = ANI");
    WhatIGot.ANI = rs.getString ("prefixnos");
    WhatIGot.Name = rs.getString ("Name");
    WhatIGot.Address = rs.getString ("Address");
    WhatIGot.Email = rs.getString ("Email");
    rs.close();
    st.close();
    catch (SQLException se) {
    System.err.println("Threw a SQLException creating the list of blogs.");
    System.err.println(se.getMessage());
    return WhatIGot;

    Thank you Geoff,
    I have made some changes and now it's working fine with SQL database.
    I go forward to Oracle database. But can you show me how can I copy a new library (ojdbc14.jar) to the CVP server:
    - which folder?
    - and how apply it for all other application can use the same lib here?
    waiting for you answer...
    Thank you,
    This code I have tested, it can connect and query and I try to put to screen. It is working. But when I apply to CVP xml server, it not work. And the CVP VXML server got "stop" (maybe on the fail state)
    package com.dts.db;
    * @author Doan Khanh Tan Thanh
    // These classes are used by standard action elements.
    import com.audium.server.AudiumException;
    import com.audium.server.voiceElement.ActionElementBase;
    import com.audium.server.session.ActionElementData;
    import java.sql.*;
    * This class is called when a standard action has been configured to use a
    * Java class. Since this is a standard action element, it applies to a
    * specific application and does not have a configuration. As a result, the
    * only method needed in this class is the doAction method.
    public class OracleDBLookupAction extends ActionElementBase
    class WhatIGot
    String Name = null;
    String Address = null;
    String Email = null;
    public void doAction(String name, ActionElementData data) throws AudiumException
    String NameWhatIGot = null;
    Connection conn = null;
    String AddressWhatIGot = null;
    //String EmailWhatIGot = null;
    String ani = null;
    conn = connectToDatabase();
    ani = (String)data.getSessionData("ANI");
    WhatIGot whatigot = new WhatIGot();
    whatigot = QueryDatabase(conn, ani);
    NameWhatIGot = whatigot.Name;
    AddressWhatIGot = whatigot.Address;
    //EmailWhatIGot = whatigot.Email;
    data.setSessionData("Name",NameWhatIGot);
    data.setSessionData("Address",AddressWhatIGot);
    // PUT YOUR CODE HERE.
    private Connection connectToDatabase()
    Connection conn = null;
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@172.16.5.134:1521:dbkttt","CUOC1080","123456");
    catch (ClassNotFoundException e)
    e.printStackTrace();
    System.exit(1);
    catch (SQLException e)
    e.printStackTrace();
    System.exit(2);
    return conn;
    /*Query*/
    private WhatIGot QueryDatabase(Connection conn, String ANI)
    WhatIGot WhatIGot = new WhatIGot();
    try
    Statement st = conn.createStatement();
    ResultSet rs = st.executeQuery("SELECT * FROM CUSTOMER_INFO where ANI = '838232822'");
    while ( rs.next() )
    WhatIGot.Name = rs.getString ("NAME");
    WhatIGot.Address = rs.getString ("ADDRESS");
    WhatIGot.Email = rs.getString ("EMAIL");
    rs.close();
    st.close();
    catch (SQLException se) {
    System.err.println("Threw a SQLException creating the list of blogs.");
    System.err.println(se.getMessage());
    return WhatIGot;

  • Query regarding connecting dashboards with SQL DATABASE using WSDT

    Hello Sir,
    I am trying to connect dashboards with Sql database via WSDT, but i have encountered the same problem as described in your SAP community blog (SAP Web Service Design Tool: From web service creation to Xcelsius consumption).
    when i tried connecting CR server with WSDT ,it still shows that total number of available licenses is 0.
    What can be done to solve this issue.
    for your detail reference, we are using CRS NUL version's 60 days Evaluation keys and same with Xcelsius Departmental edition.
    I would really appreciate, if you revert back to my mail as soon as possible

    Which version of Crystal Reports are you using? The regular ReportDocument SDK probably isn't robust enough to handle this, unless you create a connection using that connection string at design-time which you don't change at runtime. You might be able to add those properties using the in-proc RAS SDK, though. This is available with CRXI R2 as of SP2, and CR2008.

  • Intermittant (not constant) SQL database ShareWebDb login failed events 3760 and 2424

    My Sharepoint 3.0 services that were bundled with SBS 2008 appear to be working fine. Companyweb, etc, all work w/o issue, so I don't want to take violent action, but these errors seem to be accellerating so I would love to know if there is a known
    solution.
    I typically receive the following (these are in reverse time order, latest at the top, just as they appear in the event log):
    Error Event ID: 3760 SQL Database 'ShareWebDb' on SQL Server instance 'np:\\.\pipe\MSSQL$Microsoft##SSEE\sql\query' not found. Additional error information from SQL Server is included below. Cannot open database "ShareWebDb" requested
    by the login. The login failed. Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
    one second earlier:Error Event ID: 2424 The update cannot be started because the content sources cannot be accessed. Fix the errors and try the update again. Context: Application 'Search', Catalog 'index file
    on the search server Search'
    Information Event ID: 18456 No description, here is the Details:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider
    Name="MSSQL$MICROSOFT##SSEE" />
    <EventID Qualifiers="49152">18456</EventID>
    <Level>0</Level>
    <Task>4</Task>
    <Keywords>0x90000000000000</Keywords>
    <TimeCreated
    SystemTime="2010-11-12T18:35:06.000Z" />
    <EventRecordID>491461</EventRecordID>
    <Channel>Application</Channel>
    <Computer>myserver.mydomain.local</Computer>
    <Security
    UserID="S-1-5-20" />
    </System>
    <EventData>
    <Data>NT AUTHORITY\NETWORK SERVICE</Data>
    <Data>[CLIENT: <named pipe>]</Data>
    <Binary>184800000E000000170000005000450054003300310030005C004D004900430052004F0053004F00460054002300230053005300450045000000070000006D00610073007400650072000000</Binary>
    </EventData>
    </Event>
    Two seconds earlier
    Information Event ID 17137 No description, here is the Details:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider
    Name="MSSQL$MICROSOFT##SSEE" />
    <EventID Qualifiers="16384">17137</EventID>
    <Level>4</Level>
    <Task>2</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated
    SystemTime="2010-11-12T18:35:04.000Z" />
    <EventRecordID>491460</EventRecordID>
    <Channel>Application</Channel>
    <Computer>mysever.mydomain.local</Computer>
    <Security
    UserID="S-1-5-20" />
    </System>
    <EventData>
    <Data>ShareWebDb</Data>
    <Binary>F14200000A000000170000005000450054003300310030005C004D004900430052004F0053004F00460054002300230053005300450045000000070000006D00610073007400650072000000</Binary>
    </EventData>
    </Event>
    I get more 3760 errors than 2424's. However, the
    2424's do seem to usually correspond to a 3760 18456 17137 occurance and the
    3760 are always preceeded by 18456 17137. I was getting one or two sets a day, lately that has increased to 5 or 10.
    I've done a lot of
    web research on Sharepoint Errors 3760 and
    2424 and I see a number of people are experiencing the the same issue. Most of what I've come across for solutions do not apply, since errors are intermittent, not chronic and my public remote URL has already been added
    to BackConnectionHostNames as per:
    http://blogs.technet.com/b/sbs/archive/2009/08/05/sharepoint-services-3-search-event-errors-after-an-sbs-2008-update-rollup.aspx
    I installed the SQL Server Management Studio Express so I could try to track down the permissions on this database. I see the SQL server instance, MYSERVER\Microsoft##ssee, and it shows as running, but when I try to connect to it I get the following
    error: "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote
    connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)" I'm assuming that is because I don't have access permission for that internal database.
    I don't see any errors in the event log related to failed logins or any errors at all from the SQL server, but there are the time matching informational entries right before the error events and lots of other 17137's and 2803's from MSSQL$Microsoft##ssee

    Thank you Kevin, that does seem to match my symptoms and I have made the change suggested. Just incase that page becomes unreachable by others, here is the part of the page that applies to this:
    Issue:
    =========
    Receive event error 3760 and 6398 on SBS 2008
    Cause:
    ==========
    Issue was caused by incorrect Auto Close option for ShareWebDb database
    Solution:
    ==========
    1. On the SBS 2008 server, click Start -> All Programs -> Microsoft SQL Server 2005, right click SQL Server Management Studio Express and choose run as administrator.
    NOTE: You must run it as administrator to perform steps below.
    2. In the Server Name box, type \\.\pipe\MSSQL$Microsoft##SSEE\sql\query, click connect.
    3. Expand Database node and right click the ShareWebDb then choose properties.
    4. Click Options in the left pane, in the right pane, please check whether the Auto Close option is set to True, if so, please change it to False.

Maybe you are looking for

  • What does it take to make and sell single apps witth DPS

    Allow me one question, please If I have one cloud membership suscription and one Windows 7 PC, and I buy one Mini Mac Would I be able/entitled to...? : 1. Load the CS6 suite in both machines and run them legally (but not concurrently?)? 2. Make the w

  • To convert the "IBM DB2 Store Procs written in C" to Oracle PL-SQL

    Hi, Is it possible to convert the "IBM DB2 Store Procs written in C" to Oracle PL-SQL. If you have any info, PL do let me know. Thanks in advance. EG : /* SMG Stored Procedures */ /* DB2 Stored Procedure: OrganisationExists */ /* Linkage: SIMPLE (no

  • Contacts not syncing correctly

    When I make a change to a contact on my iPhone, the change does not get synced to my Mac. For example, yesterday I deleted some contacts on my iPhone. After syncing, the contacts I deleted were back on my iPhone. I repeated the experiment, deleting t

  • Billing Output Issue

    Hi Friend, In Billling Document output does not show the output Type defiend. Although i have configured the Output determination Procedure ( v/25) & also checked the Billin type Output details ( VOFA) Is there anything i am missing Please suggest Th

  • Materials for sap configuraion

    hi, i want to configure bw system with other systems where can i get materials for that.