This is an old revision of the document!


SQL Server

Get Config Settings

SELECT *
FROM sys.configurations

Select Into Variable

USE master;
GO
 
DECLARE @TblTmp TABLE ([name] nvarchar(100), is_disabled bit)
 
INSERT INTO @TblTmp ([name], is_disabled)
SELECT [name], is_disabled
FROM sys.sql_logins
WHERE principal_id = 1
 
SELECT * FROM @TblTmp
  • qnd/sql_server.1640725166.txt.gz
  • Last modified: 2021/12/28 20:59
  • by mgupton