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.

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

  • 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);

  • 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?

  • 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

  • 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?

  • JDBC Questions have some doubts

    hi,
      Friends i have some doubts on JDBC Adapter . plz give me answere.
    1) Wt is the use of update query in jdbc adapter?
    2) Why did u use the flag field in jdbc table?
    3) How will u send the data into multiple table?
    4) Wt is the receiver str jdbc?
    5 Wt is the jdbc configurations
    thanks in adnvace.

    Hi,
    1) Wt is the use of update query in jdbc adapter?
    --> Update query is used to update the specific record in the database table based on Key fields.
    2) Why did u use the flag field in jdbc table?
    --> the Flag field is used to mark the records which are selected by sender JDBC adapter, so next time those records should not be repeated.
    3) How will u send the data into multiple table?
    --> You can send the data to multiple tables with the help of multi-mapping in the XI.
    Accessing Multiple Tables dynamically using JDBC
    Accessing Multiple Tables dynamically using JDBC
    4) Wt is the receiver str jdbc?
    --> On receiver side JDBC, you can either Insert, Update or delete the records. The storder proceduers are the line of codes written in DB2, From XI you can directly execute these JDBC statements. It will be helpful when you will be working on synchronous scenario and need to modify or deal with multiple tables based on complex logics
    5 Wt is the jdbc configurations
    --> JDBC configuration is based on the JDBC drivers installed.
    Refer - Detail explanation
    http://help.sap.com/saphelp_nw04s/helpdata/en/22/b4d13b633f7748b4d34f3191529946/frameset.htm
    Thanks
    Swarup

  • Who will implement jdbc api interface?

    Hi Friends,
    I have One doubt on jdbc api interface,
    I will Explait it clearly
    Through java if we want connect any database we need to use JDBC,
    To conne to database,
    We need to load the driver and
    we need to establish the connection and
    we need to execute some Query,ryte...
    My exact doubt is...
    the Connection class and the total JDBC API is interface,
    to connect to the database,We need to use the above mentioned procedure but they are all interfaces,So those jdbc related interface must be implemented by someone.
    But who is going to implement that interface?
    I am very much confusing with this,
    Can anybody help me out regarding this with an Example.........
    Regards,
    Anji.

    Yes, the specific JDBC driver you use provides the implementation/concrete classes. So if you are using a oracle jdbc driver to connect to an oracle database, then as in your example:
    Connection con= DriverManager.getConnetion("--------");will result in an Oracle Specific implementation connection class (say: OracleConnection) being associated with your connection. Since OracleConnection implements Connection, you can interact with it through this interface. If for some reason, you database changes to MySQL you can simply replace the JDBC driver and your call to "getConnection" will now return the MySQL implementation class without having to change all the code that uses the connection since the MySQL connection class uses the same interface.
    In the same way, the JDBC driver has implementation classes for all the interfaces defined in the JDBC API (which you do not, and should not interact with directly). The driver will provide the correct implementation classes for your interfaces at runtime and you access them through their interface.

  • Help needed in jdbc

    hi,
    i am a newb and i have a doubt in jdbc . when ever i try to access the ResultSet randomly i get an exception that the resultset is forward_iterating on and i couldnt use the last() at the code.
    Help me sort out this problem.

    i am a newb and i have a doubt in jdbc . when ever
    ver i try to access the ResultSet randomly i get an
    exception that the resultset is forward_iterating on
    and i couldnt use the last() at the code.
    Help me sort out this problem.What is the exception?
    Some jdbc drivers/databases do not support non-sequential access so that could be a factor.

  • How to read a jdbc trace

    Hi,
    I've just run a trace using ojdbc14_g. Can some one please tell me how i can find out if the the query I'm interested in has executed successfully and how many results it returned?
    I will post an excerpt of the trace if required.
    Thanks,
    Ping

    Oracle suggests that using the trace facility with java.util.logging is primarily for hunting down bugs in the JDBC driver. What you seem to be asking for is pretty standard information whose status can easily be identified within the application. What would be your need to use the trace facility rather then stardard Java exception handling? I doubt the JDBC driver would know how many results (rows?) it returned, although it may know how many of the results (row) the application explicitly requested and received (that is there will be no total row count associated with a query).
    I haven't used the trace facility myself, and I'm assuming the only time I might use it is if Oracle support required the trace. You have obviously figured out how to run a trace, have you looked at it? I believe the trace has 3 levels of detail and defaults to level 2 (lots of stuff), but Oracle recommends starting with level 1. If you didn't run with level 1 perhaps you should try and see if the smaller output is simpler for the layman to understand.

  • Beginning in JDBC

    It would like to take off one doubts on JDBC.. I am beginning in java and which version to be installed and that it forms I install? I am thankful karla

    Forgives use sdk 1,5 as and made the installation of
    jdbc? it has that to install the API of the JDBC or
    to install packages sql? how I make? karlaeh, what?
    You installed the SDK ==> You installed JDBC :)

  • Receiver Database Down

    Hi everyone,
    I have a doubt regrading JDBC receiver.Suppose if the database is down due to some unplanned acitivity ,will the JDBC Adapter at PI receiver side go down?I mean as per my knowledge the JDBC adapter will be trying to reconnect to the database based on the configured number of retrials and once that is expired connector should go down.So will there be error in SXMB_MONI?If not how to reprocess the failed events?Do we have to manually start the adapter?
    PS : I checked in the forum but it didnt cleared ny doubts.:-(Could you ppl pls help me out.:-)
    Thanks.

    Suppose if the database is down due to some unplanned acitivity ,will the JDBC Adapter at PI receiver side go down?
    No
    I mean as per my knowledge the JDBC adapter will be trying to reconnect to the database based on the configured number of retrials and once that is expired connector should go down.
    The retry part is fine, but once the max number of retries are reached, connector won't go down. Just that particular message will stay in System Error status.
    So will there be error in SXMB_MONI?
    No. The System error will be in Runtime Workbench
    If not how to reprocess the failed events?Do we have to manually start the adapter?
    Restart can be done from Runtime Workbench Message monitoring. As I said earlier, there is no need for adapter restart.
    Regards,
    Prateek

Maybe you are looking for

  • Problems Installing Adobe Acrobat XI Pro via CreativeCloud on Windows 7

    The following error is from trying to install Acrobat XI pro. Everything else has installed (7 separate software bundles, from InDesign to Edge Reflow) and updated correctly. Exit Code: 7 Please see specific errors below for troubleshooting. For exam

  • Need Help with a JAVA programming assignment

    How do I write a JAVA program that could be used as the start of an MS-DOS/Windows simulation of the IEEE 802.3 protocol? I am to only code the parts necessary to build the 802.3 frame. For the initial implementation, the Checksum function need not b

  • [PROBLEM] Setting multiple NIC's under Solaris 8

    Good day everybody, I'm a little bit new to Solaris so there are some misunderstanding. I have 2 NIC's eri0 and eri1, eri0 is in 192.168.0.0 subnet, and eri1 is in 192.168.1.0 subnet, eri0 has static ip, and eri1 is getting it from DHCP. Eri1 is behi

  • Mouse sputters every few seconds

    I just got a brand new customized Mac Pro direct from Apple. Every few seconds, there is a delay in mouse input, but instead of just stopping, the cursor "jumps" across the screen. This would normally not be a huge problem, but in intricate tasks lik

  • STATUS YELLOW ( URGENT  )

    Hai all I am getting status yellow for request in bi after scheduling info package ( after migeration of data source) and in short dump of dataware house work bench I am getting following error : CONNE_IMPORT_WRONG_COMP_TYPE EXCEPTION :CX_SY_IMPORT_M