Skip to main content

2026 年 7 月 16 日

確認已正確設定 Omnissa Access 的 Microsoft SQL 資料庫

若要確認 Microsoft SQL 資料庫已正確設定且能與 Omnissa Access 搭配使用,請在設定資料庫後執行下列驗證指令碼。

先決條件

已建立 Omnissa Access 服務的 Microsoft SQL 資料庫。

程序

  1. 使用您用來建立資料庫之指令碼中建立的 <saasdb> 登入使用者名稱和密碼,登入 Microsoft SQL Server Management Studio 工作階段。

  2. 在編輯器視窗工具列中,按一下新增查詢。

  3. 執行下列命令。視需要編輯命令。

     execute as user = 'domain\username' 
    
     /* Check if user is db owner. Return true */
     SELECT IS_ROLEMEMBER('db_owner') as isRoleMember 
    
     /* Make sure user is not sysadmin. Should return false */
     SELECT IS_SRVROLEMEMBER('sysadmin')  as isSysAdmin
    
     /* check if saas schema exists, should be not null */
     SELECT SCHEMA_ID('saas') as schemaId
    
     /* check schema owner, should be user provided to installer */
     SELECT SCHEMA_OWNER FROM INFORMATION_SCHEMA.SCHEMATA where SCHEMA_NAME='saas'
    
     /* check if saas is user default schema, should return saas */
     SELECT SCHEMA_NAME() as SchemaName
    
     /* check db collation, should return Latin1_General_CS_AS */
     SELECT DATABASEPROPERTYEX('<saasdb>', 'Collation') AS Collation
    
     /* check if read committed snapshot is on, should return true */
     SELECT is_read_committed_snapshot_on FROM sys.databases WHERE name='<saasdb>
    
  4. 在工具列上,按一下 !執行。

如果組態不正確,將會顯示錯誤訊息。在繼續設定 Omnissa Access 服務以使用外部 Microsoft SQL 資料庫之前,請先修正錯誤訊息中所述的問題。

Was this page helpful?

Provide feedback for this topic

Was this topic helpful?

Please do not include any personal or confidential information.

Generating link…