1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

AccessにPostgreSQLのリンクテーブルを張る

Posted at

概要

この記事では

  1. PostgreSQLのODBCインストール。
  2. DSN登録。

についても書いてます。

AccessにPostgreSQLのリンクテーブルを張るには、まず上記の2つを先にやっておく必要があります。

ODBCインストール

インストーラー取得の為に、下記へ行く。

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

DSN登録

Access(Microsoft365)は32bitを使う場合の設定です。
(DSNもAccessに合わせて32bitを登録します)
image.png

image.png

ざっくり言うと、ANSIは古いOSでも動くが動作がUNICODEに比べて遅い。
特別な理由が無ければUnicode。
image.png

データソース名はAccessでリンクテーブル貼る時に使う。
『テスト』ボタンで接続OKなら下記。
image.png
設定終了したら『保存』ボタン。

Access側の設定

image.png

image.png

image.png

image.png

image.png

リンクテーブル貼れました。
image.png

蛇足

個人的にはレコード数が5,000を超えたらリンクテーブルではなく、パススルークエリを使った方がいいかと思います。
(リンクテーブルだと処理重くなる)

バージョン

Windows 10 Pro 22H2 OSビルド 19045.2546
PostgreSQL 15.1, compiled by Visual C++ build 1914, 64-bit
Microsoft Access for Microsoft 365 MSO (バージョン 2212 ビルド 16.0.15928.20196) 32 ビット

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?