I post a prev post of Przemek Maj be not reply to your question This post be marked as GFD Good for documentation IF we reply with GFD all post good for documenting a function the we can easy exstract
On Tue, 29 Apr 2008, Massimo Belgrano wrote: > How is possible use ADSCHECKEXISTENCE function from ads? > Is correct think that function like ADSCHECKEXISTENCE (ads) or sr_file > (sqlrdd) must be replaceable via rdd? > ADSCHECKEXISTENCE > Probably also letodb need a function for check for existence of a file > by server side We already have such functionality: dbExists( <cTable>, [<cIndex>], [<ulConnction>] ) -> <lExists> It checks if table or index to given table exists. F.e.: dbExists( "test" ) returns true if table "test" exists. It's not necessary to add file name extension. It will be done automatically by RDD. And dbExists( "test", "fisrt" ) checks if table "test" has index "first". Some RDDs like DBF* may ignore table name during index checking. We have also dbDrop( <cTable>, [<cIndex>], [<ulConnction>] ) -> <lRemoved> which can remove table with all related files (indexs and memos) f.e.: dbDrop( "test" ) or only given index, f.e. dbDrop( "test", "fisrt" ) AFAIK SQLRDD does not support them at all. In ADS they are supported but only using standard file API and it should be fixed to use ACE functions. Though I do not know if it can be implemented using documented ACE API. 2009/9/9 Viktor Szakáts <[email protected]>: > Hi All, > > What is the proper way to rename a table so that it > also works on remote server? > > We have dbExists(), dbDrop(), we this bit seems to be > missing. Or I'm missing some method which can be used > to get the same effect. > > Remote rename is used when modifying structure of > existing tables, manually implemented (somewhat more > intelligent/efficient) packing and a few other scenarios. > > Brgds, > Viktor > > _______________________________________________ > Harbour mailing list > [email protected] > http://lists.harbour-project.org/mailman/listinfo/harbour > -- Massimo Belgrano _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
