隱藏目錄

Creating a Card List from an SQL Source

You can create a card list by setting up a T-SQL query that retrieves values from an external database; for example, a materials database or list of customer names.

The queries use the standard Microsoft T-SQL formatting. See the SQL Server Books Online for help on how to write queries.

Enterprise PDM lists can only show values in one column. If the SQL Query returns more than one result column, only values from the first column are used.

SQL lists are refreshed by the Enterprise PDM database server service that runs on the SQL server hosting the Enterprise PDM vault where lists are defined. If list updates fail, ensure that the service is installed and configured correctly.

To create a card list from a SQL source:

  1. Determine where the SQL data should be retrieved from. Use the SQL Server Management Studio to locate table names and try the query.
  2. Use the SQL Server Management Studio to locate table names and try the query.
  3. Right-click Lists (for cards) and select Add New.
  4. In the dialog box, type a List name.
  5. For Data type, select From SQL Database.
  6. Under SQL command returning the data, type the SQL query that selects the list values from the database table.
  7. For Server, type the IP address or name of the SQL server hosting the database.
  8. For Database, type the name of the SQL database containing the list values.
  9. Type the login name and password of the SQL user.
  10. To test the SQL query and connection information, click Test.

    If successful, a list of values from the SQL source appears in the Values window.

  11. To complete the list, click File > Save.
  12. To link the list to a card, create or edit a data card.
  13. Add a control to use the list.
  14. In the properties pane, under Items, select Special value and select the SQL-based list.
When a user uses the data card, the values of the control are derived from the list returned by the SQL query.


提供對此主題的意見反應

SOLIDWORKS 歡迎您提供有關於文件呈現方式、正確性、及完整性的意見反應。請使用下方的表格直接將您對此主題的意見與建議傳送給我們的文件團隊。文件團隊並無法回答關於技術支援的問題。按一下此處來獲得關於技術支援的資訊

* 必要的

 
*電子郵件:  
主旨:   說明主題的意見反應
頁面:   Creating a Card List from an SQL Source
*意見:  
*   我承認已閱讀且僅此接受隱私權政策,Dassault Systèmes 將遵循此政策之規定使用我的個人資料

列印主題

選擇要列印的內容範圍:

x

偵測到您使用的瀏覽器版本是舊於 Internet Explorer 7。要獲得最佳的顯示,建議您升級瀏覽器到 Internet Explorer 7 或更新的版本。

 不要再次顯示此訊息
x

Web 式說明內容版本:SOLIDWORKS PDM 2014 SP05

要從 SOLIDWORKS 中停用 Web 式的說明並改用本機說明,請按一下說明 > 使用 SOLIDWORKS Web 式說明

要報告在 Web 式說明介面及搜尋中遇到的問題,請聯絡您當地的技術支援代表。要針對個別說明主題提供意見反應,請使用個別主題頁面中的「提供對此主題的意見反應」連結。