Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

sp_schemafilter (Transact-SQL)

Applies To: SQL Server 2014, SQL Server 2016 Preview

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Modifies and displays information on the schema that is excluded when listing Oracle tables eligible for publishing.

Topic link icon Transact-SQL Syntax Conventions

sp_schemafilter [ @publisher = ] 'publisher' 
   [ , [ @schema = ] 'schema' ] 
   [ , [ @operation = ] 'operation' ] 

[@publisher = ] 'publisher'

Is the name of the non-Microsoft SQL Server Publisher. publisher is sysname, with no default.

[@schema = ] 'schema'

Is the name of the schema. schema is sysname, with a default value of NULL.

[@operation = ] 'operation'

Is the action to be taken on this schema. operation is nvarchar(4), and can be one of the following values.

Value

Description

add

Adds the specified schema to the list of schema that are not eligible for publication.

drop

Drops the specified schema from the list of schema that are not eligible for publication.

help

Returns the list of schema that are not eligible for publication.

Column name

Data type

Description

schemaname

sysname

Is the name of the schema not eligible for publication.

0 (success) or 1 (failure)

sp_schemafilter should only be used for heterogeneous publishers.

Only members of the sysadmin fixed server role at the Distributor can execute sp_schemafilter.

Community Additions

ADD
Show:
© 2015 Microsoft