1

我有一个 Excel 2013 文件,它显示来自外部 DB2 数据库的数据。DB2 数据库已移动,我想更改连接信息以指向数据库的新 IP。

如何在 Excel 中执行此操作?

目前,我能找到的唯一方法是创建一个新连接并添加它正在调用的所有视图,而不仅仅是编辑 IP 地址。

4

1 回答 1

2

should be simple enough, you just need to update the connection string

Go to...

Data --> Connections

There you should see a list of the connections used in the spreadsheet.
Select the connection(s), then click --> Properties.

On the Connection Properties dialog, you should see two tabs, select --> Definition.

You should find the information in the text area for --> Connection String

Change it and save it...

========================================================

To find connections made through ODBC connections...

Control Panel --> Administrative Tools --> ODBC

Look thru the tabs for User DSN -- System DSN -- File DSN...

Find the Data Source name found in the Connection String.

Select and click --> Configure.

于 2015-10-07T12:04:42.647 回答