June 13, 2012

sp_validlang (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_validlang(nvarchar @name)

MetaData:

   
-- -- -- -- -- -- -- -- -- -- -- -- -- -- sp_validlang -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
CREATE PROCEDURE sys.sp_validlang
@name sysname
AS

-- Check to see if this language is in Syslanguages.
if exists (select * from sys.syslanguages where name = @name or alias = @name)
return(0)

raiserror(15033,-1,-1,@name)
return (1) -- sp_validlang

No comments:

Post a Comment

Total Pageviews