DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    siva Guest

    db2 import-help!


    dear sir

    i face problem during importing in db2 udb 8.1.The export is successfull
    but while importing i got the following error

    connect to sample
    export to myfile.ixf of ixf messages msgs.txt select * from staff
    number of rows exported:35

    connect to luse
    import from myfile.ixf of ixf messages msgi.txt insert into staff
    SQL3304N the table does not exists

    and i used GUI tools also....my question is it is necessary to create the
    table prior with the exact structure of the exported table and only datas
    can be imported from the exported file?does db2 does not create the table
    on its own while importing into a database like sqlserver or oracle.experts
    kindly help me and give your valuable guidance.

    thank you
    siva!




  2. #2
    Greg Nash Guest

    Re: db2 import-help!

    Hi,

    There are a few different options with the import command. You have
    used "insert into", which means insert the records into an existing
    table. There is also "replace into" which means remove all existing
    records prior to inserting. The one you're looking for is (I think)
    "create into".

    --greg

    siva wrote:
    > dear sir
    >
    > i face problem during importing in db2 udb 8.1.The export is successfull
    > but while importing i got the following error
    >
    > connect to sample
    > export to myfile.ixf of ixf messages msgs.txt select * from staff
    > number of rows exported:35
    >
    > connect to luse
    > import from myfile.ixf of ixf messages msgi.txt insert into staff
    > SQL3304N the table does not exists
    >
    > and i used GUI tools also....my question is it is necessary to create the
    > table prior with the exact structure of the exported table and only datas
    > can be imported from the exported file?does db2 does not create the table
    > on its own while importing into a database like sqlserver or oracle.experts
    > kindly help me and give your valuable guidance.
    >
    > thank you
    > siva!
    >
    >
    >



  3. #3
    siva Guest

    Re: db2 import-help!


    hi greg

    thanks...yes "create into" worked for me.

    NO WAR!
    siva!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links