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

Code looks something like this, with Table_Names set to an @FM delimited list of tables. And the directory contains a bunch of rev files. Files where originally attached in a different location and copied to this buffer directory where they are then re-attached.

Dir_Name = "C:\Users\jimva\AppData\Local\Temp\TACTIC_BUFFER\5\"
Call Attach_Table(Dir_Name, Table_Names, "", "")

Tables are not attached Status() returns zero. This code works fine in OI 9.4 is something different in OI10?

Comments

  • Could the DataBase name be diferent from the app you are in.

    Try attaching via the dataBase manager in the IDE and see if you get a response
  • Jim - Are you using the UD Service to manage these volumes? If not, do you have a revparam file in these volumes? My theory is that the answer is no to both questions. The UD client that runs in OI10 assumes volumes are managed by the service by default, whereas the UD client for OI9 - at least the UD 4.7 client - did not.

    If this matches your situation, create a revparam file with a ServerOnly=0 line.
  • edited 7:03PM
    Not using UD.
    The files are originaly attached in c:\oi10\data\base\ and show up in the tool panel database as tables.
    All the following is done in RBasic.
    I then deatch the files. They no longer show up in tool panel database.
    Copy them to a new loaction and attach them. They do not attach and I can not open them.
    They do not show up in tool panel database.
    I do not have a revparam file, adding one had no effect.
  • I can remove the old volume and add the new one via database manager.
  • As an experiment try:

    Call Attach_Table(Dir_Name, "", "", "")

    and also doing:

    loop through the Table_Names and attach individually

    Note:
    Ensure that Table_Names are @fm delimited

    If that works, then report the issue in the Rev Issue tracker.
  • I don't understand the difference between this:

    I then deatch the files. They no longer show up in tool panel database.
    Copy them to a new loaction and attach them. They do not attach and I can not open them.
    They do not show up in tool panel database.


    and this...

    I can remove the old volume and add the new one via database manager.


    They are effectively the same operation, but with different results. What am I misunderstanding?
Sign In or Register to comment.