Advantage Database Server/ja: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Advantage Database Server/ja
| Old | New | Line | |
|---|---|---|---|
| 1 | + | --- | |
| 2 | + | [[Portal:Databases/ja|**データベースのポータル**]] | |
| 3 | + | 参照: | |
| 4 | + | ||
| 5 | + | * [[Databases/ja|Databases 概要]] | |
| 6 | + | * [[Database libraries/ja|ライブラリ]] | |
| 7 | + | * [[Database field type/ja|フィールドの型]] | |
| 8 | + | * [[Data Controls tab/ja|コントロール]] | |
| 9 | + | * [[Lazarus DB Faq/ja|FAQ]] | |
| 10 | + | * [[SqlDBHowto/ja]] | |
| 11 | + | * [[Working With TSQLQuery/ja|TSQLQuery の利用]] | |
| 12 | + | * [[How to write in-memory database applications in Lazarus/FPC/ja|メモリ上で動作するデータベースの作り方]] | |
| 13 | + | ||
| 14 | + | チュートリアル/練習となる記事: | |
| 15 | + | ||
| 16 | + | * [[Lazarus Database Overview/ja|概要]] | |
| 17 | + | * [[SQLdb Tutorial0/ja|0 - データベースのセットアップ]] | |
| 18 | + | * [[SQLdb Tutorial1/ja|1 - 開始]] | |
| 19 | + | * [[SQLdb Tutorial2/ja|2 - 編集]] | |
| 20 | + | * [[SQLdb Tutorial3/ja|3 - クエリ]] | |
| 21 | + | * [[SQLdb Tutorial4/ja|4 - データモジュール]] | |
| 22 | + | * [[SQLdb Programming Reference/ja]] | |
| 23 | + | ||
| 24 | + | 各種データベース | |
| 25 | + | ||
| 26 | + | Advantage \- [[MySQLDatabases/ja|MySQL]] \- [MSSQL](</index.php?title=mssqlconn/ja&action=edit&redlink=1> "mssqlconn/ja \(page does not exist\)") \- [[postgres/ja|Postgres]] \- [[Firebird/ja|Interbase]] \- [[Firebird/ja|Firebird]] \- [[Oracle/ja|Oracle]] \- [[ODBCConn/ja|ODBC]] \- [Paradox](</index.php?title=TParadox/ja&action=edit&redlink=1> "TParadox/ja \(page does not exist\)") \- [[SQLite/ja|SQLite]] \- [dBASE](</index.php?title=Lazarus_Tdbf_Tutorial/ja&action=edit&redlink=1> "Lazarus Tdbf Tutorial/ja \(page does not exist\)") \- [[MS Access/ja|MS Access]] \- [Zeos](</index.php?title=Zeos_tutorial/ja&action=edit&redlink=1> "Zeos tutorial/ja \(page does not exist\)") | |
| 27 | + | ||
| 28 | + | ## Contents | |
| 29 | + | ||
| 30 | + | * 1 概要 | |
| 31 | + | * 2 Advantage TDataSetのインストール | |
| 32 | + | * 2.1 Windows | |
| 33 | + | * 2.2 Linux | |
| 34 | + | * 3 Installing the Advantage Package | |
| 35 | + | * 4 A simple Advantage project | |
| 36 | + | ||
| 37 | + | ## 概要 | |
| 38 | + | ||
| 39 | + | この短いチュートリアルは**Advantage Database Server** によってホストされるテーブルにAdvantage [[TDataSet/ja]]派生を使用し始めることを意図している。 | |
| 40 | + | ||
| 41 | + | ## Advantage TDataSetのインストール | |
| 42 | + | ||
| 43 | + | ### Windows | |
| 44 | + | ||
| 45 | + | もしWindowsにAdvantage TDataSetインストールするには、Advantage Delphiコンポーネントをダウンロードしてインストールする必要がある(version 10.1 もしくはそれ以降)。 インストールメディアはAdvantageウェブサイトよりダウンロードできる[here.](<http://www.advantagedatabase.com>) | |
| 46 | + | ||
| 47 | + | ### Linux | |
| 48 | + | ||
| 49 | + | 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 | + | ||
| 51 | + | ## Installing the Advantage Package | |
| 52 | + | ||
| 53 | + | Once the TDataSet Descendant is installed, you'll want to move on to installing the package into Lazarus. | |
| 54 | + | ||
| 55 | + | 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 | + | 2. In the package window, click the "Compile" button. | |
| 57 | + | 3. Upon successful compilation, click the "Install" button, and select "Yes" to rebuild Lazarus. | |
| 58 | + | 4. The Lazarus IDE should successfully compile and re-start with the Advantage components installed. | |
| 59 | + | ||
| 60 | + | ## A simple Advantage project | |
| 61 | + | ||
| 62 | + | Start a new project to start working with Advantage data. | |
| 63 | + | ||
| 64 | + | 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 | + | 2. In the Object Inspector, click the drop-down for the AliasName property, and select "ADTDemoData". | |
| 66 | + | * 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 | + | 3. Expand the AdsServerTypes property, and change the "stADS_LOCAL" property to True. | |
| 68 | + | * If you have an Advantage Database server configured and running, you may set "stADS_REMOTE" to true instead. | |
| 69 | + | 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 | + | 5. Set the AdsConnection Property for AdsTable1 to AdsConnection1 (the connection object you just dropped in step 1.) | |
| 71 | + | 6. Scroll down to the "TableName" property, and use the drop-down box to select the biolife.adt table. | |
| 72 | + | 7. Drop a [[TDataSource]] component on the form, and set its DataSet property to "AdsTable1". | |
| 73 | + | 8. Drop a [[TDBGrid]] component on the form, and set its "DataSource" property to "Datasource1". | |
| 74 | + | 9. At this point, you should be able to select the AdsTable1 object and set its "Active" property to "True". | |
| 75 | + | 10. Finally, run the project. (Note that you may need to save the project before running it.) | |
| 76 | + | ||
| 77 | + | 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 | + | ||
| 79 | + | --- | |
| 80 | + | *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).* |
