DSN 使用 powershell 为 Big Query 设置 Simba ODBC 驱动程序

问题描述 投票:0回答:0

我正在尝试使用 powershell 设置 dsn,但我无法配置“加密敏感数据”参数。它始终保持“仅供当前用户使用”,而我需要“供所有用户使用”。这个参数是最新的odbc驱动版本新增的,之前是没有的

enter image description here

我使用以下代码结构(为了显示代码,我用我的个人值代替 xx):

Add-OdbcDsn -Name "xx" -DriverName "Simba ODBC Driver for Google BigQuery" -DsnType "System" -Platform "64-bit" -SetPropertyValue @("EncryptedSensitiveData=0","OAuthMechanism=0", "Email= xx”、“KeyFilePath=xx”、“Catalog=xx”、“DefaultDataset=xx”)

powershell google-bigquery odbc dsn
© www.soinside.com 2019 - 2024. All rights reserved.