Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2006
    Posts
    2

    Unanswered: "sp_attach_db" Equivalent for DB2

    Hello everyone!

    Does anybody know what is the equivalent of the MSSQL "sp_attach_db" stored procedure for DB2?

    Basically i am looking for a fast way to create a new database from a template database. With MSSQL i was copying and renaming the db files and then attaching them in the server using the "sp_attach_db" command. How can i perform the same thing in db2??


    Thanks!!!

  2. #2
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650
    You may have to do a redirected restore from a backup of the template database ...

    I have used a backup and restore using unix pipe to make a copy of the template database ....

    HTH

    Sathyaram
    Visit the new-look IDUG Website , register to gain access to the excellent content.

  3. #3
    Join Date
    Jun 2006
    Posts
    2
    Yes, this is what i did!!!

    It seems to be working ok.

    Thanks for your reply

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •