June 13, 2012

sp_usertypes_rowset_rmt (Transact-SQL MetaData) Definition

Please note: that the following source code is provided and copyrighted by Microsoft and is for educational purpose only.
The meta data is from an SQL 2012 Server.

I have posted alot more, find the whole list here.

Goto Definition or MetaData

Definition:

sys.sp_usertypes_rowset_rmt(nvarchar @type_server
, nvarchar @type_catalog
, nvarchar @type_name
, nvarchar @type_schema
, int @assembly_id)

MetaData:

   
create procedure sys.sp_usertypes_rowset_rmt
(
@type_server sysname,
@type_catalog sysname = null,
@type_name sysname = null,
@type_schema sysname = null,
@assembly_id int = null
)
as
select
UDT_CATALOG_NAME,
UDT_SCHEMA_NAME,
UDT_NAME,
UDT_ASSEMBLY_ID,
MAX_BYTE_SIZE,
IS_FIXED_LENGTH,
IS_BINARY_ORDERED,
BOUND_CLASS_NAME,
PROG_ID
from
-- ISSUE - below pseudo-function is not exposed by metadata code!
sys.fn_remote_usertypes (@type_server,
@type_catalog,
@type_name,
@type_schema,
@assembly_id)
order by 1, 2, 3

No comments:

Post a Comment

Total Pageviews