使用具名数据库连接

如果您具有共享相同数据库的任何 BarTender 文档,并且将以相同的方式配置那些数据库,则应创建具名数据库连接具名数据库连接会保存您的连接属性和参数,因此您每次在 BarTender 文档中使用这些内容时无需重新输入它们。 如果连接参数发生更改,您可以在一个位置编辑它们,而不是在使用连接的每个文档中都编辑它们。

在某些情况下,您可能想要停止使用与特定文档的具名数据库连接,并创建将仅在该文档中使用的连接设置的单独副本。 要执行此操作,请在“数据库设置”对话框的“连接属性”页面上,单击“停止使用具名数据库连接”。 您对无名数据库连接所进行的任何更改只会应用到当前的文档。 具名数据库连接将仍对其他文档可用。

Closed创建具名数据库连接

首先,您需要在“数据库设置”对话框中配置数据库连接。 Then, you can choose to save it as a named database connection.

  1. 从“文件”菜单中选择“数据库设置”。 或者,单击主工具栏上的 图标。 将发生以下其中一种情况:

    • If you are currently connected to a database, this operation opens the Database Setup dialog.

    • If you have not previously connected to a database, this operation launches the Database Setup Wizard. Follow the steps in the wizard to complete the connection setup for the selected file type. 在向导结束时,单击“完成”以打开“数据库设置”对话框。

  2. 在“连接属性”屏幕上,单击“创建具名数据库连接”以打开相应的对话框。

  3. 在“名称”字段中,输入已配置的数据库连接的名称。

  4. 单击确定

Closed修改具名数据库连接

要配置现有的具名数据库连接,请在“数据库设置”对话框的“连接属性”页面上,单击“配置具名数据库连接”以打开“数据库设置向导”。 从这里可以更改或配置具名数据库连接。

Configuring the named database connection will affect all documents that use the connection.

Closed使用具名数据库连接连接到数据库

  1. 从“文件”菜单中选择“数据库设置”。 或者,单击主工具栏上的 图标。 将发生以下其中一种情况:

    • If you have not previously connected to a database, this operation launches the Database Setup Wizard.

    • If you are currently connected to a database, this operation opens the Database Setup dialog. 单击 图标以启动“数据库设置向导”。

  2. 在该向导的初始页上,选择“使用现有具名数据库连接”。

  3. 选择要使用的具名数据库连接。

  4. 单击完成

相关主题