Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

Attach_Table

2»

Comments

  • Hmm, this what I'm doing. Detach existing volume. Use osread and oswrite to copy rev files from that volume to a new location. I then attempt to attach those files at the new location. Is that a different volume name?
  • Depends if the NEW location was originally a copy of the OLD location. If so, then I would say that is the issue but you should have get an 404 error in Status and @file_error
  • when you say you oscopycopy the rev files, does that include the revmedia, if so, then maybe if you use Rename_Volume after the copies then that may work.
    I dont see any OI10 do for it but it is in OI10 object


  • I copy all the files in the directory, I have checked and they are byte identical. The new location has never existed.
  • @file_error looks like this

  • That's testing a new location for the files, outside of %temp%
  • I figured it out, one of the files in the existing volume was not getting detached and I didnt notice.

    Thanks for the patience help.
  • Good suggestion.
  • Ok, one more hint (sorry, just a me thing), so that you dont have to maintain a list of table names if you create more and also be a catchall
    change
    Call Attach_Table(Dir_Name, Table_Names, "", "")
    to
    Call Attach_Table(Dir_Name, "", "", "") ;* defaults to all tables in the volume
  • Thanks for the tips and help, it's appreciated.
Sign In or Register to comment.