How can I compact a MSAccess database with java?

Hi.
I have a question (Please Help!!!):
How can I compact a MSAccess database with java-jdbc? Is it posible?
Thanks

MS Access database has a max length limitation of 2.14GB for Access 2000( 1.07G for Access 97), and won't recycle basically space for update/delete sql so tha it's a good idea to use MS Access database for program, which need update/delete frequent ly data. The programmers of HXTT Access(www.hxtt.net) are writing code for CREATE TABLE/DATABASE sql now. If you need a pure Java solution for PACK TABLE/DATABSE urgently in your project, you should send such a requirement to the Support page of www.hxtt.net so that they can schedule complementing such a fucntion. Otherwise, you should pack your databae manually or visit C++ code for Compact an Access Database Programmatically at
http://www.codeguru.com/Cpp/data/mfc_database/microsoftaccess/article.php/c4327/ , or use Easy Microsoft Access MDB MDE Compactor at http://www.easyhr.com.au/software/easy_mdb_mde_compactor.htm.

Similar Messages

  • How can i create a printable format with Java

    Hello....
    First, my english is not good, but this is possibly my last hope!! I have a program with EJB's, JBoos and a MySql database! The program shows the data from the database and you can do something with these data. Now my problem to print this data. I want create a formular which will be print! I've treid ut with docbook and the javax.print library.
    The first problem is: with linux docbook works very fine. I transform the sgml-file in many formats with "db2pdf or db2ps......"
    but the javax.print library don't find any printservice! I've J2EE 1.4.1 where the bug canceld from the earlier version!
    So the next problem is: with windows the javax.print library works fine! I find the printservices and can print *.ps or *.pdf! But i can't transform the sgml-file in Postscipt or PDF!
    I've tried to solve this problem for two weeks now, but without any success.
    Now my Question is: have somebody experiences with this problem and can help me or is there another possibility to solve my problem!!!
    Thanks
    FIPS

    seems to be important!
    k, do this.
    1. ur english is wonderful for a programmer, are u US :)
    2. i will suggest u create an XML file.
    then u can print it and do the hell with it.
    so : java ==> XML ==> what ever u want.
    and if u can also what ever u want ==> XML ==> java.
    this works also fine.

  • How can I connect to a database using Java Web Start?

    When I run the application without Java Web Start, the program can get the driver and connect to the database. However, when I try to use this same application with Java Web Start, the program can not load the driver. Why is this happening? I am using a mySql database driver.

    I assume you are trying to connect using JDBC, are did you include the jdbc jar in your resources ?

  • How can I create a web server with Java?

    I was interested in working on a program that runs through it's own port on the server similar to webmin.. Basically I'd like a light-weight no thrills web-server for the base of my program I can tweak it later. How can I do this?

    -I agree! but you dont have to re-invent the
    wheel.....Sometimes it is fun to...You only say that because you are a (lovely) nerd :)I got promoted from a "geek" to a "nerd" :)
    I agree that it is fun to implement application
    servers etc, but you also have to think about the
    cost (if some one else than you is paying for your
    time)I get lots of "paid" free time occasionally. But I haven't got as far as implementing web servers (or application servers).

  • How Can I Get The Cpu State With Java?

    are there any method to use??
    what's more,I also wanna to know how can I get
    the current ram that the System is using
    and the threads the System are running?
    Will you please share your knowledge here or
    write to tell me at [email protected]?
    Thanks!!

    if you know how to do this in c++, you can write native methods and use them in java.
    native methods forum:
    http://forum.java.sun.com/forum.jsp?forum=52
    tobias

  • How can I control system's volume with java?

    Hi, I'm trying to make a remote audio control and I need a way to set current volume by code.
    After looking at java sound APIs I came up with this:
    line = mixer.getLine(lineInfo);
    boolean opened = line.isOpen() || line instanceof Clip;
    if(!opened){
         System.out.println("Line is not open, trying to open it...");
         line.open();
         opened = true;
    if(line.isControlSupported(FloatControl.Type.VOLUME)){
              FloatControl volumeCtrl = (FloatControl)line.getControl(FloatControl.Type.VOLUME);
                   System.out.println("Current volume is: "+volumeCtrl.getValue());
    }I tried this code with every mixer I have (althought I think it's the "SPEAKER" one...) but I always get 1.0 as current volume, no matter what.
    So, I'm getting something wrong..can you help me?:(

    Late but just to make it clear, the answer to these kind of questions is the same 999/1000 times. As soon as your question takes this form:
    "how do I do SOMETHING in OPERATING SYSTEM using Java",
    the answer is:
    "You need to write a native library that can do it and call that using JNI or JNA from Java."
    Because Java is cross-platform, it cannot do platform-specific stuff like changing the volume or whatever you want to do to control the OS. You need to use the operating system's unique API layer to do it.

  • How can I connect to a database from ipaq with cldc??

    how can I connect to a database from ipaq with cldc??

    Hi Again
    There is a library by Mimer which allows you do connect to a Mimer SQL Server, don't know must about it, but here is a link.
    http://developer.mimer.com/
    If that doesn't suit you, I suspect that you will have to use some sort of proxy solution. Either by creating a servlet to accept the sql string you want to send, or by creating your own custom proxy server running J2EE. The servlet or the proxy server must be able to receive an SQL String, do the query to the actual database and return the results in some sort of format to the mobile device. Maybe just a space delimited string.
    Hope this helps
    -Daur

  • How can i create a new user with only read rights ?

    How can i create a new user with only read rights ?

    You are asking about a Database User I hope.
    You can look into the Oracle 8i Documentation and find various privillages listed.
    In particular, you may find:
    Chapter 27 Privileges, Roles, and Security Policies
    an intresting chapter.
    You may want to do this with the various tools included with 8i - including the
    Oracle DBA Studio - expand the Security node and you can create USERS and ROLES.
    Or use SQL*Plus. To create a
    user / password named John / Smith, you would login to SQL*Plus as System/manager (or other) and type in:
    Create user John identified by Smith;
    Grant CONNECT to John;
    Grant SELECT ANY TABLE to John;
    commit;
    There is much more you can do
    depending on your needs.
    Please read the documentation.
    -John
    null

  • How can i define a boolean variable with the condition if i got a specific text on a selected column?

    How can i define a boolean variable with the condition if i got a specific text on a selected column?
    Example:
    my select results:
    [id = 102] [Company = 'Microsoft']
    If i got microsoft in 'Company' i want to my another table with the columnName "Microsoft" get "true".
    Can you help me?

    That is called 2-table UPDATE.
    Example:
    http://www.sqlusa.com/bestpractices2005/updatewithcorrelatedsubquery/
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • How can I reuse the BC4J database connection?

    How can I reuse the BC4J database connection?
    I want to use the application module connection without opening another in a custom code. At this level I can’t access de ADF code, that’s why I can’t get the DBConnection from the application module.
    Now, I have a “data-sources.xml” in my project and the application module is configured to access the database from this xml file.

    I found the solution in other Forum. I worked ok.
    Here the code:
    If the Connections-Navigator connection is DBConnection1, the corresponding datasource is jdbc/DBConnection1DS.
    1. Create a JSP page.
    2. In the web.xml of the JSP add
    <resource-ref>
    <res-ref-name>jdbc/DBConnection1DS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    3. In the JSP page obtain a connection with the datasource.
    InitialContext initialContext = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource)initialContext.lookup("java:comp/env/jdbc/DBConnection1DS");
    java.sql.Connection conn = ds.getConnection();

  • How can I send files by FTP with Oracle Portal?

    I want to send some file by FTP.
    How can I send files by FTP with Oracle Portal?
    Any ideas?

    Enrique,
    Are you trying to transfer more content from remote locations to expose as items within a portal page? By itself, the Oracle Portal runs within the context of the database so I'm not sure how FTP at the OS level will help. However, if you're attempting to transfer files from a remote PC to upload within the Portal, here are a couple of suggestions.
    Option 1:
    A. Create a portal page.
    B. Convert a region to Items.
    C. When you're challenged to upload a file from the local OS, ensure you've a drive mapped to your remote location and pick the file to upload into the Oracle9iAS Portal.
    Option 2:
    Alternatively, the Oracle9iAS Portal 9.0.2 supports the WebDAV protocol(Web-based Distributed Authoring and Versioning Protocol) allowing endusers with a WebDAV client to upload content into the Portal seamlessly from their desktop.
    Pls. check out:
    http://portalcenter.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/OTN_CONTENT/MAINPAGE/PUBLISH_CONTMGMT/TECHNOTE_WEBDAV.HTML
    Hope that helps!
    Thanks,
    Sudi Narasimhan
    Oracle9iASPortal Partner Management/Development
    I want to send some file by FTP.
    How can I send files by FTP with Oracle Portal?
    Any ideas?

  • My friend has an iPhone but doesn't use iMessage. How can I send her regular texts with the new iOS 7 update?

    My friend has an iPhone but doesn't use iMessage. How can I send her regular texts with the new iOS 7 update?

    That's because her phone is recognized in the Apple database as an iPhone.  It should eventually convert to SMS but that's above my level of expertise here so hopefully someone else can come along and help you further.  She could just turn on iMessage and solve the problem. Ha!
    Good luck!

  • How can I connect NetBeans 6.1 with SQL Server 2005?

    Hello guys...
    how can i connect NetBeans 6.1 with SQL Server 2005?
    there is no SQL Server in Server list when we create a new Web Project and choose Server.
    I'm new to NetBeans and this is my first time of posting.
    If has some errors and unwanted disturbing,pls understand me. Thanks.
    (If you have references or some snippets, i'll be glad if u can share.)
    scsfdev

    The JDBC-ODBC bridge wasn't recognizing any of the primary keys I had set up in SQL Server. After lots of head banging, here's the solution I came up with:
    1. Download the appropriate driver. SQL Server 2000 requires the SQL Server 2000 JDBC driver (http://www.microsoft.com/downloads/details.aspx?FamilyId=07287B11-0502-461A-B138-2AA54BFDC03A&displaylang=en).
    SQL Server 2005 download: (http://www.microsoft.com/downloads/details.aspx?familyid=C47053EB-3B64-4794-950D-81E1EC91C1BA&displaylang=en)
    3. After installing, right-click on "Libraries" in your project, and choose "Add Library...". Next, give it a name (i.e. SQLServer2000), and select "Class Libraries".
    4. On the next screen, find the JAR files (should be in C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\), and add them under the "Classpath" tab. It will now be available under "Libraries" for future projects.
    5. You can now create a connection to a specific database under the "Services" tab (next to "Projects" and "Files" in the top left of the screen). Select "Microsoft Sql Server 2000 (Microsoft Driver)" and format the "Database URL" like this:
    jdbc:microsoft:sqlserver//YOURSERVER:1433;DatabaseName=YOURDATABASE
    1433 is the default port, though your DBA may have changed it.
    I posted a simpler version of this on the NetBeans.org FAQ page - they had the following title with no content on the answer page:
    "Cannot Select Tables From MsSql 2000 Because It Says No Primary Key Next To Each Table But The Tables DO Have A Primary Key. What Do I Do?"

  • How can I recover my old account with a new one?

    Hi, my hotmail account it was hacked, I can't have acces to my adobe account anymore.
    How can I get acces to my old account with a new Adobe ID?
    I'm already subscribed to creative cloud and I can't have acces to my account and upgrade my products.
    what can I do?
    Thanks

    Thanks Romshina
    I read the link you send me and thanks, but the thing is that I still can't get into my Adobe Id, because when I try they ask me to reset my password in an email they will send me to my old account and there is the problem, because I don't have acces to that old acount, [email protected]
    now this is my new email, because the las one it was hacked and I just can't get back to it.
    So I would like to have access to my account and update this new email account, to have acces to my CC account.
    Thanks
    Date: Fri, 27 Dec 2013 06:51:15 -0800
    From: [email protected]
    To: <Removed by Moderator>
    Subject: Re: How can I recover my old account with a new one? How can I recover my old account with a new one?
        Re: How can I recover my old account with a new one?
        created by Romsinha in Adobe Creative Cloud - View the full discussion
    Hi Guillermo Castellanos,
    Please refer the knowledge base article: http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sig n-faq.html.
    Regards,
    Romit Sinha
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5959347#5959347
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Re: How can I recover my old account with a new one?
    To unsubscribe from this thread, please visit the message page at Re: How can I recover my old account with a new one?. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Adobe Creative Cloud at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How can we view the data asociated with Request ID

    Hi All,
    I have data loaded in an ODS there are multiple files loaded in this ODS. Now i want to view data for a perticuler request OR i want to know how can we know the data associated with a perticular request.
    Please help me out.
    Thanks & Regards
    Amit Kumar

    Copy the request number (not request ID) from the ODS manage screen, Goto RSRQ give the request number and execute. it shows the monitor screen- now goto PSA from the top and check the data. But this possible only if you are loading data to PSA also along with ODS.
    Otherwise, Goto Display Data of ODS from the right click on it -- in the selection screen give the Request ID that you want to check the data. Then it displays only that request data.
    Hope this helps.
    Veerendra.
    Edited by: denduluri veerendra kumar on Dec 1, 2009 12:40 PM
    Edited by: denduluri veerendra kumar on Dec 1, 2009 12:43 PM

Maybe you are looking for

  • Java package concept in ABAP Objects

    Hi, just a question on grouping of classes in ABAP Objects. In Java, you can group classes by "package" to avoid namespace collision, my question, in ABAP Objects, how do you group classes to avoid namespace collision? I know that there is package co

  • C2 03 Software update error code 12052

    Hello, while updating my C2 03 device software with Ovi suite, my device automatically got switch off and getting error that my device is disconnected, try connecting by removing battery and USB cable and reinsert both and press power button for  one

  • Can I install 2 hard drives in my HP Pavillion p6650z?

    We need to get a new hard drive, and I want to migrate EVERYTHING on the original hard drive to the new one--not just files, but the OS and programs as well. My question: Can I simply install a second (internal) hard drive inside the case of my p6650

  • Workspace in use

    Hi all I am running SAP CE on Windows Vista. When I start the Netweaver Developer Studio I get an error that the workspace is in use. Any ideas of what might be wrong? Thanks in advance

  • Music files out of synch

    ITunes is telling me I have 4658 songs and my Ipod is telling me I have 4656. I have synched syched it up and it is still showing a difference. How can that be? compaq   Windows 2000