Advantage Database Server/ja: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | --- | |
| 2 | 2 | [[Portal:Databases/ja|**データベースのポータル**]] | |
| 3 | - | ||
| 4 | - | ||
| 5 | - | ||
| 6 | - | ||
| 7 | - | ||
| 8 | - | ||
| 9 | - | ||
| 10 | - | ||
| 11 | - | ||
| 12 | - | ||
| 13 | - | ||
| 14 | - | ||
| 15 | - | ||
| 16 | - | ||
| 17 | - | ||
| 18 | - | ||
| 19 | - | ||
| 20 | - | ||
| 21 | - | ||
| 22 | - | ||
| 23 | - | ||
| 24 | - | ||
| 25 | - | ||
| 26 | - | ||
| 3 | + | 参照: · [[Databases/ja|Databases 概要]] · [[Database libraries/ja|ライブラリ]] · [[Database field type/ja|フィールドの型]] · [[Data Controls tab/ja|コントロール]] · [[Lazarus DB Faq/ja|FAQ]] · [[SqlDBHowto/ja]] · [[Working With TSQLQuery/ja|TSQLQuery の利用]] · [[How to write in-memory database applications in Lazarus/FPC/ja|メモリ上で動作するデータベースの作り方]] · チュートリアル/練習となる記事: · [[Lazarus Database Overview/ja|概要]] · [[SQLdb Tutorial0/ja|0 - データベースのセットアップ]] · [[SQLdb Tutorial1/ja|1 - 開始]] · [[SQLdb Tutorial2/ja|2 - 編集]] · [[SQLdb Tutorial3/ja|3 - クエリ]] · [[SQLdb Tutorial4/ja|4 - データモジュール]] · [[SQLdb Programming Reference/ja]] · 各種データベース · Advantage \- [[MySQLDatabases/ja|MySQL]] \- [[mssqlconn/ja|MSSQL]] \- [[postgres/ja|Postgres]] \- [[Firebird/ja|Interbase]] \- [[Firebird/ja|Firebird]] \- [[Oracle/ja|Oracle]] \- [[ODBCConn/ja|ODBC]] \- [[TParadox/ja|Paradox]] \- [[SQLite/ja|SQLite]] \- [[Lazarus Tdbf Tutorial/ja|dBASE]] \- [[MS Access/ja|MS Access]] \- [[Zeos tutorial/ja|Zeos]] | |
| 27 | 4 | ||
| 28 | - | ||
| 29 | - | ||
| 30 | - | ||
| 31 | - | ||
| 32 | - | ||
| 33 | - | ||
| 34 | - | ||
| 35 | - | ||
| 36 | 5 | ||
| 37 | 6 | ## 概要 | |
| 38 | 7 | ||
| 39 | 8 | この短いチュートリアルは**Advantage Database Server** によってホストされるテーブルにAdvantage [[TDataSet/ja]]派生を使用し始めることを意図している。 | |
| 40 | 9 | ||
| 41 | 10 | ## Advantage TDataSetのインストール | |
| 42 | 11 | ||
| 43 | 12 | ### Windows | |
| 44 | 13 | ||
| 45 | 14 | もしWindowsにAdvantage TDataSetインストールするには、Advantage Delphiコンポーネントをダウンロードしてインストールする必要がある(version 10.1 もしくはそれ以降)。 インストールメディアはAdvantageウェブサイトよりダウンロードできる[here.](<http://www.advantagedatabase.com>) | |
| 46 | 15 | ||
| 47 | 16 | ### Linux | |
| 48 | 17 | ||
| 49 | 18 | Advantage TDataSetをLinuxにインストールするには、2つの段階を踏まえる必要がある。最初にLinux用のAdvantage Client Engine(バージョン10.1)をダウンロードしてインストール 、次いでLinux TDataSetソースtarボールをダウンロードしてインストールする。両方とも<http://devzone.advantagedatabase.com>のAdvantage Developer Zpneにある(The Advantage Client EngineダウンロードはAdvantage Developer Zoneの"Product Download"セクションにあり、Linux TDataSetソースはCodeCentralのDelphi Applicationsセクションにある)。 | |
| 50 | 19 | ||
| 51 | 20 | ## Installing the Advantage Package | |
| 52 | 21 | ||
| 53 | 22 | Once the TDataSet Descendant is installed, you'll want to move on to installing the package into Lazarus. | |
| 54 | 23 | ||
| 55 | 24 | 1. From Lazarus, click on "Package", then "Open Package File (.lpk)..." and browse to the adsl.lpk file in the TDataSet installation directory (or in the directory you extracted the TDataSet source). | |
| 56 | 25 | 2. In the package window, click the "Compile" button. | |
| 57 | 26 | 3. Upon successful compilation, click the "Install" button, and select "Yes" to rebuild Lazarus. | |
| 58 | 27 | 4. The Lazarus IDE should successfully compile and re-start with the Advantage components installed. | |
| 59 | 28 | ||
| 60 | 29 | ## A simple Advantage project | |
| 61 | 30 | ||
| 62 | 31 | Start a new project to start working with Advantage data. | |
| 63 | 32 | ||
| 64 | 33 | 1. Drop a TAdsConnection object from the Advantage tab of the palette onto your form. (The TAdsConnection object is the left-most object on the Advantage tab.) | |
| 65 | 34 | 2. In the Object Inspector, click the drop-down for the AliasName property, and select "ADTDemoData". | |
| 66 | 35 | * Alternately, you can select the ConnectPath property and enter (or browse to) the path to the Help\ADS_Data directory beneath your TDataSet (or acesdk on Linux) install directory. | |
| 67 | 36 | 3. Expand the AdsServerTypes property, and change the "stADS_LOCAL" property to True. | |
| 68 | 37 | * If you have an Advantage Database server configured and running, you may set "stADS_REMOTE" to true instead. | |
| 69 | 38 | 4. Drop a TAdsTable object on the form. (The TAdsTable object is immediately to the right of the TAdsConnection object on the tab, and it looks like a red table.) | |
| 70 | 39 | 5. Set the AdsConnection Property for AdsTable1 to AdsConnection1 (the connection object you just dropped in step 1.) | |
| 71 | 40 | 6. Scroll down to the "TableName" property, and use the drop-down box to select the biolife.adt table. | |
| 72 | 41 | 7. Drop a [[TDataSource]] component on the form, and set its DataSet property to "AdsTable1". | |
| 73 | 42 | 8. Drop a [[TDBGrid]] component on the form, and set its "DataSource" property to "Datasource1". | |
| 74 | 43 | 9. At this point, you should be able to select the AdsTable1 object and set its "Active" property to "True". | |
| 75 | 44 | 10. Finally, run the project. (Note that you may need to save the project before running it.) | |
| 76 | 45 | ||
| 77 | 46 | Since the Advantage components descend from the [[TDataSet]], you can use these components with any data-aware component that supports the TDataSet. This extremely simple example should demonstrate how simple it is to get started with Advantage. | |
| 78 | 47 | ||
| 79 | 48 | --- | |
| 80 | 49 | *From the Free Pascal wiki, page "Advantage Database Server/ja", as the Internet Archive kept it on 2025-01-17, last changed on 2024-09-25. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
