Connecting SQL database as model in webdynpro

Hi experts,
I've some queries regarding JDBC in webdynpro.
1) Can I use stored procedures in SQL server as RFC model in webdynpro?
2) How should I load SQL table data in webdynpro? Is there any alternative other then writing pure java jdbc code?
Please give possible solution in description.
Thanks and Regards,
Mehul

Hi experts,
I've some queries regarding JDBC in webdynpro.
1) Can I use stored procedures in SQL server as RFC model in webdynpro?
2) How should I load SQL table data in webdynpro? Is there any alternative other then writing pure java jdbc code?
Please give possible solution in description.
Thanks and Regards,
Mehul

Similar Messages

  • How to connect sql database with Flash

    Dear Friends,
    Iam working on a quessinarie (assesment) for elearning software. i want to connect sql database with flash and save my records in back end like add, delete, modification of student result and details.
    Kindly help me to connect the sql database. or dot net server. I know how to connect PHP and mysql. But my client dont want php. only sql database and do the add, del, modificaiton.
    Thanks in advance,
    Syed Abdul Rahim

    unfortunately no, i do not know ASP well enough to give any code advice, other than the basic concept:  make a request on a server-side script (such as ASP) via URLLoader - the script receives variable values (if required), runs the DB queries you wish to invoke, and 'returns' the results - pick them up in the URLVariables class via the event handler in Flash and assign them to local properties if needed, etc.
    there are quite a few threads that you could find more specific information on the ASP side, here and elsewhere around the net.

  • Portal application connect SQL Database

    Hi all,
    I'm newbie in SAP Portal. Now, I've created a new system which connects to SQL Database. Now I want to write a small portal application in Netweaver developer studio, using JSP Dynpage, and retrieve data from this SQL database. Could you please help me or show me the step by step documents to write this example ?
    Thank you very much.

    Hi Tweety,
    SAP NetWeaver Portal comes with some standard iView templates that can be used to access data stored in databases.
    Check <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/f5/eb51610e6a11d7b84900047582c9f7/frameset.htm">SAP Library</a> for more information.
    Best regards,
    Martin

  • Failing to connect SQL Server 2005 from SAP

    I'm trying to connect SQL database to write some data to an external sql table. But it's failing giving below message,
    Error Message returned from "ADBC_TEST_CONNECTION" program:
    Testing a Database Connection Defined in DBCON        
    Could not open connection EACT_MESSAGES               
    sql error          1- occured:                        
    Login timeout expired                                                                               
    I can connect from .NET Applications using the same connection string configuration.
    What could be the reason for this.
    Do I need to enable some service for this in SQL server. I have enabled all possible SQL related services.
    But still no luck.

    I found a solution..
    Instead putting the server name, used IP address which is static. that solved the issue.

  • Integration of SQL database with XI

    Dear All,
    I have a req in that I have to connect to SQL Server database to XI system then from XI to ECC.
    To do this what are Connection should done from DatabaseXI-ECC.
    I have JDBC adapter in XI.Do I need install again in XI .
    how we will connect SQL Database to XI system?
    Regards
    Manish

    Hi Manish,
    Your scenario like this
    JDBC->XI->ECC(RFC/PROXY/IDOC).
    Download the following JDBC Driver. Once you deploy this driver you would be able to connect to SQL Server .
    http://www.microsoft.com/downloads/details.aspx?familyid=6d483869-816a-44cb-9787-a866235efc7c&displaylang=en
    Drivers Instalation Process
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70ffd890-0201-0010-708f-d5dad2dfcf3a
    Jdbc Channel Configuaration
    JDBC Diver:com.microsoft.sqlserver.jdbc.SQLServerDriver
    Connection:jdbc:sqlserver://ServerName:Port;Database=XXXXXXXX;
    Username:XXXXX(Ex:sa)
    Pwd:XXXXXXXX
    Thanks
    Ravi

  • How to connect external database(Ex:SQL Server/Tivoli)  from ABAP Webdynpro

    Hi,
    Any one have idea how to connect external database like SQL Server/Tivoli to access tables from WebDynPro ABAP.
    Please point to me some links if you have
    Thanks
    Praveen

    Hi,
    Please check out this link -
    FETCH DATA FROM ORACLE DATABASE USING Web Dynpro
    Regards,
    Lekha.

  • Code to connect to database in  Webdynpro-- iviews

    Hi All-
    Could you let me know the code to connect to database
    in WebDynPro-->iviews.
    Regards,
    Cris

    Hi,
    Here are the two ways of connecting to a database through coding:
    ////1////
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
              java.sql.Connection conn= java.sql.DriverManager.getConnection("jdbc:microsoft:sqlserver://<IP>:<port>;user=<abc>;password=<xyz>;database=<DB name>");
    ////2////     
    InitialContext initialContext = new InitialContext();
    DataSource dataSource = (DataSource)initialContext.lookup("jdbc/SRI");
    java.sql.Connection conn = dataSource.getConnection();
    Regards
    Srinivasan T

  • Internal server error while connecting to Tandem NonStop SQL database

    Hi -
    We are trying to connect to the Tandem NonStop SQL database through JDeveloper.
    We are using Type4 JDBC driver provided by Tandem NonStop and everything works fine from Database connection to testing the AppModule through the BC4J tester. The VOs return rows perfectly when we test the AppModule.
    BUT -
    When we try to invoke a jspx page (using embedded OC4J server) with an ADF Read Only table of the ViewObj, we get a "500 Internal Server Error" with following details. (Error listing at the end)
    We are using:
    JDeveloper 10.1.3.0 SU5
    ADF JSF
    And the database is NonStop SQL on Tandem NonStop Server S Series box.
    Any help to resolve the issue will be highly appreciated. We also face problems when making this as a WebService - detals of which I will post in a new thread.
    Thanks in advance,
    Saran
    Error Listing (portions removed)
    JBO-30003: The application pool (model.PxdAppModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.JboException.<init>(JboException.java:346)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.JboException.<init>(JboException.java:346)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.JboException.<init>(JboException.java:346)
    ## Detail 0 ##
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:220)
    ## Detail 0 ##
    java.sql.SQLException: No suitable driver
         at java.sql.DriverManager.getConnection(DriverManager.java:545)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:189)

    Kuba -
    I have done exactly as mentioned in the link you have provided except that I am using JSF instead of Struts.
    As I have mentioned earlier, if I test the AppModule through the BC4J tester it works fine. I can see my ViewObject with rows from the Tandem database. Only when I run the JSF page do I get the error. Is there something I need to configure in faces-config for accesing Tandme database?
    Saran

  • Problem in connecting to database from webdynpro for java

    Hi
    I have a problem in connecting to database from webdynpro application
    I am using oracle 10 express edition as database and was able to connect to database from a java application.But  was unable to connect from a webdynpro for java.
    <b>I guess webdynpro for java uses open sql instead of vendor sql(I looked in the visual admin ,DB is using open sql) so unable to connect to database.Am i right.?</b>
    Do i need to make any settings in the visual admin to make it work?
    How to solve this problem.Please give me pointers
    Thanks
    Bala

    Hi,
    For connecting to Oracle, either you can use the normal JDBC connectivty code directly which is given below :
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@Oracle_server_ip:Oracle port:SID of the Database","user_name","password");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("your query");
    In case you want to fetch data through ejbs, these are the steps to be followed :
    1) Open the J2EE perspective
    2) Create an EJB Module project
    3) Right click on ejbModule, create a new EJB (select your EJB type)
    4) While creating the ejb itself, you can add business methods by clicking ‘Next’ in the UI. Another option is after creating the ejb, write the method in the bean, then select the method from ejb-jar.xml -> <bean name> ->method. Right click and select ‘propogate to local & remote’.
    5) Double click on ejb-j2ee-engine.xml. select your bean and specify a Jndi name for eg: “MyJndi”.
    6) Right click on the EJB project and add ‘classes12.zip’ file (provided by Oracle) to it’s build path. (under libraries tab). Also check the same file under ‘Order & Export’.
    7) Create an Enterprise Application project.
    8) Right click on the EJB module project and select add to EAR project, then select the created EAR project.
    9) Right click on the EJB project, select ‘Build EJB Archive’
    10) Right click on the EAR project, select ‘Build Application Archive’
    11) Open the WebDynpro perspective, open a new project, right click on the project ->properties. Do the following configurations :-
    • Java Build path - select the EJB project from ‘projects’ , check the selected project under ‘Order & Export’
    • Project references – select the EAR project
    • WebDynpro references – select ‘sharing references’ tab, click add & make an entry as : <vendor>/<EAR project name without .ear extension>
    You can find the vendor name under ‘application-j2ee-engine.xml’ file of the EAR project. By default it is ‘sap.com’. So if my EAR project’s name is ABC, my entry would look like ‘sap.com/ABC’
    12) Now the configurations are over and the EJB can be invoked by writing the client code inside the webdynpro component. Like:
    InitialContext context = new InitialContext();
    Object obj = context.lookup("MyJndi");
    MyEJBHome home = MyEJBHome)PortableRemoteObject.narrow(obj,MyEJBHome.class);
    MyEJB mybean = home.create();
    int a = 0;
    a= mybean.add(10,15);
    wdContext.currentContextElement().setSum(a);
    where ‘MyEJB’ is my EJB name and ‘MyJndi’ is my JNDI name
    To connect to Oracle , you can write the usual Java code (given below) as a business methos of the ejb (similar to add() method in the example). And access it like mybean.<businessMethodName>().
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@Oracle_server_ip:Oracle port:SID of the Database","user_name","password");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("your query");
    Extracted from Re: Webdynpro and Oracle
    http://help.sap.com/saphelp_webas630/helpdata/en/b0/6e62f30cbe9e44977c78dbdc7a6b27/frameset.htm
    May be of use to understand the VA Conf /people/varadharajan.krishnasamy/blog/2007/02/27/configuring-jdbc-connector-service-to-perform-database-lookups
    Regards
    Ayyapparaj

  • Import / Export MySQL database in SQL Developer Data Modeler

    Hello,
    I have version 3.1.2.704 of SQL Developer Data Modeler and version 3.2.09 of SQL Developer installed.
    When I´m adding a new connection in SQL Developer, I can choose the MySQL tab an create a connection to a MySQL database.
    The connection test was successful and I can see all tables.
    I use the same JDBC driver for SQL Developer and SQL Developer Data Modeler (mysql-connector-java-5.0.4-bin.jar).
    But there are two problems.
    1. First there is an problem when I want to import from a MySQL database (SQL Developer -> File -> DataModeler -> Import -> DataDictionary).
    After choosing the MySQL connection and pressing the next button an error occurs: CONNECTION_TYPE
    What is the reason?
    2. In SQL Developer Data Modeler I have not the CONNECTION_TYPE problem. But when I want to export DDL, there is no MySQL type selectable, although there is working connection to the MySQL Database. It´s the same in SQL Developer.
    What is the reason?

    Hi,
    Data Modeler does not explicitly support import from MySQL databases, although you can use a JDBC connection to do this.
    Philip described how to set this up in forum message How to connect mySQL for reverve engineering
    There is no MySQL tab in Data Modeler - you should use "JDBC-ODBC Bridge" - "other third party Driver".
    Set URL like : jdbc:mysql://localhost:3306/database_name
    driver Class: com.mysql.jdbc.DriverAlso Data Modeler does not support generation of DDL for MySQL.
    David

  • Essbase Error(1021001) Failed to Establish Connection With SQL Database...?

    Hi there!
    I am very new in Essbase and I am receiving the error message quoted below while trying to load data in a Cube. Weird thing is that we have checked all connections already and they are working correctly, however this process is still failing.
    If someone can give us an idea to troubleshoot it, that would be really appreciated.
    Thanks very much in advance for any help and regards!
    MAXL> deploy data from model 'Production_GL_Cube_SchemaModel' in cube schema '\Production_GL\Cube_Schemas\Production_GL_Cube_Schema' login AdminUserAccount identified by MyPassword on host 'ServerName.MyCompany.com' to application 'ORA_HFM' database 'GL' overwrite values using connection 'ServerName' keep all errors on error ignore dataload write 'E:\Logs\DataLoad_Error_2013.04.19.16.23.00.txt';
    BPM Connect Status: Success
    Failed to deploy Essbase cube. Caused by: Failed to load data into database: GL. Caused by: Cannot get async process
    state. Essbase Error(1021001): Failed to Establish Connection With SQL Database Server. See log for more information
    BPM maxl deployment ...failure.

    Hi Celvin,
    Thanks for your reply and my apologies for not coming back before on this issue.
    For the benefit of other readers, after hours struggling with the issue, we focused our attention in the following portion of the ORA_HFM.log file:
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/54996/Info(1013157)
    Received Command [Import] from user [Service_Acct@Native Directory] using [GL.rul] with data file [SQL]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021041)
    Connection String is [DRIVER={DataDirect 6.1 Oracle Wire Protocol};Host=MyEssbaseServer01.MyCompany.com;Port=1521;SID=PRODUCTION;UID=...;PWD=...;ArraySize=1000000;]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021006)
    SELECT Statement [SELECT cp_127."ACCT" AS "Accounts_CHILD",
             cp_127."PERIOD_MEMBER" AS "Period_CHILD",
             cp_127."PERIOD_YEAR" AS "Years_CHILD",
             'INPUT'  AS "View_CHILD",
             cp_127."ENTITY"  AS "Entity_CHILD",
             cp_127."PRODUCT_LINE" AS "Custom1_Product_CHILD",
             cp_127."Function" AS "Custom4_Function_CHILD",
             cp_127."B_U" AS "Business_Unit_ORACLEBUSINESS",
             cp_127."ORACLEFUNCTION" AS "Oracle_Function_CHILD",
             cp_127."LEGALENTITY" AS "Oracle_Entity_CHILD",
             'P' || cp_127."PRODUCTLINE" AS "Oracle_Product_CHILD",
             'A'[Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021043)
    Connection has been established
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021044)
    Starting to execute query
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021013)
    ODBC Layer Error: [S1000] ==> [[DataDirect][ODBC Oracle Wire Protocol driver][Oracle]ORA-04063: view "REP_ESSBASE.VW_GL_BALANCES" has errors]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021014)
    ODBC Layer Error: Native Error code [4063]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Error(1021001)
    Failed to Establish Connection With SQL Database Server. See log for more information
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Error(1003050)
    Data Load Transaction Aborted With Error [1021001]
    Then we concentrated in the following error message: *ODBC Layer Error: [S1000] ==> [[DataDirect][ODBC Oracle Wire Protocol driver][Oracle]ORA-04063: view "REP_ESSBASE.VW_GL_BALANCES" has errors]*
    So, we checked the database and noticed the schema and their views were damaged and -due to this- they lost all their properties (like data types, for example). So, we had to recompile all of them in order to avoid any loss of data. This was done in TOAD, as per the following info: https://support.quest.com/SolutionDetail.aspx?id=SOL66821
    Finally, once all the views on this schema were rebuilt and fixed, we were able to deploy the Cube again.
    Hope this help in the future. Cheers!!

  • Connection to SQL Developer Data Modeler Fails

    All,
    I am using Oracle SQL Developer Data Modeler version 3.0.0.665 in an Oracle 10g database environment. When I try to import DDLs, I get the following error message:
    NoSuchMethodError:
    oracle.i18.ntext.converter.CharacterConverterOGS.getInstance(I)Loracle/i18n/text/converter/CharacterConverter;I use the same connection profile in Oracle SQL Developer version 1.5.0.53, and my connection works fine there, but the same credentials in SQL Developer Data Modeler fails with the above error message. Any thoughts what causes this connection problem?
    Thank you,
    Seyed

    Hi Philip,
    Thank you so much for the information. Your suggested solution resolved my problem. For some reason when I first installed the Data Modeler, it worked fine and I was able to save the result into PDF files. Then my connection went bad and I posted this question on this forum.
    Again thank you very much,
    Seyed

  • Connecting Oracle DataBase through WebDynpro

    Hi,
    I created a Dynamic table, now I should display the data from Oracle Database. I tried in many various ways to connect to database, but the data is not retrieving.
    Can u explain the reasons and give necessary coding to retrieve the data.
    Its very very urgent.

    Hi
    I think you can do using the APIs provided by SAP.
    Check this link
    JDBC Reference
    or
    Try connectinc using lookup.
    try{
    InitialContext ctx=new InitialContext();
    javax.sql.DataSource ds=(javax.sql.DataSource)ctx.lookup("jdbc/SAPJ2EDB");
    java.sql.Connection con=ds.getConnection();
    java.sql.Statement stmt=con.createStatement();
    con.close();
    catch(Exception e)
    wdComponentAPI.getMessageManager().reportException("Exception "+e,true);
    Check this thread moreuseful.
    WebDynpro and Oracle Connection
    Please Check these threads
    Re: I need a j2ee code for getting data from oracle database
    Re: oracle connection
    Re: problem with displaying records from the database in a table ui element
    See this sample application and help
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715
    I hope these links will help u resolve your problem.
    All The Best
    Priyanka
    Do Reward Points

  • Connecting to local SQL database

    I have tried everything to connect to a SQL database which is
    located on the same machine I'm using for development. Is there any
    special way of doing this. I tried to create a new connection in
    every way possible and I can't seem to be able to establish a
    connection. i would appreciate your input with this problem.
    Thank you,
    Marequi

    And posting your connection string would be helpful.
    Nancy Gill
    Adobe Community Expert
    BLOG:
    http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "David Alcala - Adobe" <[email protected]>
    wrote in message
    news:efe94f$cia$[email protected]..
    > Are you using MS SQL Server? If so, what version?
    >
    > What server model are you using (ASP, ColdFusion, PHP,
    etc.)?
    >
    > How have you filled out the DW database connection
    dialog box so far?
    >
    > What error(s) are you seeing? Is the error in DW or in
    the browser?
    >
    > --
    > David Alcala
    > Adobe Product Support
    >

  • I am not able to connect to database in sql developer.how to do?

    I downloaded sqldeveloper 1.5.4.59.40. iam not able to establish connection to database. Can anyone tell me ?

    Have you created a database (or have one you connect to)?
    Have you created the Net Service connections for SQL Developer to use?
    Does SQL Developer have access to this Net Serviice name?
    Have you created the connections from SQL Developer?
    Can you post an error message?
    See
    <br>
    Oracle Database FAQs
    </br>

Maybe you are looking for