跳至主要内容

AdoDotNet.DataSource

傳回 ADO.NET 資料來源的結構描述集合。

Syntax

AdoDotNet.DataSource(
providerName as text,
connectionString as any,
optional options as record
) as table

Remarks

傳回提供者名稱為 providerName、連接字串為 connectionString 之 ADO.NET 資料來源的結構描述集合。connectionString 可以是文字或成對的屬性值記錄。屬性值可以是文字或數字。屬性值可以是文字或數字。可提供選擇性的記錄參數 options,以指定其他屬性。記錄可包含下列欄位:

  • CommandTimeout : 控制伺服器端查詢在取消之前,可以執行的持續時間長度。預設值為十分鐘。
  • SqlCompatibleWindowsAuth : 邏輯值 (true/false),判斷是否要為 Windows 驗證產生與 SQL Server 相容的連接字串選項。預設值為 true。
  • TypeMap

Category

Accessing data