JSP , Microsoft Access & Date/Time

I am trying to write a program in which a database contains two tables pcorr & mscorr.
result1 = stmt1.executeQuery("select pcorr.corrppo,mscorr.ppoprint from pensionr where pcorr.regimental = '" + icstr + " 'and (pcorr.status = 'P') and (mscorr.ppoprint>pcorr.dtreceipt)");
In above, icstr is input from a Form and ppoprint & dtreceipt are date type.
This is not reflecting true data on the screen. While same program in MS Access query, it is showing required a result.
Please do suggest for date comparison in JSP

datevalue(value)

Similar Messages

  • Jsp----microsoft access---image

    Hi everyone,
    I am trying to save an image in a Microsoft Access database, so i can make a query to that image using jsp, and display the image in the .jsp.
    The problem is that I don't know what data type to declare in "access" when i am creating the table.
    I have tried with OLE Object type, and it doesnt work;
    I tried also with Text type, and doesnt work either.
    what data type do i have to declare, and how should I save it in the database, so when i make the query from the .jsp the image will be displayed?
    thanks...

    Hi,
    I did it like this:
    <TD>
    <img src="images/<%= recordset.getString(5)%>">
    </TD>it worked correctly,
    but,
    I am having trouble getting all of the images from one column,
    this is what i'm trying:
        ResultSet result = null;
        ResultSetMetaData rsmd = null;
       int columns=0;
         try {
           rsmd = result.getMetaData();
           columns = rsmd.getColumnCount();
    <table width="60%" height="50%" border="1">
      <tr>
      <%
         try {
           for (int i=1; i<=1; i++) {
                 out.write("<th>" + rsmd.getColumnLabel(i) + "</th>");
      %>
      </tr>
      <%
            while (result.next()) {
               out.write("<tr>");
               for (int i=1; i<=1; i++) {
                 out.write("<td>" + result.getString(i) + "</td>");
               out.write("</tr>");
            }my problem is that I don't know how to insert the:
    <img src="images/what can I do?

  • Can't view Microsoft Access data

    Hello,
    I am trying to use a Microsoft Access database (97) as a data source for my repository. I can import it in the Administration Tool and see all the tables. When I finish my repository the global consistency is without errors.
    Then I go to the Answers and make a table, here I see the repository but when I try to view the results it returns only values from the other data source.
    I am using OBIEE 10.1.3.3.2
    Anyone got a suggestion?
    Rgds,
    Dennis de Kock

    I cannot see data at column level either.
    Perhaps there still is a (logical) problem in your logical model.
    I suggest to quickly create a new business model, just for testing. Drag and drop 1 table from your access source twice to the business model. Create a complex join between table and table#. Put an aggregate on one number field in table#. Drag/drop business model to presentation layer.
    Have a look if you now have data from this table in Answers.
    Regards

  • File Date/Time

    Hello,
    I am looking for a way to access date/time information for a file. Am I missing something obvious? I can see that the File object provides 'lots' of information about the file -- but no date info (create time, last mod, etc.). Is there a way to do this without creating an external integration project?
    Any help is appreciated.
    Bob
    The Winston Group
    2 Enterprise Drive, Suite 303
    Shelton, CT 06484
    (203) 925-9175
    (203) 925-8602 fax
    http://www.WinstonGroup.com

    Looks like an R3 feature, call
    File.GetUsageTime(accessTime=DateTimeData,modificationTime=DateTimeData).
    There is also File.GetFileAttribute(..).
    Watch out about the timezone differences at you pick up the date and time.
    Lee Wei
    At 12:14 PM 6/25/97 -0400, Robert Hopwood wrote:
    Hello,
    I am looking for a way to access date/time information for a file. Am Imissing something obvious? I can see that the File object provides 'lots'
    of information about the file -- but no date info (create time, last mod,
    etc.). Is there a way to do this without creating an external integration
    project?
    >
    Any help is appreciated.
    Bob
    The Winston Group
    2 Enterprise Drive, Suite 303
    Shelton, CT 06484
    (203) 925-9175
    (203) 925-8602 fax
    http://www.WinstonGroup.com

  • Insert Time and Date into Microsoft Access from Lookout

    I have an SQLExec running to export data to Microsoft Access - I would like to get A) A time stamp also to insert and B) A time stamp with out / and : -- I have found it impossible (from my limited knowledge) to do any of these things.
    Dose anyone have a very basic SQL Statement that might guide me on my way?
    Thanks!

    Oracle stores date and time in a DATE column; it all depends on how you have your insert statement. The last insert I specified the date and time
    ex.
    insert into test_date values(1,sysdate);
    insert into test_date values(2,sysdate-10.9);
    insert into test_date values(3,sysdate-8.098 );
    insert into test_date values(4,sysdate-5.11 );
    insert into test_date values(5, trunc(sysdate));
    INSERT into test_date values(6, to_date('01-JAN-2004 19:30', 'DD-MON-YYYY HH24:MI') );
    select * from test_date ;
    ID DDATE
      1 25-FEB-04
      3 17-FEB-04
      4 20-FEB-04
      5 25-FEB-04
      2 14-FEB-04
      6 01-JAN-04I don't see the time because the NLS_DATE_FORMAT is set to DD-MON-YY, but if I
    Select id, to_char( ddate , 'DD-MON-YYYY HH24:MI:SS AM') from test_date;
    ID TO_CHAR(DDATE,'DD-MO
    1 25-FEB-2004 06:57:02
    3 17-FEB-2004 04:37:05
    4 20-FEB-2004 04:20:02
    5 25-FEB-2004 00:00:00
    2 14-FEB-2004 09:24:50
    6 01-JAN-2004 19:30:00

  • Reading date/time type from Microsoft Access in LabWindows 7.1

    Hi,
    I'm afraid I'm having some trouble reading some date information from an MS Access table.  I assume it's returned as a string (and this may be my first mistake) but when I use DBBindColChar I just get garbage information.  This is the code I'm using:
      sprintf(queryString, "SELECT date_time, type, serial_number, Voltage_at_G5_V, Voltage_at_G6_V \
                            FROM gain \
                            WHERE serial_number=%lf \
                            ORDER by date_time", *serialNumber);
    followed by...
      queryHandle = DBActivateSQL (pmtDataHandle, queryString);
    and....
        resCode = DBBindColChar (queryHandle, 1, 22, internal_date, &dateStatus, "");
      resCode = DBBindColChar (queryHandle, 2, 4, internal_type, &typeStatus, "");
      resCode = DBBindColDouble (queryHandle, 3, internalSerialNumber, &serialNumberStatus);
      resCode = DBBindColDouble (queryHandle, 4, &g5VRead, &g5VStatus);                         
      resCode = DBBindColDouble (queryHandle, 5, &g6VRead, &g6VStatus);
    Is there anything special about the type date/time that I am not taking care of?  All of the other columns read back fine....
    Thanks in advance
    Message Edited by acrmartin on 02-23-2006 02:59 PM

    Hello,
    Just copy and paste the contents to a new post - that will do it
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Can not Insert data to Microsoft Access successfully

    I am using Microsoft Access database, and trying to insert some data into a table with a "while" loop, but every time, the last row can not be inserted although the return value of the "executeUpdate()" is 1, can anyone tell what's wrong with that? thank you very much

    http://forums.java.sun.com/thread.jsp?forum=48&thread=147704
    Sounds like it may be the same "glitch"
    Jamie

  • HOW TO FILTER DATA FROM MICROSOFT ACCESS

    HOW TO FILTER DATA FROM MICROSOFT ACCESS BASED ON DATE AND TIME AND GIVE THE RESULT TO A TABLE ?
    I need some example files , can anybody please help me ?
    Solved!
    Go to Solution.

    Just be sure to get examples specific to the Jet DBMS. It is rather "idiosyncratic" when dealing with time and date values.
    One question: the timestamp is being saved in a datetime field, right?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to insert date in microsoft access

    dears
    i want to insert date in a table which is in microsoft access.
    and also use the date in where clause.
    the col. name is mydate and the data type is Date/Time
    when i try to insert the date as a string it cannot.
    '"+date.getText().trim()+"'
    what can i do plz help me.

    Right, use java.sql.PreparedStatement and its setDate()/setTimestamp() methods. It'll escape the java.sql.Date and java.sql.Timestamp properly for you. I use PreparedStatement all the time to escape dates, times, and strings correctly in a portable way.

  • To put Data type inside a table of Microsoft Access (dummy ask)

    Hi to all,
    I am new to use database in java ... (but I did it long time in Visual Basic) and I have a trivial problem...
    I try this SQL statement in different why without success...
    int clientIdKey = 3;
    Date = regneDate new Date();
    "INSERT INTO myTable (idCli, dateReg) VALUES (" + clientIdKey + ", #" + regneDate + "# )";
    The message error I get in this case is the follow:
    "java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in date in query expression '#Sat Oct 20 16:54:23 PDT 2007#'".
    (I tried to format the value of regneDate in different why too... but it was not good the same...)
    I know the mine is a stupid problem .., but I am not going to get the right road, so I ask to some one that it know the whay to say it me please...
    Thank you very much
    regards
    tonyMrsangelo

    Joe's correct. Do it like this:
    int clientIdKey = 3;
    Date regneDate = new Date();
    String sql = "INSERT INTO myTable (idCli, dateReg) VALUES(?,?)";
    PreparedStatement stmt = null;
    try
        stmt = connection.prepareStatement(sql);
        stmt.setInt(1, clientIdKey);
        stmt.setDate(2, regneDate);
        int numRowsAffected = stmt.executeUpdate();
    catch (SQLException e)
        e.printStackTrace();
    finally
        try { if (stmt != null) stmt.close(); } catch (SQLException e) {}
    }    %

  • TS3297 My 2nd generation ipod touch is giving me the following error when I try accessing Itunes or the app store. "Cannot connect to the Store. A secure connection could not be established. Please check your date & time settings"  I am on a secure networ

    My 2nd generation ipod touch is giving me the following error when I try accessing Itunes or the app store. "Cannot connect to the Store. A secure connection could not be established. Please check your date & time settings"  I am on a secure networkl.

    Can't connect to the iTunes Store
    Make sure that time zone is correct in addition to date and time

  • Data Migration from Microsoft Access to Oracle 9i

    Dear All
    This is my first request in your forum,My problem is that I have installed SQL developer but unable to migrate my MDB (Microsoft access file) into Oracle 9i,I have done the following activities in order to migrate data.
    open sql developer
    under migration,click quick migration
    quick migration wizard diaglog box appear,click new,
    in the oracle tab, input the following information
    input connection name 'zuhair',give user name and password (sys/s),check save password option,give role "sysdba" ,give connection type "basic",didnt check any any check box like os authorization and others,give host name 'zkhan-dfml',port '1521',sid 'dba' and then push the test button and then status show "success"
    in the access tab, input the following information
    input connection name ,input mdb file name by using browse button,after this step click test button then the following message display 'test fail odbc microsoft access driver not a valid password
    I have tried to create odbc link but i think i have done some thing wrong,kindly help
    Regards
    Zuhair

    Hi Zuhair,
    If you give details of the problems you are still having then we should be able to get SQL*Developer to work.
    However, if you don't want to use SQL*Developer then the following options are taken from note 393760.1 available in Metalink if you have access to that -
    1. Use a gateway that supports the non-Oracle database or generic connectivity if a third party ODBC driver is available to do a -
    'create Oracle_table as select from non_oracle_table@database_link'
    for each table. You would then have to manually create all the other objects (views, indexes, stored procedurs etc) and permissions etc that existed in the non-Oracle database.
    2. Use the SQL*Plus COPY command to copy data from the non-Oracle database to the
    Oracle database using a gateway or generic connectivity. The syntax is as follows:
    COPY FROM username/password@oracle_sid -
    INSERT destination_oracle_table -
    USING query;
    The following example selects all rows from the EMP table in the non-Oracle database and
    inserts them into the local Oracle EMP table:
    COPY FROM SCOTT/TIGER@ora10 -
    INSERT EMP -
    USING SELECT * FROM SCOTT.EMP@gateway;
    where "gateway" is the database link created for the gateway.
    3. Load the non-Oracle data into flat files and use SQL*Loader to put the data into Oracle tables. Again manual
    work is required for the other objects.
    4. Contact the Oracle Product Technology Services (PTS) group for assistance. See the webpage -
    http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
    5. Use a third party migration tool. See -
    http://www.oracle.com/technology/tech/migration/isv/third_party.html
    6. Use JDBC to connect to the non-Oracle database and Java in the Oracle database. This method will work but it is not suppported by the JDBC team.
    =========
    The amount of work involved will depend on the number and size of Access tables that you want to migrate.
    Regards,
    Mike

  • This database was connected to a Microsoft Access Services site that is not compatible with this version of Microsof Access. You cannot make design changes or modify data in database.

    Hello All,
    I am getting this error while I am connecting my access database website for the change
    "This database was connected to a Microsoft Access Services site that is not compatible with this version of Microsof Access. You cannot make design changes or modify data in database."
    I am using SharePoint 2010 and Microsoft Office 2010.
    I have created one Contact Database Site and now I am trying to modify the layout of the form in Access. and I am getting the error that I have mentioned.
    Please provide help on it.
    Thanks in Advance....

    Hello All,
    I got the answer, we have to enable the port 80 or where the access service is deployed and we have to change Trust setting and also, enable the macro from Access.
    Hope this will help to other....

  • Date time in the transaction access log of ST03N

    Hi,
    How do I get date time in the log of transaction access by user.
    in transaction ST03N
    Pls let me know if any other transaction is available there
    I can get transaction access logs userwise.
    Points will be rewarded.
    Thanks

    Hi,
    SM19 - Configuration / SM20 - evaluation (if audit log maintained) will fetch the date and time of tcode accessed by user.
    Rakesh

  • Accessing data in time capsule

    Can I access data from time capsule wirelessly using a smart tv or blu ray player? If not, can I access it with ethernet connection?

    No and No.
    There are rare exceptions but mostly SMART TV isn't that smart.. it needs DLNA in the network device to find files.. TC of course supports no media extensions at all.. nothing.. zippo.. el zero or as you say.. null.
    You need a player that can access raw files.. eg WD live TV can do it.. because it is a real Media Player. Not a streamer.

Maybe you are looking for

  • How to run a pl/sql stored procedure as a concurrent program

    Hi All, I created a package PURGE_DEAL_REQUESTS. It contains a procedure QPR_DELETE_CANCELLED_REQUESTS. I want to run this stored procedure as concurrent program in ebs suite.... Can anyone tell me how to run this procedure as a concurrent program(in

  • Batch Jobs Running during upgrade from 46C to ECC 6!

    Hi All We are currently due to run our upgrade in the next two weeks and I have one final concern. The only testing we have not done relates to batch jobs. Our upgrade stratergy is downtime minimised. Does anyone know any best practices or issues tha

  • Flattening documents with annotations

    I'm trying to flattening a PDF document with annotations using the transformPDF service method (OutputService). Unfortunately all annotations are lost after flattening the PDF document. The reason why we want to achieve this is that we want to ensure

  • Intercept database error

    Hi, I would like to intercept a raise application error in a trigger. Is it possible? regards Luigi :)

  • Auto ALV Update

    Hello Friends, We have a report displaying ALV tree and having an auto refrsh on it using cl_gui_timer. Now same report should be reused or rebuilt for web dypro , do we have something here which we can use to refresh the alv table ? Thanks and kind