SQL Server essence

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

create proc sp_default_collation
as
set nocount on
declare @servercollation sysname
select @servercollation = convert(sysname, serverproperty('collation'))

if @servercollation is not NULL
      BEGIN
      select 'Server default collation' = description
            from ::fn_helpcollations() C
            where @servercollation = C.name
      END

set nocount off
go

 

original link: http://www.sqlservercentral.com/scripts/Miscellaneous/30410/ 

posted on 2009-06-26 18:19  天蝎  阅读(275)  评论(0编辑  收藏  举报