SqlServer中的一些非常用功能

时间:2023-03-09 16:56:50
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

相关文章