各製品の資料を入手。
詳細はこちら →Embarcadero RAD Studio provides a development environment for Delphi and C++Builder applications. With the CData ODBC Driver for FTP, you gain access to live FTP データ within RAD Studio, abstracting the data into tables, views, and stored procedures that can be used to retrieve and update FTP データ. This article will walk through connecting to FTP and creating a simple VCL application with the Form Designer.
If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.
FTP は、プレーンテキスト接続およびSSL/TLS 接続の両方をサポートします。FTP サーバーに接続するには、RemoteHost、User、およびPassword を指定します。SSLMode およびSSLServerCert を設定して、TSL/SSL による接続をセキュアにします。TLS/SSL を介した接続の設定について詳しくは、ヘルプドキュメントの「高度な設定」を参照してください。
次の接続プロパティを設定し、ファイルシステムのリレーショナルビューをコントロールします。
ストアドプロシージャ は、ファイル、のダウンロード、アップロード、およびプロトコルコマンドの送信に利用できます。 SQL を使用してサーバーと対話する方法の詳細については、ヘルプドキュメントの「データモデル」を参照してください。
You can then follow the steps below to use the Data Explorer to create a FireDAC connection to FTP データ.
Follow the procedure below to start executing queries to FTP データ from a simple VCL application that displays the results of a query in a grid.
Drop a TFDConnection component onto the form and set the following properties:
Drop a TFDQuery component onto the form and set the properties below:
SQL: Click the button in the SQL property and enter a query. For example:
SELECT Filesize, Filename FROM MyDirectory
Drop a TDataSource component onto the form and set the following property:
Drop a TDBGrid control onto the form and set the following property:
You now have an executable application that displays the results of the SQL Query set in the TFDQuery object.
Below you can find other articles for using the CData ODBC Driver with RAD Studio, Delphi, and C++ Builder.