用ODBC连接一个本地PARADOX数据库,用ADOTABLE可以正确使用,但把这个PARADOX放在网络服务器里后,用ODBC建立连接后,点ADOTABLE的ACTION属性设为TURE时,系统出错,提示如下:
[Microsoft][ODBC Paradox Driver]外部数据库驱动程序(11270)中的意外错误.
这是什么原因?
用TABLE连接一个网络PARADOX数据库,在DatabaseName中设置了目录:\\Yf1\可写\dbs,然后在TABLENAEM里也可以正确的找到数据库,但设置TABEL的ACTION属性时,系统出错,提示如下:
Directory is controlled by other .NET file.
Directory c:\
file:\\Yf1\可写\dbs\pdoxusrs.lck
这是什么原因?

解决方案 »

  1.   

    两种解决方法,一种是在BDE Administrator-Configuration-Paradox-Net Dir里面设置为\\Yf1\可写\dbs\。这种方法对所有使用BDE的程序都有影响,主要适应在设计期使用,另一种是在程序中加上Session.NetFileDir:='\\Yf1\可写\dbs\';这样只对你这个程序有影响,不会影响到其它程序。
      

  2.   

    还是同样的报错!
    Directory is controlled by other .NET file.
    Directory c:\
    file:\\Yf1\可写\dbs\pdoxusrs.lck烦啊,解决不了!
      

  3.   

    系统出错,提示如下:
    Directory is controlled by other .NET file.
    Directory c:\
    file:\\Yf1\可写\dbs\pdoxusrs.lck一般出现这样的提示,一般是什么原因引起的?
    我用的操作系统都为WIN2000专业版
    问了好几次了也没有人帮忙解决一下
      

  4.   

    设置Session的
    PrivateDir和NetFileDirSpecifies the directory that contains the Borland Database Engine (BDE) network control file, PDOXUSRS.NET.property NetFileDir: String;DescriptionUse NetFileDir to specify the directory that contains the BDE network control file, PDOXUSRS.NET. This file governs the sharing of Paradox tables on network drives. All applications that share Paradox tables on a network directory must specify the same value for this property, and must have read, write, and create rights for the directory.Delphi derives an initial value for NetFileDir from the BDE configuration file for the Paradox driver. Any value assigned to NetFileDir at design time or runtime overrides the BDE configuration setting.
      

  5.   

    TO:drizzle_yu() 
    能不能说具体一点的,
    要怎么设置,
    要注意一些什么事项?
    谢了!
      

  6.   

    有人帮你;偶来帮;
    其实PARADOX仅仅是一个本地数据库罢了,当然,你用到网络上也可以,不过,首先要保证你是以独占的方式打开的,否则肯定错误;这是前提,首要的;
    而你的错误不在这儿,你没有必要去进行ODBC的设置,你对ODBC的设置可以说对你访问PARADOX是没有什么意义的,或是没有任何意议,你的DM(DataModule)里应该有TADOConnection吧,你可以通过设置ADOConnection.ConnectionSting来进行Connected;而这个过程是在你设计期也可以完成的;当然,如果你没有用到TADOConnection的话,那么加一个吧,加上之后,你把它的ConnectionString设置好之后,让其Connected := True;之后,ADOTable.Connection := TADOConnection;此时,你可以指定TADOTable.TableName := ....
    你可以ADOTABle.active := True;
      

  7.   

    PARADOX是本地数据库,不建议用来作cs结构
      

  8.   

    PARADOX,ACCESS之类,最好是用在单机上,如果网络上推荐使用SQLSERVER,ORACLE