Storing and retriving Date in Access Databae

hi, i,ve applocation with Access as database. i am not able to store Date in the database. i am using GregoianCalender to get system date but how could i store that date to the Access Database

"ODBC Access"

Similar Messages

  • Problem with storing and retriving a different langauge font in mysql

    hi,
    i have problem with storing and retriving a different character set in
    mysql database ( for example storing kannada font text in database)
    it simply store what ever typed in JTextField in database in the
    formate ??????????? and it showing ???????? .
    please what can i do this problem.
    thanks
    daya

    MySQL does not know about what type of Font you use or store. that is applicatioon specific. All it knows is the character set that you are storing and the data type and data. THere are something you should know when working with database and Java:
    1. make sure you know what character set is used for the database table.
    2. make sure you know what character set is used by Java (default to UTF-8 ..
    sort off - there are few character that it cannot save). You can enforce the
    character set being sent to the database by the String's getBytes(String charsetName) method.
    3. make sure the application you use to view the table use the correct character set
    if it use a different character set, then any character that it does not recogized
    will be replaced with a quetion mark '?'....eventhough the data is correct.

  • How to connect Openoffice Base with java and retrive data from it?

    I need to retrive data from Openoffice-Base in windows through java. Is there any driver which helps to retrive data from Openoffice-Base.

    [http://tinyurl.com/nfvbbg]

  • Problem choose method for save and retrive data

    Hi
    I want to conver sql database to berkeley db.my sql database has over that 40 tables and each table has diffrent fields (like varchar,int,...)and some tables have over that 30 fields .I want to use method that berkeleydbcorec pdf explain in chapter 3(Using C Structures with DB):
    what is the limitation for use first method for store information?
    I think only limitation is waste database.
    what are the advantages of use (marshalling the data)?
    if I use marshalling the data for store records does speed for fetch information reduce or not?
    is it good use marsharling or first method for store information?
    please help me.
    regards,
    saaed

    Hi,
    Since nobody else has posted anything I thought I would mention a couple of things:
    Most applications that need a database need a way to work with records and fields. Berkeley DB does not have a schema so it is up to the application to format the data. Some databases through their DML make it easy to the application to look at fields but they are doing work for you behind the scenes.
    Some dbms's if they support variable length fields store some information on the page to delimit fields. At run time there is some overhead in doing that as the dbmx needs to find the location on the page for the next field and so forth. So although the application may not have to write the code to obtain fields from records there still is the overhead in the database to do so.
    As you noted in Berkeley DB, you do the marshalling and unmarshalling of data. Since you know your data best, you can optimize it as you see fit.
    Perhaps you should try this on one table first and see what the performance is.
    I hope this helps.
    Ron

  • !!! Storing and Getting data  from HashMap !!!

    Hi ,
    I have got a doubt if this is possible .. Please let me know if this can be implemented ..
    I have a Process1 running which stores data into HashMap one by one from the Users.
    Eg:
    Key Object
    1 ---> Karthik
    2 ---> Raaghav
    3 ---> Srikanth
    and so on ..
    Now what i internally do is i will wait for 5 min Duration (Session TimeOut).Once it is Over 5 min I will delete it from HashMap and Store it in a file ..
    Iam also using WebServer Eg:Iplanet .
    Now when i Shut down Iplanet all the data in the HashMap is Lost .
    My Requirement is to write another Process2 which will be invoked as soon as Iplanet is ShutDown and This process has to read the data from HashMap which is not Timed out .And write it into the File ..
    Q1)Please Let me know if this is can be Done ..
    Task Done :
    Process1 is already existing
    Doubts :
    Q2)If we write a Process2 will it spawn another VM or it will take the same VM that of the Process1.
    Becos if it spawns another VM then I will not be able to get the data from HashMap of the Process1..
    Thanks in Advance,
    [email protected]

    Thank You for the ..
    But my prblm is that the Process1 is already Existing which reads and writes in to HashMap ( Not a Servlets) ..Its a Pure Java Code ..
    And Now the requirement is another Process2 lets say which is put in thread (running in background )which gets the data from the HashMap of the Process1 or in other words Use the Same HashMap and not a different One ...
    Process1 ------------------>HashMap
    (write.java) (writes data ) /\
    |
    |
    |(get Data)
    |
    |
    |
    Process2
    I hope iam clear with my requirement ..
    If Any further explanation Required Iam perpared to give ..Please let me know
    thanks in advance ..

  • !!!! Storing and Getting Data from HashMap !!! VERY URGENT

    Hi ,
    I have got a doubt if this is possible .. Please let me know if this can be implemented ..
    I have a Process1 running which stores data into HashMap one by one from the Users.
    Eg:
    Key Object
    1 ---> Karthik
    2 ---> Raaghav
    3 ---> Srikanth
    and so on ..
    Now what i internally do is i will wait for 5 min Duration (Session TimeOut).Once it is Over 5 min I will delete it from HashMap and Store it in a file ..
    Iam also using WebServer Eg:Iplanet .
    Now when i Shut down Iplanet all the data in the HashMap is Lost .
    My Requirement is to write another Process2 which will be invoked as soon as Iplanet is ShutDown and This process has to read the data from HashMap which is not Timed out .And write it into the File ..
    Q1)Please Let me know if this is can be Done ..
    Task Done :
    Process1 is already existing
    Doubts :
    Q2)If we write a Process2 will it spawn another VM or it will take the same VM that of the Process1.
    Becos if it spawns another VM then I will not be able to get the data from HashMap of the Process1..
    Thanks in Advance,
    [email protected]

    You need to consider the following
    -------Normal execution:
    Keep a list of all instances of the HashMap and a timestamp for each. Start a timer thread (or use the jdk api Timer class). Fire it every minute, or 5 minutes, or hour - the length depends on how your system runs - load, fail-safe, etc. When the timer fires, any instances with expired timestamps are written.
    -------Graceful Shutdown:
    If you have a way to exit your application gracefully then rbyrom suggestion is needed. Basically it writes all existing instances in the list on shutdown.
    -------Abnormal events
    What do you do if the disk drive is full and you can't write data?
    -------Abnormal shutdown
    What happens if someone pulls the plug on the server? How important is the data?

  • Storing and Retriving from Hashtable

    I store countryCode and countryName in Hashtable, but how do i populate it back to my html listBox? And with sorting order?
    Hashtable codeHash = new Hashtable();
    if (codeHash != null) {
         codeHash.put("AR", "Argentina");
         codeHash.put("AM", "Armenia");
         codeHash.put("AW", "Aruba");
         codeHash.put("AU", "Australia");
         codeHash.put("AT", "Austria");
    }JSP :
    <select name="countryList">
         <option value="CountyCode"> CountryName </option>
    </select>

    Things I noticed that might be changed in this snippet:
    //declare Map codeHash = new HashTable(), so
    //there would be fewer changes if you ever needed it to change
    //(to TreeMap for example)
    Hashtable codeHash = new Hashtable();
    //Why do you check for null? You just created the bloody thing
    //like, two lines up..
    if (codeHash != null) {
         codeHash.put("AR", "Argentina");
         codeHash.put("AM", "Armenia");
         codeHash.put("AW", "Aruba");
         codeHash.put("AU", "Australia");
         codeHash.put("AT", "Austria");

  • How to insert and retrive data from Discussion forum in Oracle Server 10g

    Hi,
    I have successfully deployed discussion forum, in Oracle app server 10g, and its working fine. Now, i have to implement a Moderator in this. but i am not getting an idea, where is the queries and specifications about the tables are given.
    Please help me to to understand the work flow, as well to know, the place where queries are written.
    Thanks in advance,
    Dhananjay

    Hi,
    I have successfully deployed discussion forum, in Oracle app server 10g, and its working fine. Now, i have to implement a Moderator in this. but i am not getting an idea, where is the queries and specifications about the tables are given.
    Please help me to to understand the work flow, as well to know, the place where queries are written.
    Thanks in advance,
    Dhananjay

  • Timescaledata Start Date and Finish Date not both inclusive

    From testing a bit with Time Scale Values in Visual Basic I noticed that when specifying Start and Finish dates for accessing Time Scale Data those dates were not both inclusive. The fact is that specifying a Start Date for Time Scale values will return
    data for which dates are greater or equal to the Start Date Specified but when also specifying a Finish Date the Time Scale values returned are only the ones that are less than the Finish Date specified not the ones less or equal as one would expect since
    the Start date is Incllusive. This is true for actual work with Microsoft Project 2007 and 2013 unsing Visual studio 2013. Has anyone experienced such a behavior? Is this a intended Behavior? Please see following code snippet       

    Jaques,
    In my example, the ass.start and ass.finish are the start and finish dates respectively of the assignment. Since the resource is assigned full time for the whole duration of the task, the assignment start and finish are the same as the task start and finish,
    namely, Dec 1, 2014 and Dec 7, 2014. If you only want data for specific days, say Dec 4, 2014 and Dec 5, 2014, then the syntax would be:
    Set TSV = ass.TimeScaleData("12/4/14", "12/5/14", pjAssignmentTimescaledWork, pjTimescaleDays)
    The result will be 7h and 8h respectively.
    If you want to print out the date along with the hours for each day in the Immediate Window, the following modification to the macro will do that:
    Sub testtimescale()
    Dim ass As Assignment
    Dim TSV As TimeScaleValues
    Dim val As TimeScaleValue
    Dim i As Integer
    Dim Da As Date, St As Date, Fi As Date
    For Each ass In ActiveProject.Tasks(1).Resources(1).Assignments
        St = ass.Start: Fi = ass.Finish
        Set TSV = ass.TimeScaleData(St, Fi, _
            pjAssignmentTimescaledWork, pjTimescaleDays)
            Da = DateValue(St)
        For Each val In TSV
            Debug.Print Da & " " & val / 60 & " hours"
            Da = DateValue(Da + 1)
        Next val
    Next ass
    End Sub
    John

  • Keynote storing obsolete format data, and possible connection to crashes

    An “Ah ha!” moment with Keynote leading to a question about how it stores information regarding themes and fonts, and whether this is a bug in Keynote and/or if there is something that end users can do as a work-around. These points came to my attention today when I exported from Keynote to PowerPoint to share a (very inferior ) version of my presentation with a colleague. Note that the Keynote file I exported from has not exhibited any problems related to error messages or crashes.
    (1) Prior to making the export, I changed all slides to Keynote’s standard out-of-the-box “Gradient” theme since I had used Keynote Theme Park animated “Global Cool” theme (www.keynotethemepark.com). However, even though no slide any longer contained the KTP theme, in doing the export Keynote created a media folder of movies that contained the animated KTP theme. So Keynote is apparently storing obsolete file data and not cleaning up its house after the file is changed.
    (2) Prior to making the export, I changed all slides to use only fonts that I knew to be on my colleague’s PC. However, when I looked under the “Contents” tab of the resulting Powerpoint file’s “Properties” info, I discovered that Powerpoint was listing all the fonts that had been in the original Keynote file but that I had long since changed to Arial and Arial Narrow. Checking through the Powerpoint file slide by slide confirmed that the original fonts do not appear. Again, it appears that Keynote is storing obsolete information.
    MY QUESTION: I am wondering if what I discovered today about Keynote’s “elephant memory” is indicating a bug of some sort, and if so, is there a reasonable work-around for end users that will enable us to avoid having files bloated with obsolete data.
    Also, I am wondering if this storing of obsolete file data could be related to the ”missing file” error reports and Keynote crashes that others have noted in this forum and that I addressed in my previous post. The solution I had discovered was a file level work-around, but the question remained as to what had brought it on.
    BTW, this is with Keynote 3.0.0 because I reinstalled Keynote recently thinking that this procedure might resolve the crashing problem described in my previous post to this forum; the reinstall didn’t, but the problem was solved at a file level in the manner described in my previous post. Now that I finally have time tonight to upgrade again to Keynote 3.02, when I run Software Update expecting to see the Keynote 3.02 upgrade listed, it’s not there. Hmmmmm.… I know I can get it from Apple’s download site but since the site lists two downloads (3.0.1v2 and 3.0.2), I thought it’d be better to let software update manage this process. Now I’m not so sure.

    Thanks, dook and Kyn. Not only does that seem to resolve the issues, but deleting unused master slides dramatically drops the size of the exported presentation (e.g. to 20%).
    I wish the Apple Keynote team would provide a way to more intelligently delete unused themes so as to make it easier to email presentations. It seems to me that theere should be a setting available in the export process where one could do this. The only way I could see to do it was one master slide at a time. Please tell me if I am missing something here.
    I also wish we could export just a range of slides, e.g. from # to #, or slides selected in the Navigator/sorter/organizer.

  • In disk utility, it shows that my external hard drive is somehow unmounted and I can't access it in finder or repair it in Disk Utility. How can I get this working without losing my important data?

    In disk utility, it shows that my external hard drive is somehow unmounted and I can't access it in finder or repair it in Disk Utility. How can I get this working without losing my important data?
    Thank you!

    When you erased the disk did you select Mac OS Extended Journaled as the format option?

  • Tables in which DB15 and DB02 data is stored

    Hi All,
    I'm interested in knowing the tables in which the DB15 and DB02 data is stored. To be more specific..
    1) DB15 - I want to know the tables in which the relationships between Archiving OBjects and Tables is stored. I have identified some tables namely - ARCH_DEF ,ARCH_DELE ,ARCH_DELE,CLASS_DELE,CLASS_DEF.. but the data from these tables does ot directly match what is being displayed in transaction DB15.     
    2) DB02 - I also want to know the tables in which the DB02 statistics is stored, namely the tables in which the Table & Index sizes are stored.
    Thanks in advance,
    Deepika.
    Message was edited by: Deepika Bhaskar

    Hi Deepika!
    ad 2) That's database related stuff. Information is gathered with native SQL out of database system tables.
    Even some data preparation is done by calls of database functions.
    Regards,
    Christian

  • How to set and retrive the index log path stored by parameter LOG_DIRECTORY

    how to set and retrive the index log path stored by parameter LOG_DIRECTORY.

    http://download-west.oracle.com/docs/cd/B19306_01/network.102/b14213/lsnrctl.htm#sthref72
    http://download-west.oracle.com/docs/cd/B19306_01/network.102/b14213/cmctl.htm#sthref239

  • Create a table and upload data in MS ACCESS from SAP ABAP programming?

    Hi All,
    How to create a table in MS ACCESS database and Upload SAP database table data into MS ACCESS table using ABAP programming?
    Explain: My client requirement is " If he/she runs a ABAP Program, that will create a table and upload data into MS ACCESS Database table in background. "
    Could you please give the solution or code? I know the program RIACCESS and I went through the SAP Note 583698.
    Is this only solution for this?  Or Any other possibilities?
    Please give me solution.
    Thanks in advance.

    Hi,
    It is not possible to create tables in a non SAP schema from inside SAP.
    The SAP-Oracle license also does not allow you to create the table (see note 581312):
    the following actions, among other things, are therefore forbidden at database level:
    Creating database users
    Creating database segments
    Querying/changing/creating data in the database
    Using ODBC or other SAP external access methods
    Please refer following link,
    [Ckick Here|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    You can also do it by LSMW,
    If you are using Access 97, you can download directly into an access
    database from SAP. See program RIACCESS for details. You have to establish
    an RFC destination PS_ACCESS_1 and 2.
    There are then a couple of function modules. Go to SE37 and put in
    msaccess and hit PF4.
    The following is from the readme file: sapgui/ps/readme.sap
    For the MS-Access interface SAP delivers 4 files:
    WDPSASTR.EXE This is an RFC server program that is called by SAP R/3
    (PS module). This program creates a MS Access database. The structure
    information of the tables is transferred from R/3. In addition to
    these tables a table named DDIC is created. This table contains the
    structure information and should in no case be modified or deleted.
    WDPSATAB.EXE This is an RFC server program that is called by SAP R/3
    after WDPSASTR. This program filles the tables of the database with data.
    There must not be made any changes of the structure of
    the tables between the calls of WDPSASTR and WDPSATAB.
    WDPSAZET.EXE This is an RFC client program that triggers work/time
    confirmations in the PS module of SAP R/3 (like transaction CN27 Collectiv
    confirm).
    WDPSAMAT.EXE This is an RFC client program that triggers material
    confirmations in the PS module of SAP R/3 (like transaction MB1A - Goods
    Please also refer following links,
    [Click here|Upload data from MS Access tables, to SAP tables.;
    Before using the program "RIACCESS", you need to install the PS utilities, which are part of SAPGUI install CD.
    It is available in the "SAPGUIPS directory".
    Then do the followings :
    1. Select transaction code SALE -> Systems in network-> Define RFC Destination.
    2. You will need two RFC destinations (TCP/IP connections for the front-end workstation).
    Setup the two RFC destinations PS_ACCESS_1 and PS_ACCESS_2 and you'll have to get them to point to
    wdpsastr.exe and wdpsatab.exe respectively.
    3. Then execute RIACCESS and choose PS_ACCESS_1 to generate access tables.
    The system must also be able to access the RFC-DLL files (librfc2.dll, librfc3.dll, librfc4.dll, librfc5.dll, librfc6.dll, vrfc.dll).
    Please note that Access only supports tables with up to 255 fields.

  • Hi, I am bringing my verizon iPad air to Brazil later this month and would like to access cellular data. How do I do that? Thanks in advance.

    Hi I am bringing my verizon iPad air to Brazil later this month and would like to access cellular data. How do I do that? I understand there is something about swapping or disabling sim cards, but I am a little unclear and verizon was no help. Thanks for your help in advance.

    You must have Verizon unlock the device from their service. In Brazil you will have to find a compatible provider and use their SIM in place of Verizon's SIM

Maybe you are looking for