ADS function list

Re: ADS function list

Postby hag » Wed Aug 03, 2011 11:06 pm

Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Re: ADS function list

Postby Francis Barrimbhal » Thu Aug 04, 2011 9:37 am

Please, please send me a copy too... :roll: dr.microso@hotmail.com
I am happy and thankful ...
"Es como una especie de alquimia: las porciones de código se puede transmutar en ciertas soluciones, sorpresa, sonrisas y con frecuencia se materializan en objetos tales como equipo que uso para escribir estas palabras..."
dr.microso@hotmail.com
User avatar
Francis Barrimbhal
 
Posts: 4
Joined: Sun Dec 13, 2009 9:23 pm

Re: ADS function list

Postby sambomb » Thu Aug 04, 2011 10:28 am

Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Re: ADS function list

Postby Francisco Valério » Mon Aug 22, 2016 7:46 pm

I'm working with ADS , but I'm hard of encrypted tables with .adt extension. Someone uses table encryption in ADS and tell me how the process was conducted.
Francisco Valério
 
Posts: 18
Joined: Mon Jan 13, 2014 8:37 pm

Re: ADS function list

Postby reinaldocrespo » Mon Aug 22, 2016 10:26 pm

Hello Francisco;

If these tables are Data Dictionary bound tables, as I suspect they are, then you only need to set the encryption password on the dictionary and then enable encryption for the table in question.

Below is a short SQL script that enables encryption for all tables on a data dictionary:

Code: Select all  Expand view

DECLARE EncryptTables CURSOR as
              SELECT *
                FROM System.Tables
               WHERE table_encryption = 0;
OPEN EncryptTables;

WHILE FETCH EncryptTables DO
     EXECUTE PROCEDURE sp_ModifyTableProperty([EncryptTables].[Name],'TABLE_ENCRYPTION','TRUE','APPEND_FAIL',NULL);
END WHILE;

CLOSE EncryptTables;
 


Notice the script above uses an ADS Store Procedure. You could also use ADSEnableEncryption() + AdsEncryptTable() API functions, as in:
Code: Select all  Expand view

( cAlias )->( AdsEnableEncryption( "EncryptionPassword" ) )
( cAlias )->( AdsEncryptTable() )
 


FYI - it is also possible to encrypt a single record on a table.

I find it is definitely simpler if using ADS Data Dictionary.

Hope that helps.


Reinaldo.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 97 guests