Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How to download records of a table in XML format

  1. #1
    Junior Member
    Join Date
    Aug 2009
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default How to download records of a table in XML format

    Dear Forum Members,

    Using JDBC, we can write a Java program using other APIs (including JDBC API) for downloading records of a given table into a tab-delimited text file.

    Similarly, is there any API or existing Java tool is available to download records of a table in XML? Because, many database products including SAP ERP has features to upload data from XML into tables.

    The purpose is that once I download data from tables of a DB server in XML using Java program to a presentation server (Drive C: or Drive D: or any other LAN drive / directory), I can easily upload downloaded data in XML files to tables of any other database server, as that other DB server has features to upload data from XML file.

    Also, I want to automate the process. That is, for example, once data is populated in Sales table of MS SQL Server, I want to trigger automatic execution (without manual intervention) of my Java program which has been written to download data from that table (that is, Sales table) in XML format to a presentation server.

    For this automatic execution, kindly tell me the process to be followed.

    Regards,
    Ranga.
    Java Programmer


  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: How to download records of a table in XML format

    I know that in MYSQL you can do a mysqldump to xml.

    MySQL :: MySQL 5.1 Reference Manual :: 4.5.4 mysqldump — A Database Backup Program

    I don't know if there is something similar in MSSQL.

    // Json

Similar Threads

  1. Unable to insert records
    By javaprogrammer11 in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: March 24th, 2010, 03:16 AM
  2. [SOLVED] Help with code, Says number is NaN and i cant format it
    By NewGuy in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 4th, 2010, 08:28 PM
  3. help with text format codes
    By vanchan09 in forum Java Theory & Questions
    Replies: 1
    Last Post: November 15th, 2009, 04:12 PM
  4. Replies: 2
    Last Post: July 8th, 2009, 06:35 AM
  5. Getting table height using JSTL
    By jsnx7 in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: March 19th, 2009, 12:03 PM