sp_get_distributor (Transact-SQL)

判斷散發者是否安裝在伺服器中。這個預存程序執行於任何資料庫中散發者所在的電腦。

主題連結圖示Transact-SQL 語法慣例

語法

sp_get_distributor 

結果集

資料行名稱 資料類型 描述

installed

int

0 = 否;1 = 是

distribution server

sysname

散發者伺服器的名稱

distribution db installed

int

0 = 否;1 = 是

is distribution publisher

int

0 = 否;1 = 是

has remote distribution publisher

int

0 = 否;1 = 是

備註

sp_get_distributor 主要是供 Microsoft SQL Server Management Studio 用於快照式、交易式和合併式複寫中。

權限

任何使用者都可以執行 sp_get_distributor。當這個預存程序由散發資料庫的 db_ownerreplmonitor 固定資料庫角色成員執行,或由至少一個已發行資料庫之 db_owner 固定資料庫角色成員執行時,將會傳回非 NULL 的結果集。當這個預存程序由至少一個已發行資料庫之發行集存取清單 (PAL) 中的使用者執行時也會傳回非 NULL 結果集,而非 SQL Server 發行者之散發資料庫 PAL 中的使用者,也能夠執行 sp_get_distributor

請參閱

參考

複寫預存程序 (Transact-SQL)

其他資源

How to: Configure Publishing and Distribution (Replication Transact-SQL Programming)
散發者與發行者資訊指令碼

說明及資訊

取得 SQL Server 2005 協助