Doubt in jdbc basic

Hi all,
thin driver belongs to which type driver . i mean tpe 1, 2, 3 or 4

Hi all,
thin driver belongs to which type driver . i mean tpe > 1, 2, 3 or 4 Just how stupid are you knucklehead???
This is the third time you have asked this stupid question and you have had answers twice.
http://forum.java.sun.com/thread.jspa?threadID=769067
http://forum.java.sun.com/thread.jspa?threadID=769215
Stop asking this fucking question you idiot.
The answer is 4. FOUR. 4. FOUR.
Got it this time?

Similar Messages

  • Doubt in JDBC Scenario.

    Dear All,
          At present i am doing File to JDBC Scenario using SQL Server database.I am having some doubts in doing this Scenario,please give me some clarification on those.I already completed this scenario using MS Access database.
    SQL Server installed on my local machine.
    1.For MS Access I used Business Service for both Sender and Receiver. Can I use Business Service for Sender and Receiver in this case also? Do I need to compulsory use Business System for the Receiver?  Do I need to give information regarding my local machine in that Business System in SLD?
    2.After going through some documents on JDBC Scenarios,i came to know that,the only difference between using MS Access and SQL Server is ,configuring Receiver Communication Channel parameters and Deploying the corresponding Driver on XI Server though SDM.Is this the only change?or Is there any other change need to do?Please suggest me.....
    3.In Receiver Communication channel configuration at Connection parameter we are giving -
    jdbc:microsoft:sqlserver://172.16.202.57:1433;databaseName=xxxx.
    My system IP Address is  172.16.202.57
    Will the Port Number always 1433 for local machine?
    4.Throught out the whole scenario we were giving the Database Name in Receiver Communication channel and Table Name in Data structure of Receiver.Is this sufficient to determine the Correct Data base and Correct Table name?Or Anywhere else do we need to give the Table name or Database name? 
    Thanks in advance.
    Regards,
    Ramana.
    *POINTS WILL BE REWARDED TO THE ANSWERS.*

    Hi
    1.You can Business Service for Sender and Receiver in this case also. No need to go for Systems.The scenario is going to be the same.
    2.The only difference is in the configuration of Receiver Communication Channel and the parameters are URL Connection String and name of the driver.
    Also the corresponding Driver for SQL server needs to be deployed on XI Server using SDM.
    3.Not in all the cases you specify a port number.I had connected to Max DB using the connection as
    jdbc:sapdb://DBServerName/DBName
    4. Yes it is sufficient because the Receiver Structure of JDBC is defined in such a manner.
    For more refer
    http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
    Get back if you have some more doubts.
    Thanks

  • Doubts in XI basics..help me with some practical examples

    hi friends,
              I am new to SAP XI have some basic doubts. Answer my questions with some practical examples.
      1. what is meant by "Business System" and what is difference between client,customer,Business partner,3rd party
      2.If a small company already using some systems like Oracle or peopleSoft,if it wants to use SAP products then what steps it has to follow.
    3. SAP system means a SERVER?
    4.SAPWebAs means a server software?
    5.R/3 system comes under SAP system?
    6.XI is also one of the SAP  module..how it relates to other modules.
    7.In one organization which is using SAP modules,each module will be load in separate servers?
    8.PO(purchase order) means just looks like one HTML file..customer will fill the form and give it.like this,Combination of many files like this is one SAP module.Is it right assumption..?if so,then what is speciality SAP?
       I have an theoretical knowledge about IR and ID and SLD.what are general business transactions happens in any business ?(like who will send cotation,PO)  give some practical example for what actually happens in business?..who will do what?and what XI will do?

    Hi Murali,
    <u><b> 1.Business System</b></u>
      Business systems are logical systems that function as senders or receivers  within the SAP Exchange Infrastructure(XI).
    Before starting with any XI interface,the Business systems involved has to be configured in SLD(The SLD acts as the central information provider for all installed system components in your system landscape.)
    business system and technical system in XI
    <u><b>2.Third Party</b></u>
    http://help.sap.com/saphelp_nw04/helpdata/en/09/6beb170d324216aaf1fe2feb8ed374/frameset.htm
    eg.For the SAP system a  Bank would be a third-party which would be involved in interfaces involving exchange of data(Bill Payment by customer).
    <u><b>3.XI(Exchange Infrastructure)</b></u>
      It enables you to connect systems from different vendors (non-SAP and SAP) in different versions and implemented in different programming languages (Java, ABAP, and so on) to each other.
    Eg.If an interface involves Purchase Order sent from SAP system to the vendor(Non-SAP system)then,the vendor might expect a file.But the Data is in the IDOC(intermediate document) form with the SAP system.Here XI does the work of mapping the IDOC fields and the File fields and sends it to the vendor in the form of a file.
    In short,always the scene is Sender-XI-Receiver.
    The Sender and the Receiver depends upon the Business you are dealing with.
    <u><b>4.Business Partner</b></u>
    A person, organization, group of persons, or group of organizations in which a company has a business interest.
    This can also be a person, organization or group within this company.
    Examples:
    Mrs. Lisa Miller
    Maier Electricals Inc.
    Purchasing department of Maier Electricals Inc.
    <u><b>5.Client</b></u>
    http://help.sap.com/saphelp_nw04/helpdata/en/6c/a74a3735a37273e10000009b38f839/frameset.htm
    <u><b>6.SAP System</b></u>
    http://help.sap.com/saphelp_nw04/helpdata/en/33/1f4f40c3fc0272e10000000a155106/frameset.htm
    <u><b>7.SAP WebAS</b></u>
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=sapwebapplication+server&cat=sdn_all
    As you are a beginner, I understand you musn’t be aware of where to search what.
    For all details search out in http://help.sap.com
    And sdn(key in keyword in Search tab).
    You will get list of forums,blogs,documentation answering all your queries.

  • Basicv doubt in JDBC

    Hello friends,
    I m a newbie to JDBC . I m actually stuck up at this doubt. I have to execute an update Sql query , but how do i no if the query has been succesfully xecuted r not .
    ResultSet rs=stmt.executeQuery("update meter_operations SET voltage="+newvalue+" where METER_ID="+meter_id);
    Thts the small pice of my code . How do i check if this query is xecuted succesfully r not.
    Thanks in advance ,
    Satish

    Hello friends,
    I m a newbie to JDBC . I m
    m a newbie to JDBC . I m actually stuck up at this
    doubt. I have to execute an update Sql query , but
    how do i no if the query has been succesfully xecuted
    r not .
    ResultSet rs=stmt.executeQuery("update
    teQuery("update meter_operations SET
    voltage="+newvalue+" where METER_ID="+meter_id);
    Thts the small pice of my code . How do i check if
    if this query is xecuted succesfully r not.
    for starters updates do not return result sets use executeUpdate and not executeQuery.
    should be
    int updatecount = stmt.executeUpdate("update meter_operations SET voltage="+newvalue+" where METER_ID="+meter_id);

  • Difference in Edit functionality between JDBC & Basic/TNS connections

    Hi, I just noticed that there's a difference in functionality in whether the edit table option is available or not depending on whether you connect using a JDBC connection or Basic/TNS.
    Version 2.1.1.64 Build MAIN-64.45
    I have checked the server and port are identical in all 3 types of connection. I have tried this using both with the JDK and NON-JDK versions and same problem occurs.
    It's a bit hit and miss and not all users in all databases are affected.
    I can replicate the problem simply.
    I connect to the user/database using a JDBC connection.
    I create a table
    create table mytest as select * from dual;
    I right-click the table and the option to edit it is missing.
    I then right-click the table and select table-drop
    I then connect to the same database as the same user using either a Basic or TNS connection.
    I can now right clcik the table and select Edit and add indexes etc.
    As I usually use JDBC connections this is quite a pain. The problem seems to affect all objects not just tables.
    As I was typing this I found the work-around in that if you select the object and then choose Edit->Properties from the main menu then the functionality works.
    Thanks
    Arth

    RJ
    Generally speaking no there shouldn't be much difference, it is more a question of functionality.
    In fact with IP Services there may be more load in terms of CPU and memory usage if you are running features you can't run on IP Base but in terms of hardware forwarding, as far as I am aware, the feature set should not make any difference.
    Edit - the choice of which image to use really comes down to which features you want to run on your switches rather than a performance one.
    Jon

  • JDBC Basics

    DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
    My question is based upon this code frag. It seems to be registering the driver to be used in a connection later. My question is where is the driver that it is registering? Is it part of some class or is it to be found in the oracle home on my PC?
    I'm new to this db game hence the probably very basic question, any help would be brilliant as books are one thing but experience is quite another.
    Cheers

    Hi,
    How exactly would you do this? I've pasted ojdbc14.jar into Java\jre1.6.0_07\lib\ and then tried to run the following command in command prompt:
    java -cp .;"C:\Program Files\Java\jre1.6.0_07\lib\ojdbc14.jar" OracleLoadDriver
    Edit: nevermind. For those having the same problem know that "adding to the class path" does not mean the CLASSPATH variable but (in Netbeans) Run / Set Project Config / then add the .jar.
    Mike
    Edited by: Dird on May 20, 2010 10:47 AM

  • Doubt in JDBC Adapter

    Hi,
    In JDBC Sender Adapter, we have Quality Of Service in processing parameters.
    Where as in JDBC Receiver Adapter, why don't we have the QOS.
    What to do if I want to send a message to Database with EOIO QOS from XI.
    Please clarify me.
    Regards
    Krishna.

    > In JDBC Sender Adapter, we have Quality Of Service in
    > processing parameters.
    > Where as in JDBC Receiver Adapter, why don't we have
    > the QOS.
    > What to do if I want to send a message to Database
    > with EOIO QOS from XI.
    The QoS need to be specified at the sender Adapter(SO message come to IE and processed in the same way).
    If you want to achieve QoS EOIO, then at the sender JDBC side you have to select QoS = EOIO and assingn the queueid(just give any name upto 16 char it automatically the EOIO queue)
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    It is not with only JDBC but for any adapter if you are seding message in EOIO to IE then you have to select the QoS = EOIO in the sender communication channel...not receiver side.
    Thanks
    Farooq.

  • Doubt on jdbc to file

    Dera experts
    i have a scenario in xi  when i am configuring jdbc to file ,an error occured "error in structure mapping" can anybody tell me how to configure complete IR and ID and how to check data transfer to file.
    thanks in advance
    with regards
    somesh

    Hi Venkata,
    Refer to following Links
    End to End Explained PDF
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a04cd6f9-9eb0-2a10-07b8-a0fc6e88f4d4
    SAP NOTE NO :
    831162
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Also this one further to enhance..
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    If you wanna do update/insert you will have to follow the
    Document Formats for the Receiver JDBC Adapter
    For Configuring the Receiver JDBC Adapter refer:
    Configuring the Receiver JDBC Adapter
    For Configuring the Sender JDBC Adapter refer:
    Configuring the Sender JDBC Adapter
    Please go through this blog and see if it helps you.
    /people/prasadbabu.nemalikanti3/blog/2006/02/27/collecting-and-bundling-vendor-records-from-different-multiple-interfaces-file-systempeoplesoft-and-sending-to-sap-r3-system-part-2
    For more info, just take a look at these links also,
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    All that i could get from the SAP Help regarding JDBC Adapters once when i searched for the same were these links, so go through these links and see if you find anything useful.
    http://help.sap.com/bp_bpmv130/Documentation/Planning/XIUnicodeGuide030411.pdf
    Configuring the Receiver JDBC Adapter
    Mapping Lookups
    JDBC Adapter
    Configuring the Receiver JDBC Adapter - part 2
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    Reward Points if Helpful
    Thanks
    Sunil Singh

  • Dear  Please   Clear my doubt on JDBC.

    Inn JDBC we have most of them are interfaces. Suppose Preparestatement interface. Then we have to implemnt all the classes in it.How is is possible.
    Thanks

    You have to get the JDBC driver for your database and put it in your CLASSPATH. That has all the implementations that do the work behind those interfaces.
    Nice design - one to emulate.

  • Doubt about JDBC

    i would like to get help with jdbc and access .
    iam triying to make an applet but with OOP (oriented object progrraming) is there anyway to initialize the driver for jdbc without a main method or init() or something like that? i mean in the constructor of a class or in another method , or some package?
    regards..

    Whoa whoa whoa.
    MS-Access and Applet are a non-starter. Generally speaking Applets and JDBC is a bad idea. But Access and Applet is actually impossible.
    Is there another database you can use? Does this have to be an applet?

  • Doubt in JDBC

    HI,
    I have a String that i obtain supose as "16:30"..I need to
    1.Convert this String into a time object
    2.Use this Time object's value into an SQL Query as:
    Query="SELECT * FROM Table WHERE Time='TimeVal';
    That is,i need to display all records where the Time field has the value given by TimeVal,that is the String that i parse into a Time..The Database is MS Access..
    Please tell me how i do the same..
    And the Field Type of Time is Set as Date/Time....which is in format Short(i.e 16:30)
    Please help me out...

    For example, here's a list of topics that I've participated in recently where I am pretty sure stars were offered in all of them.
    jmc95825     http://forum.java.sun.com/thread.jspa?threadID=5230601
    dragonbyte     http://forum.java.sun.com/thread.jspa?threadID=5230587
    Ilane          http://forum.java.sun.com/thread.jspa?threadID=5230576
    cnu_coder     http://forum.java.sun.com/thread.jspa?threadID=5230475
    sukumar.sudha     http://forum.java.sun.com/thread.jspa?threadID=5230066
    stevanicus     http://forum.java.sun.com/thread.jspa?threadID=5230040
    luizroos     http://forum.java.sun.com/thread.jspa?threadID=5229947
    selsium          http://forum.java.sun.com/thread.jspa?threadID=5229914
    Aurora88     http://forum.java.sun.com/thread.jspa?threadID=5229655
    omnie          http://forum.java.sun.com/thread.jspa?threadID=5229398
    jaimrk          http://forum.java.sun.com/thread.jspa?threadID=5231265In some of the cases the OP thanked the poster/s, and probably just forgot to processes the stars through. In other cases the stars were actually retracted, even though the help was offered and did help answer the question. In yet others, the dukes are still sitting there and the topic just died w/o any further feedback from the OP.

  • Doubts on JDBC & FIle

    1.  IN A DATABASE -> IDOC scenario,
    if a reverse scenario, when ever an idoc is triggered it gets updated automatically into DB because of the ALE settings we do. But when DB-> r/3, how does this automation takes place. i mean.. when ever a new records come into DB, does idocs get created automatically?
    2. in a file -> idoc or DB scenario,
    my file data is holding both header data and item data. how can we identify which row is header data and which is item data?
    3. i am doing and idoc to DB scenario.
    in sxmb_moni, i am getting strange message from trace of XML message "Async barrier reached. Bye-bye !".
    i have checkd my complete config and its right.
    i also tested my mapping with the payload and its working fine.
    Thanks
    Kiran

    hi kiran!!
    1. If you want to update R/3 upon Manual Database record change, you have to configure it in the Database side itself. You can engage a trigger for the particular event(INSERT/UPDATE) to reflect the change in the R/3.
    2. Specify key filed values  for header, item and for footer
       i.e. in the recordset structure: header,<occ>, item,<occ>,footer,<occ> //occurrence.
    in the CC Table:
    header.keyFieldValue 'H'
    and put values for item and footer accordingly.
    3. check in the adapter monitoring (RWB) if there is any violation in database
    thanks n regards
    nikhil
    **reward if helpful
    Happy 2008

  • Null strings in jdbc (basic question)

    Hello.
    I have a java code that is more or less like this (all fields involved are varchar2):
    String sentence = 'update my_table ';
    sentence = sentence + "set field1 = "+ "'" + EveryField.getField1() + "',"; // field1 can be null
    sentence + "field2 = "+ "'" + EveryField.getField2() + "',"; // field2 can be null
    sentence = sentence + "fieldN = "+ "'" + EveryField.getFieldN() + "' "; // fieldN can be null
    I want to know a direct way of avoiding coding an if every time I concat a string (that can be null to another) string in order to avoid the implicit coversion of null value in the literal 'null'
    Thanks in advance.

    My rule of thumb is to always use PerparedStatement, not Statement:
    http://java.sun.com/javase/6/docs/api/java/sql/PreparedStatement.html
    example:
    public int call(Connection con, String field1, long id) throws SQLException {
        String sql = "UPDATE tableX SET field1=? WHERE id=?";
        PreparedStatement ps = con.prepareStatement(sql);
        try {
            if (field1 == null)
                ps.setNull(1, Types.NVARCHAR);
            else
                ps.setString(1, field1);
            ps.setLong(2, id);
            return ps.executeUpdate();
        } finally {
            ps.close();
    }

  • Hi Friends, Let me know my doubt im very basic person in flash

    I want to make a flash header file like this url: http://activeden.net/item/xml-mask-transition-pack/17135, so kindly let me know the solution with example(if possible) asap...
    Thanks
    I Jaffar

    1. On stage, select twitter button. Go to 'properties' tab and enter "twitter_btn" in instance name text field
    2. Insert new layer in timeline.
    3. Press 'F9' or open 'actions' window
    4. Copy the following code:
    import flash.events.MouseEvent;
    import flash.net.URLRequest;
    // Twitter Button click event
    twitter_btn.addEventListener(MouseEvent.CLICK, handleTwitterButtonClick);
    function handleTwitterButtonClick(e:MouseEvent):void {
        navigateToURL(new URLRequest("http://twitter.com/Play2Improve"), "_self");
    In navigateToURL, second parameter can be "_self" (open url in same browser window) and "_blank" (open url in new browser window)
    You do same stuff for all other buttons and links.
    Regards,
    Karthikeyan R.

  • Doubts in java basics.

    class A {
         public void methodTest() {
              System.out.println("Inside class A");
    class B extends A {
         public void methodTest() {
              System.out.println("Inside class B");
    class C extends B {
         public void methodTest() {
              System.out.println("Inside class C");
         public static void main(String arg[]) {
              A aObj = new C();
              aObj.methodTest();
    }The above program prints Inside class C and i understood why it is so.
    class A {
         public void methodTest(A a) {
              System.out.println("Inside class A");
    class B extends A {
         public void methodTest(B b) {
              System.out.println("Inside class B");
    class C extends B {
         public void methodTest(C c) {
              System.out.println("Inside class C");
         public static void main(String arg[]) {
              A aObj = new C();
              aObj.methodTest(aObj);
    }Why the above code is printing Inside class A. I am not understading why is it is not printing Inside class C.
    Thanks for your time.

    The above program prints Inside class C and iunderstood why it is
    so.Why do you think the first prints this?
    A aObj = new C();From the above line i understood that, I am declaring an Obj which is of type A and
    then assigning it a reference of class C. So when we say aObj.methodTest(); its calling class C's method.
    If i am wrong please let me know, i am still new in java.
    Why the above code is printing Inside class A.The methodTest() methods have different signatures,
    and the
    compiler must decide which one to use. Since
    you declare aObj
    as A, it uses public void methodTest(A a).

Maybe you are looking for

  • Odd freeze track behavior

    I can't get certain freeze tracks to mute. They aren't effected by the mute button and when I solo other tracks, these freeze tracks continue to play. They do respond to the volume fader and pan. Right now it's just 2 tracks and both are audio tracks

  • How to Delete and reset button Events

    according to the idea . i am working on ...at one point i will need to delete an event ... but further down in the script i am going to need this event once more how can .i get back an event after deleting it please look at my eg.

  • Explorer Preventing Download of Flash Player (I think)

    This post may repeat some others but I am not an experienced forum user, so . . . Am running Windows XP and Internet Explorer 9.  IE now tells me I must install latest version of Flash Player, whichever one that is.  Following instructions I uninstal

  • Install 1.4 in mandrake 8.2

    Hi, I try to install the sdk 1.4 in Mandrake 8.2 with the rpm version but get the following error. Unpacking... tail: -bash: No such file or directory Checksumming... 1 The download file appears to be corrupted. Please refer to the Troubleshooting se

  • Set extra monitor as default?

    I have a macbook and I got an external monitor for it via DVI and the mac bar that has the time and spotlight and all that stuff is staying on the macbook lcd, is there anyway to move it to the external monitor I have it hooked up to? (Im extending t