Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 获取SQL Server选项_Jquery_Sql Server - Fatal编程技术网

Jquery 获取SQL Server选项

Jquery 获取SQL Server选项,jquery,sql-server,Jquery,Sql Server,全部, 有没有办法从SQL Server获取SET COUNT选项的值 如果已经设置了它,我不想发出它,如果设置了它,我想在完成相应的查询执行后重置它 所以我只是在寻找一个简单的SELECT语句 蒂亚 NOCOUNT打开时返回1,否则返回0 当NOCOUNT打开时返回1,否则返回0我相信您指的是NOCOUNTSQL Server选项,而不是COUNT,对吗 以下是一个查询,它将显示当前SQL Server会话的选项: DECLARE @options INT SELECT @options =

全部,

有没有办法从SQL Server获取
SET COUNT
选项的值

如果已经设置了它,我不想发出它,如果设置了它,我想在完成相应的查询执行后重置它

所以我只是在寻找一个简单的
SELECT
语句

蒂亚

NOCOUNT打开时返回1,否则返回0


当NOCOUNT打开时返回1,否则返回0我相信您指的是
NOCOUNT
SQL Server选项,而不是
COUNT
,对吗

以下是一个查询,它将显示当前SQL Server会话的选项:

DECLARE @options INT

SELECT @options = @@OPTIONS

PRINT @options

IF ( (1 & @options) = 1 ) PRINT 'DISABLE_DEF_CNST_CHK' 
IF ( (2 & @options) = 2 ) PRINT 'IMPLICIT_TRANSACTIONS' 
IF ( (4 & @options) = 4 ) PRINT 'CURSOR_CLOSE_ON_COMMIT' 
IF ( (8 & @options) = 8 ) PRINT 'ANSI_WARNINGS' 
IF ( (16 & @options) = 16 ) PRINT 'ANSI_PADDING' 
IF ( (32 & @options) = 32 ) PRINT 'ANSI_NULLS' 
IF ( (64 & @options) = 64 ) PRINT 'ARITHABORT' 
IF ( (128 & @options) = 128 ) PRINT 'ARITHIGNORE'
IF ( (256 & @options) = 256 ) PRINT 'QUOTED_IDENTIFIER' 
IF ( (512 & @options) = 512 ) PRINT 'NOCOUNT' 
IF ( (1024 & @options) = 1024 ) PRINT 'ANSI_NULL_DFLT_ON' 
IF ( (2048 & @options) = 2048 ) PRINT 'ANSI_NULL_DFLT_OFF' 
IF ( (4096 & @options) = 4096 ) PRINT 'CONCAT_NULL_YIELDS_NULL' 
IF ( (8192 & @options) = 8192 ) PRINT 'NUMERIC_ROUNDABORT' 
IF ( (16384 & @options) = 16384 ) PRINT 'XACT_ABORT'

如您所见,这些选项是标志值,当通过逐位ANDing处理时,将显示应用于会话的各个选项。

我相信您指的是
NOCOUNT
SQL Server选项,而不是
COUNT
,对吗

以下是一个查询,它将显示当前SQL Server会话的选项:

DECLARE @options INT

SELECT @options = @@OPTIONS

PRINT @options

IF ( (1 & @options) = 1 ) PRINT 'DISABLE_DEF_CNST_CHK' 
IF ( (2 & @options) = 2 ) PRINT 'IMPLICIT_TRANSACTIONS' 
IF ( (4 & @options) = 4 ) PRINT 'CURSOR_CLOSE_ON_COMMIT' 
IF ( (8 & @options) = 8 ) PRINT 'ANSI_WARNINGS' 
IF ( (16 & @options) = 16 ) PRINT 'ANSI_PADDING' 
IF ( (32 & @options) = 32 ) PRINT 'ANSI_NULLS' 
IF ( (64 & @options) = 64 ) PRINT 'ARITHABORT' 
IF ( (128 & @options) = 128 ) PRINT 'ARITHIGNORE'
IF ( (256 & @options) = 256 ) PRINT 'QUOTED_IDENTIFIER' 
IF ( (512 & @options) = 512 ) PRINT 'NOCOUNT' 
IF ( (1024 & @options) = 1024 ) PRINT 'ANSI_NULL_DFLT_ON' 
IF ( (2048 & @options) = 2048 ) PRINT 'ANSI_NULL_DFLT_OFF' 
IF ( (4096 & @options) = 4096 ) PRINT 'CONCAT_NULL_YIELDS_NULL' 
IF ( (8192 & @options) = 8192 ) PRINT 'NUMERIC_ROUNDABORT' 
IF ( (16384 & @options) = 16384 ) PRINT 'XACT_ABORT'
如您所见,这些选项是标志值,当通过逐位ANDing处理时,将显示应用于会话的各个选项