SqlServer中的一些非常用功能

1.启用双引号作为分隔符

Set Quoted_Identifier on

  

此时:create table dbo.testcolumn("column" char(2))是合法的。

可通过如下语句检查:

Select quoted_identifier,* from sys.dm_exec_sessions where session_id = @@SPID

  

2.查看数据库版本

SELECT SERVERPROPERTY('Edition') 
--Developer Edition (64-bit)

SELECT SERVERPROPERTY('EngineEdition') 
--3
原文地址:https://www.cnblogs.com/thaughtZhao/p/4257111.html