// ADS base Connection String, this work fine if both end use Advantage, but if xbase++ program do not use Advantage connection then "Locking situation "Occur" whoever access first another get file lock error. string connectionString = string.Format(@"Provider=Advantage OLE DB Provider;data source={0}; Advantage Server Type=ADS_REMOTE_SERVER;SecurityMode=ADS_IGNORERIGHTS;TableType=ADS_CDX;", folderPath); to fix this i use : string connectionString = string.Format(@"Provider=vfpoledb.1;data source={0}; Advantage Server Type=ADS_REMOTE_SERVER;SecurityMode=ADS_IGNORERIGHTS;TableType=vfp;", folderPath);
I have Novell Server and there ADBANTAGE 9.1 is install and all the Xbase++ / Caliper based written program access DBF file from that location using Novell window client :Userame /password now im trying to build some webservice using VS2008 / Visual studio 2010 ( C# ) to access those .DBF file ( Read and Write ), and if i use ADS .NET provider then im able to do that, but if file not open by non ads program.
|
Your question is hard to understand. to answer this question:
Make sure that you are setting the connection string option LockMode=ADS_COMPATIBLE_LOCKING i f you plan to share the tables with xbase programs not using Advantage Drivers For the second question I suspect the problem is you are using Mapped drives. IIS runs under a different user than your user running in Debug mode. It won't know about mapped drives or likely will not have network permission to access the files. You can try to change the user IIS is running as. Another option is to use the ADS drivers with a UNC path to a share. Be sure to set SecurityMode=ADS_IGNORERIGHTS (which it looks like you do) and it should work. |