Web dynpro - database connection

Hi all,
i intead to make a web dynpro application which will store the data entered by the user in an oracle database
How am i to obtain webdynpro - oracle connectivity?
points assured for Help

Hi Shobhendra,
The simplest way is to use Visual admin. For that , do the following
1.Run Go.bat in the server to open Visual Admin.
2.Select Cluster->JDBC Connector
3.In Runtime, Create a driver of any name(Say mydriv). Select classes12.jar for that
4.Create a new datasource(Say myDS). There specify the
driver class as oracle.jdbc.driver.OracleDriver
database url as jdbc:oracle:thin@IPADDRESS OF ORACLE SERVER:PORT:SID
driver as mydriv
The PORT will usually be 1527 or 1521.
For IPADDRESS, PORT and SID, u have to contact db admin
5. In additional , select Vendor or Native SQL
6. Test the connection using Monitoring tab. If green line is coming, then connection is successful, otherwise, the parametes u used will be incorrect
7.In ur webdynpro code, inorder to get the Connection to oracle, add the following
InitialContext ctx=new InitialContext();
DataSource ds=(DataSource)ctx.lookup("jdbc/myDS");
Connection con=ds.getConnection();
8. Press CTRLSHIFTO
Regards
Fahad Hamsa

Similar Messages

  • How can I set the data binding between Web Dynpro & Database table

    Dear friend,
    I am a beginner of Web Dynpro. I want to develop my simple project like these:
    1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
    2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
    For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
    1. How can I set the data binding between Web Dynpro and Database table ?
    2.  Are there any nescessary steps that I will concern for this case?
    Sorry if my question is simple, I had try  to find solution myself, but it not found
    Thanks in advances,
    SeMs

    Hi,
    You can write your own connection class for establishing the connection with DB.
    Ex:
    public class  ConnectionClass {
    static Connection con = null;
    public static Connection getConnection() {
    try{
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
    con = ds.getConnection();
    return con;
    }catch(Exception e){
    return null;
    You can place the above class file in src folder and you can use this class in webdynpro.
    You can have another UserInfo class for reading and writing the data into the DB .
    Regards, Anilkumar
    PS : Refer
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
    Message was edited by: Anilkumar Vippagunta

  • Web Dynpro application connecting to oracle

    Hi all,
    i want to create a web Dynpro application which will fetch data from oracle database.
    Can anyboby guide me with some documents.
    Thanks in advance.

    Thanks for your quick reply!
      I am trying in another way.I've created a WD application and in custom controller I've put the code for connection, copying the retrived data into context and trying to display the data in one view.
    CODE:
    DriverManager.registerDriver(
                  new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection(               "jdbc:oracle:thin:@oracle server ip:port:sid",
         "user name",
         "password");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("select * from table");
    if (rs != null)
      while ( rs.next() )                     
         //code for copying data into context
    stmt.close();
    conn.close();
    Error(No class defination found) is at first line i.e. new oracle.jdbc.driver.OracleDriver().
    I've put classes.zip in lib and build path as well.
    Regards,
    Sarika.

  • Regarding web analysis database connections

    Hi All,
    I have couple of web analysis reports and the issue is i have copied this web analysis server to another server
    where i have the same application. Now iam trying to append those database connection properties of the file to
    point to the new server.
    I have altered by selecting the user>database>select database>rightclick>edit>changed properties
    But when i open the report it popping out with my old server details.
    Does any one have idea about how to change database properties for a report.
    Thanks,
    Ram

    Hi Manoj,
    I have created a DSN but how can i point the report to that DSN and run the same report as of my report running on my old server.
    Thanks,
    Ram

  • Web Dynpro Application connecting to incorrect R/3 instance

    Hi,
    We have newly configured EP.
    We are facing strange problem with web dynpro applications.
    They are accessing data from incorrect instance of R/3 system,i.e, if correct system instance is x , they are accessing data from y instance, on the same R/3 server.
    We have checked JCO connections. SID in JCO connection is of the correct instance.
    We have also checked SLD, but are not able to find out the root cause of the problem.
    Are there any other configuration, settings required?Are there any settings required on R/3 side?
    Can we some how track entire process from JCO to R/3?
    What happens after fetching server details from SLD? Is there any other step before connecting to R/3?
    Can anyone help on this?
    Thanks in advance,
    Apurva

    Hi,
    I have checked alias name (System ID) used in JCO connection.It is correct.
    I have also checked System ID in SLD.
    Is there any other configuration check required?
    Thanks,
    Apurva

  • Web Dynpro resets connection when calling webservice

    Hi,
    I get a very very strange problem by using Web Dynpro to implement a webservice client.
    The Webservice provider is running on a IBM WebSphere Server. I can use xmlspy to call this service and get the response correctly as expected.
    But when my web dynpro application (running on WebAS 6.40 Stack 13) calls this webservice, I only get incomplete SOAP response message. It looks like the HTTP response had been broken beforte it finished. To verify this, I use ethereal to analyse the tcp packet. And I find that the WebAS server has sent some tcp reset packets to the websphere server, before the http response can be finished. This problem can be reproduced on different WebAS server. So it can'b be caused by hardware defect.
    When I use web dynpro client to call other webservice on other WebAS server, there is no problem at all.
    I have really no idea, how could this happen.
    Thanks in advance.
    Kanyin

    Hi,
    Now we know how it happens.
    The reason is the content of the soap message from webservice provider is by means of the WSDL definition not complete, although the message structure is complete.
    The Web Dynpro deserialise the soap response on the fly, without getting the complete SOAP message first. When the parser throws any exception, the connection will be broken by the WebAS.

  • Using ABAP Web dynpro for connecting EP with MDM

    Hi All,
    We have an architecture landscape in which EP User interface (iviews) need to integrate with MDM import manager. Is it possible to achieve this using Web dynpro? If any company has implemented this kind of scenario before, please gave us the tips.
    Thanks,
    Anand

    Hi Anand,
    You can use MDM Java API in WD. ABAP API for MDM is is currently in process.
    Just wondering what kind of business scenario do you have which allows portal users to use import manager`s functionality.
    Best regards, Maksim Rashchynski.

  • Web Analysis - database connection

    <p>Is it possible to see the data base connection a web analysisdocument is using.</p><p> </p><p>I can see the data base it connects to but not the data baseconnection used</p><p> </p><p>Web analysis 9.2</p><p> </p><p>thanks</p>

    Try exporting the Web Analyzer document then open the file in a text editor. It's basically a text document. Then do a search for connection files you maybe using.

  • Web Dynpro application connecting to sql server

    Hi,
    I want to fetch data from SQL Server using webdynpro. Can anyone suggest me the steps to do this? I need to connect the SQL Server also to portal. I found one using visual admin another using system object in portal. Which is better way and how can use that connected system in coding to retrive data.
    Please help me. Points will be awarded for helpful answets.
    Thanks,
    Raz

    Hi,
    You place the code where ever you want to establish the connection to the data base which is located remotely in a diffrent IP from NWDS.
    The requirement for this we have 3 jar files.Which you have to copy in the lib folder.
    those are:-
    1.msbase.jar
    2.mssqlserver.jar
    3.msutil.jar
    XX.XX.XX.XX->IP Address
    XXXX---->Port no
    Code:-
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    conn = DriverManager.getConnection( "jdbc:microsoft:sqlserver://XX.XX.XX.XX:XXXX;databaseName=TrackingSystem","sa","sa" ) ;
    Statement st = conn.createStatement();
    String str = "select * from User Table";
    ResultSet rs = st.executeQuery(str);
    while(rs.next())
    String str1 = rs.getString(1);
    wdComponentAPI.getMessageManager().reportSuccess(str1);
    Thanks & Regards,
    Lokesh.

  • JCO , Web Dynpro & SLD connection

    Hi
    Can anyone please let us know why do we need JCO, WebDynpro  and SLD configuration.  I trying to configuring EP/BI and EP/ERP (MSS/ESS) using SAP configuration guide but not sure what they are used for.
    is JCO/SLD/Web Dypro is the requirement for EP/BI & EP/ERP configuration.
    Thank you everybody

    Hi
    The SAP Java Connector (SAP JCo) allows a Java application to communicate with any SAP System.
    It provides the bridge to fetch data across stacks and from different r/3 destinations.
    check the following Link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/eedf3d0eb8af5ee10000000a114084/content.htm
    /message/1648513#1648513 [original link is broken] ...
    Check out the following.
    what is sld:
    http://help.sap.com/saphelp_erp2005/helpdata/en/43/01ea90ab24235de10000000a1553f7/frameset.htm
    configuring SLD:
    /message/1648513#1648513 [original link is broken]
    themes:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2f/0f9e4a815bf449bf35537b2ea0aae3/frameset.htm
    creation of themes:
    EP Themes
    All the Best
    Priyanka
    Do reward the points

  • Creation of JCO Destinations for web dynpro

    Hi all,
    I read quite a lot of post concerning the subject but unfortunately I did not found a solution to my problem.
    My goal is to create JCO Destinations to make my web dynpro to connect to an R3 system.
    In order to realise this I followed these steps :
    - Launch visual admin and set http settings, rfc settings, and cim client settings. I click on CIM client test and the result is a success so I assume this part is correct.
    - In R3, I execute transaction smgw, go to remote gateway to get the gateway settings. I execute RZ70 and filled the parameters just checked. Then I activate and launch the data collect. I have no error message and everythings seemed to work fine.
    - In the sld (<host>:<port>/sld) I configured my server settings, the I go to data bridge, set update local sld to true and fill RFC gateway info with the same values as in my R3 system. Then I restarted the sld.
    - Finally I went to Web Dynpro content administrator to create my destinations and there I failed. After entering all settings (the message server appears in my technical landscape in SLD), when I click on finish I've got the following exception :
    [code]
    Failed to create new JCO client connection WD_FLIGHTLIST_RFC_METADATA_DEST:
    com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscapeException: Error while obtaining JCO connection.
    at
    com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:140) at
    com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.createJCOClientConnection
    (SystemLandscapeFactory.java:286) at
    com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.createJCOClientConnection(WDSystemLandscape.java:107) at com.sap.tc.webdynpro.tools.sld.ButtonBar.onActionFinish
    (ButtonBar.java:224) at com.sap.tc.webdynpro.tools.sld.wdp.InternalButtonBar.wdInvokeEventHandler(InternalButtonBar.java:252) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:100) at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:299) at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:641) at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59) at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154) at
    com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263) at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318) at
    com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:824) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37) at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at
    com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162) Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to resolve connection parameter for WD_FLIGHTLIST_RFC_METADATA_DEST at
    com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestinaton(JCOClientConnection.java:664) at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter(JCOClientConnection.java:508) at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.init(AbstractJCOClientConnection.java:247) at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.<init>(AbstractJCOClientConnection.java:221) at
    com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.<init>(JCOClientConnection.java:101) at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:138) ... 30 more Caused by: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:393) at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestinaton(JCOClientConnection.java:558) ... 35 more[/code]
    I tried to create a generic destination (no for the web dynpro tutorial) and failed again.
    I do not undestand what I did wrong.
    Does someone have an idea ?
    Thanks for reading this !
    Sylvain
    Message was edited by: Sylvain

    This thread helped me too because before reading it I didn't thought that I had to create a logon group "PUBLIC".
    Anyway I succed in creating 'WD_FLIGHTLIST_MODELDATA_DEST' and the test is ok. The problem was that in sld / technical system / web as abap, my Central Application Server host was wrong. It is not possible to change it so I just add a secondary server with the right host and select this one when creating the destination.
    The only pb remaining is now 'WD_FLIGHTLIST_RFC_METADATA_DEST'. I think the pb is my message server such this is the only difference between the two destinations
    Thanks for your help
    Message was edited by: Sylvain

  • Connect to WAS Preview Database with Web Dynpro Project

    Hi!
    I want to connect to the Database of the Preview Version of the WAS. I have created a Persistence project, where I created some Tables. I sucessfully deployed the project. Now i want to create the model for a Web Dynpro Application and I don't know how to get on.
    Can anybody help me?
    Thanks

    Hi,
    I have tried all the steps to configure the remote connection but it is giving an error that says,
    "Computer localhost does not exist on the network, or the computer cannot be configured remotely. Verify that the remote computer has the required Windows Management Instrumentation components and then try again. (SQLSAC)
    ADDITIONAL INFORMATION:
    An exception occurred in SMO while trying to manage a service. (Microsoft.SqlServer.Smo)
    For help, click: http://go.microsoft.com/fwlink?ProdName=MicrosoftSQLServer&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.InnerWmiException&LinkId=20476
    Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)
    For help, click: http://go.microsoft.com/fwlink?ProdName=MicrosoftSQLServer&LinkId=20476
    The operation could not be completed. (WinMgmt)
    BUTTONS:
    OK
    Please i welcome your valuable inputs.
    Thanks & Regards
    Swathi

  • Connecting Web dynpro application to an SAP database

    Hi
    Iam new to the Web dynpro
    I created a proto type for this screen.
    In my project ,under one of the module "std Allo" option will come.By clicking that "std allo" screen will come.
    In that Create , Export buttons is there.In that, table is present consists of Allowance Code, sub code,type,level,expense type,amount fields are present.
    1. After clicking create button , these elements are present.
    Save and Cancel buttons are present.
    allowance code - (i/p field) , sub code - (i/p field) , period Type - (Dropdown by key) ,
    Type - (Checkbox group) , level - ( Dropdown by key) , expense type - ( Dropdown by key) ,
    trip - ( Dropdown by key) , currency - ( Dropdown by key) ,amount - (i/p field)
    2.By clicking first row in the table ,,
    delete ,edit cancel buttons are present.
    same elements are present which i mentioned in step 1.
    To connect to the R3 database, Function module is required.Can any one help what are the specifications i need to give to the ABAP team to develop a Function module for this appluication.
    Please tell me procedure.
    Regards
    Sushma

    Iam trying to connect my web dynpro application to R3 Database.
    Iam having list screen consistts of Create and Export buttons and table.
    Table Fields :
    Allowance Code , sub code ,Type , Level , expense Type , amount
    After clicking  Create button ,
    the screen consists of save and Cancel buttons.
    Allowance Code  -- (Input Field)
    Sub Code --  (Input Field)
    Period Type -
    (Dropdown by key)
    Type -
    (Radio button Group)
    Level --- (Dropdown by key)
    Expense Type -(Dropdown by key)
    Trip - (Dropdown by key)
    Currency - (Dropdown by key)
    Amount --(Input Field)
    In the Create screen  all these fields are present. But in the table in the List Screen it is taking only mandatory Fields.
    For this our Abapers created
    Fun Mod : Zup_Allowance_Input
    Table     : ZMSTR_ALLOW 
    Iam getting error in this code under IdataType in this "Save Button ".
    Can any one help me where i went wrong in this code.or else please provide the Code for this.
    public void onActionSave(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSave(ServerEvent)
         try{
              String str1=wdContext.currentStdAllowanceElement().getAllowanceCode();
              String str2=wdContext.currentStdAllowanceElement().getSubCode();
              IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("PeriodType").getDataType();
         String index=wdContext.currentStdAllowanceElement().getPeriodType();
         String str3=wdThis.getTextFromSimpleType(dataType,index);
                                  wdComponentAPI.getMessageManager().reportSuccess("wetreer                "+str3);
         String arr[]={"Fixed","Actual"};
         for(int i=0;i<arr.length;i++)
    IPrivateEtrecStdCreateView.ICheckElement e=wdContext.nodeCheck().createCheckElement();
    wdContext.nodeCheck().addElement(e);
    e.setType(arr<i>);
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("").getDataType();
              String index=wdContext.currentStdAllowanceElement().getLevel();
              String str5=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer                 "+str5);
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("ExpenseType").getDataType();
    String index=wdContext.currentStdAllowanceElement().getExpenseType();
    String str6=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer                 "+str6);
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("Trip").getDataType();
    String index=wdContext.currentStdAllowanceElement().getTrip();
    String str7=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer                 "+str7);
    IDataType datatype = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("Currency").getDataType();
    String index=wdContext.currentStdAllowanceElement().getCurrency();
    String str8=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer                 "+str8);
    String str9=wdContext.currentStdAllowanceElement().getAmount();
    Zup_Allowance_Input input=new Zup_Allowance_Input();
              input.setAllow_Opt("C");
              input.setAllowance_Code(str1);
              input.setSubcode(str2);
              input.setType1(str3);
              input.setLevel1(str5);
                         input.setExpense(str6);
                         input.setCurr_Key(str8);
    wdContext.nodeZup_Allowance_Input().bind(input);
    wdContext.currentZup_Allowance_InputElement().modelObject().execute();
    String str10=wdContext.currentOutputElement().get();
    if(str10.equalsIgnoreCase("3"))
    String errorMessage = "Inserted Successfully !";
    IWDEventHandlerInfo windowHandler = wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("OK");
    IWDConfirmationDialog windowDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(errorMessage, windowHandler, "OK");
    windowDialog.open();
    windowDialog.setWindowPosition(300,250);
    }if(str10.equalsIgnoreCase("2"))
    String errorMessage = "Duplicate Value !";
    IWDEventHandlerInfo windowHandler = wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("OK");
    IWDConfirmationDialog windowDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(errorMessage, windowHandler, "OK");
    windowDialog.open();
    windowDialog.setWindowPosition(300,250);
    }catch(Exception e)
                 wdComponentAPI.getMessageManager().reportSuccess(e.toString());
        //@@end
      //@@begin javadoc:onPlugFromEtrecStdView(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onPlugFromEtrecStdView(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onPlugFromEtrecStdView(ServerEvent)
         wdContext.currentStdAllowanceElement().setAllowanceCode("");
            wdContext.currentStdAllowanceElement().setAmount("");
            wdContext.currentStdAllowanceElement().setSubCode("");
        //@@end

  • Connectivity with  oracle database using web Dynpro(for java)

    Hi,
    In web Dynpro we will connect to SAP systems by using Adaptive RFC.  Then How to connect the oracle 8i/9i using webdynpro? Plese tell me the procedure to establish the connecting using enterprise portal?
    Thanks & Regards,
    Mastanvali Shaik

    Hi,
    Check these:
    WebDynpro and Oracle using DTOs
    https://wiki.sdn.sap.com/wiki/display/VC/JDBCConnectionSetup
    Connecting Problum of SQL
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

  • Connect to SQL server 2005 in web dynpro java

    Hi,
    I am new to web dynpro. I want to coonect to SQL server 2005 server from my simple application.
    For that what and all the prerequisetion and what and all the steps to follow.
    I have created a database and the table too. I have created the application too. But i am not able to connect to sql. what might be the problem. I tried to create the data source in visual administration. and written code in the view like this.
    try {
                                                   String userName = "jktuser";
                   String password = "jkt12345";
                   String url ="jdbc:microsoft:sqlserver://jktr3:50000;database=student";
                   Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver ").newInstance();
                   Connection con =DriverManager.getConnection(url, userName, password);
                   System.out.println("Database connection established");
                   Statement st = con.createStatement();
                   String str = "select * from studentdata";
                   ResultSet rs = st.executeQuery(str);
                   while (rs.next()) {
                   String str1 = rs.getString(1);
                   wdComponentAPI.getMessageManager().reportSuccess(str1);
                                                    String str2 = rs.getString(2);
                   wdComponentAPI.getMessageManager().reportSuccess(str2);     
                   wdComponentAPI.getMessageManager().reportSuccess("sukces");
              } catch (Exception e) {
                   wdComponentAPI.getMessageManager().reportWarning(e.toString());
    And i am getting this error
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]End of stream was detected on a read.
    Plz any one help me in this.
    Regards,
    H.V.Swathi
    Edited by: H.V Swathi on Nov 21, 2008 6:46 AM
    Edited by: H.V Swathi on Nov 21, 2008 7:16 AM
    Edited by: H.V Swathi on Nov 21, 2008 7:17 AM

    Hi,
    I have tried all the steps to configure the remote connection but it is giving an error that says,
    "Computer localhost does not exist on the network, or the computer cannot be configured remotely. Verify that the remote computer has the required Windows Management Instrumentation components and then try again. (SQLSAC)
    ADDITIONAL INFORMATION:
    An exception occurred in SMO while trying to manage a service. (Microsoft.SqlServer.Smo)
    For help, click: http://go.microsoft.com/fwlink?ProdName=MicrosoftSQLServer&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.InnerWmiException&LinkId=20476
    Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)
    For help, click: http://go.microsoft.com/fwlink?ProdName=MicrosoftSQLServer&LinkId=20476
    The operation could not be completed. (WinMgmt)
    BUTTONS:
    OK
    Please i welcome your valuable inputs.
    Thanks & Regards
    Swathi

Maybe you are looking for

  • Problem with apps and logging in to app store

    On my iphone, I am having a weird problem. Apps that were downloaded were working until last night. Now, when I click on them, it starts up, but then the app dies. I thought I could remove them and reinstall them. But now, when I log onto the app sto

  • I want add a Coustomer Field in PO at item level

    Dear Gurus ,                      I am having a requirement at the clients place  . In purchase order creation we need one customer field for select customer & reflect it in GR. They want it at the item level . So Can somebody help me how to do that

  • How to load the bitmap file programmatically in to the front panel?

    I wanted to load Bitmap file programmatically in to the front panel. Can any one guide me ?

  • Weblogic 5.1 and iPlanet as proxy server

    Hello! We are using Weblogic 5.1 and Netscape's iPlanet as a proxy server. Both the machines are running of seperate NT boxes with static IP addresses. All the changes which need to made on iPlanet side (i.e. copying proxy36.dll, modificatiopn of mim

  • Can't install cs5 upgrade to cs3 on mavericks

    I have cc subscription on my mbp2.5ghi5 2011 16gb/750SSD with 420 free. I tried to put my cs5 upgrade on the machine so that I could work with a new client who needs work in cs5. I couldn't install so I put cs3 back on the machine to give the upgrade