1为什么数据库连接时,老显示
record locked by another user
2,我打开了数据库,为什么老提示
 unable to open table

解决方案 »

  1.   

    When I try to retrieve a record, the system responds with "RECORD LOCKED." How do I unlock it?
    There are two distinct messages: the first is "RECORD IN USE," and the second is "RECORD IN USE BY ANOTHER USER." "RECORD IN USE" means your institution has use of the record. The ILL request may be in use by another member of your staff, you accidentally put it in the copy display, or, due to inactivity, the system timed out while the record was displayed. "RECORD IN USE BY ANOTHER USER" means that another institution has retrieved the record and is using it--try again later.If the error message you received is "RECORD IN USE," then check with other staff members to be certain someone else at your institution is not using the record. Have everyone use a tog command to see if the record might be sitting in a copy display. If you're unable to locate the record in use at your site, then contact OCLC User & Network Support at 1-800-848-5800 to have the record unlocked, or wait overnight and the record will be released.
      

  2.   

    Question: Paradox displays an "Unable to open table" error when I try to open a table from an Interbase database. What's causing this and how do I fix it?
    Answer: If you're using a recent version of Interbase (or Firebird, its open-source sibling), your BDE alias is probably not using the SQL dialect of your InterBase alias. To fix it, you need to verify that:This is the problem you've run into.BDE is properly configured to support the SQLDIALECT setting for Interbase aliases.Your current alias uses the correct dialect for your Interbase database. While this sounds like a bit of work, it goes quickly and is detailed in the following sections.Verifying the problem
    The easiest way to verify this as your actual problem, review the extended information provided by the Paradox Error dialog. To do this, simply try to open a table in your database and wait for Paradox to display the error message. When it appears, click the [>>] button and see if the extended details are similar to the following:   Column unknown
       [Column name]
       Client SQL dialect 1 does not support reference to DATE datatype
    The phrase "Client SQL dialect" is the pay-off; it indicates that your BDE alias is using a different SQL dialect than your database.Note: In BDE terminology, "client" refers to any application using BDE to connect to databases, such as Paradox for Windows, dBASE for Windows, custom Delphi/C++ Builder applications, and so on.To fix the problem, you need to change the alias to support the proper dialect. Before you can do that, however, you need to verify that BDE supports the required setting. (It is not installed by default.)Verifying BDE supports Interbase SQL dialects
    Before you can specify the SQL dialect of your BDE aliases, you need to verify that BDE supports the required setting. In our experience, the easiest way to do this is with the BDE Administrator itself:From Control Panel, start the BDE Administrator.When the Administrator opens, select the Configuration tab.Use the left panel to select Configuration | Drivers | Native | INTRBASE.Search the settings listed in the Definition panel for one called SQLDIALECT.If the Definition panel contains SQLDIALECT, BDE is configured to support Interbase's SQL dialects and you can skip to the next section.If you don't find a SQLDIALECT setting, you need to add it to the Registry and re-create your existing alias with new one. (This would be a good time to record the settings of your current Interbase alias and then delete it. This would also be a good time to backup your Registry.)To add the SQLDIALECT setting to BDE:Close all BDE clients, include the BDE Administrator, Paradox for Windows, and any other application using BDE to connect to databases.From the Start menu, choose Run, type regedit and then press Enter.When the Registry Editor appear, use the left panel to locate the following settings:   My Computer\HKEY_LOCAL_MACHINE\
          SOFTWARE\Borland\Database Engine\
            Settings\DRIVERS\INTRBASE\DB OPEN
    Right-click the right panel and then choose New | String Key from the shortcut menu. This adds a value called "New Value #1."Rename the new value to SQLDIALECT (Note that this should be capitalized and should not contain spaces.)After changing the name, make sure SQLDIALECT is selected and then press Enter to display the Edit String dialog box.In the Value data edit box, type 1, 2, or 3 (the specific value should be the dialect you use most frequently; if you're not sure, type 1) and then choose OK.Close the Registry Editor to save your changes.At this point, BDE supports Interbase SQL dialects. Now you need to verify that the used to connect to your database uses the dialect assigned to your database, as discussed in the next section.Note: If you've just added the SQLDIALECT setting, you may need to delete all existing Interbase aliases and re-create them before you can use this setting in your aliases, for BDE does not refresh the settings of existing aliases.
    Verifying BDE Interbase aliases use the correct dialect
    To verify that your BDE alias uses the correct dialect, you need to know the dialect used by your Interbase database. Here's one way to do it:Start IBConsole and log into your Interbase server.Connect to your Interbase database by double-clicking its name from the list of registered databases. (If your Interbase database isn't listed, you need to register it.)Once you've connected to the database, you can determine its dialect in one of several ways:The Properties action displays the dialect on the General tab of the Database Properties dialog. Look for a setting called "Database dialect."The Database Statistics action lets you choose from several different statistics. Choose either All Options or Header Information. Again, look for a setting called "Database dialect."The View Metadata action displays the current dialect as the first line of metadata.Each option provides the value you need for SQLDIALECT.Next, verify that your BDE alias uses the correct SQL dialect:Use the Control Panel to start the BDE Administrator.From the Databases tab, choose your current Interbase alias. Be sure to log with an administrative password.After connecting the alias, verify that the SQLDIALECT setting matches the value used in your database.Apply any edits and then restart all BDE client applications for your changes to take effect.When the dialect of your BDE alias matches the dialect of your Interbase database, you should be able to open tables with no further problems.