> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DataSetTableRecords オブジェクトの UpdateFromDB メソッド

このメソッドは、レコードをリモートデータベースの状態にリセットします。

> [!WARNING]
>
> ローカルでの変更はすべて失われます。

このメソッドは、Document Definition が編集モードの場合にのみ使用できます。

初回の接続セットアップには、次の方法があります。

* FlexiCapture 12 開発者パッケージを使用する。プロジェクトのプロパティでデータベースの接続文字列を設定し、データセットのプロパティで列のマッピングを設定します。
* 新しいデータセットを接続する際に、[**AddNewAdoSource**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/datasets-addnewadosource.md) メソッドを使用する。このメソッドでも同様に接続文字列を設定できます。

セットアップ後は、[**EnvironmentVariables**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/environmentvariables.md) を使用して接続文字列を変更することもできます。

## 構文

```vb Visual Basic .NET theme={null}
Sub UpdateFromDB()
```

```cpp C++ theme={null}
HRESULT UpdateFromDB();
```

## 戻り値

このメソッドには固有の戻り値はありません。[ABBYY FlexiCapture SDK の関数の標準戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 関連項目

[**DataSetTableRecords**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/datasettablerecords.md)
