Quantcast
Channel: SQL Server Database Engine forum
Viewing all 10269 articles
Browse latest View live

Are 2014 GDRs independent?


SQL Server 2016 installation error - The system cannot find the file specified.

$
0
0

Hi, I am facing issue while installing sql server 2016 developer edition on windows server 2016 

log details from details.txt file .. any help

(01) 2019-08-21 11:58:20 SQLEngine: : File versions : ['C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Install\sqlscriptdowngrade.dll':2015.2015.5026.0], ['C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\sqlscriptdowngrade.dll':(non-existing)].
(01) 2019-08-21 11:58:20 SQLEngine: : Version-copying file from 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Install\sqlscriptdowngrade.dll' to 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\sqlscriptdowngrade.dll'.
(01) 2019-08-21 11:58:20 Slp: SlpConfigAction.ExecuteAction(actionId: SqlEngineDowngradeDLLConfigAction_install_confignonrc_Cpu64) completed
(01) 2019-08-21 11:58:20 Slp: Checkpoint: INSTALL:CONFIGNONRC:SQL_ENGINE_CORE_INST
(01) 2019-08-21 11:58:20 Slp: Completed Action: SqlEngineDowngradeDLLConfigAction_install_confignonrc_Cpu64, returned True
(01) 2019-08-21 11:58:20 Slp: ---- Flush datastore cache before calling configuration action 'SqlEngineConfigAction_install_confignonrc_Cpu64'
(01) 2019-08-21 11:58:20 Slp: ----------------------------------------------------------------------
(01) 2019-08-21 11:58:20 Slp: Running Action: SqlEngineConfigAction_install_confignonrc_Cpu64
(01) 2019-08-21 11:58:20 Slp: Action Data:
(01) 2019-08-21 11:58:20 Slp:   Feature = SQL_Engine_Core_Inst_sql_engine_core_inst_Cpu64
(01) 2019-08-21 11:58:20 Slp:   Scenario = install
(01) 2019-08-21 11:58:20 Slp:   Timing = ConfigNonRC
(01) 2019-08-21 11:58:20 Slp:   ConfigObjectType = Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineSetupPrivate
(01) 2019-08-21 11:58:20 Slp:   FeatureName = SQL_Engine_Core_Inst
(01) 2019-08-21 11:58:20 Slp:   FeatureCpuType = Cpu64
(01) 2019-08-21 11:58:20 Slp:   FeaturePackageId = sql_engine_core_inst
(01) 2019-08-21 11:58:20 Slp:   SlipstreamInstall = 1
(01) 2019-08-21 11:58:20 SQLEngine: : Action Scenario: Install, Feature Scenario: Install, Resolved Scenario Install 
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get account sid for user account NT Service\MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get sid for user account NT Service\MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get account sid for user account NT Service
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get sid for user account NT Service
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: container.ActiveNode = 
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: container.IsActiveNodeUpgraded = False
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: container.Version = 
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: container.IsDefaultInstance = True
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: container.InstanceId = MSSQL13.MSSQLSERVER
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: container.ReferenceInstanceId = MSSQL13.MSSQLSERVER
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: container.InstanceName = MSSQLSERVER
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: container.SqlServerServiceName = MSSQLSERVER
(01) 2019-08-21 11:58:20 SQLEngine: --ProductProperties: Retrieving product properties from local node.
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine 
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open registry subkey SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.MSSQLSERVER\Setup
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get registry value ProductCode
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine 
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open registry subkey SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.MSSQLSERVER\Setup
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get registry value Language
(01) 2019-08-21 11:58:20 SQLEngine: --GroupProperties: Loading group properties from local machine.
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine 
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open registry subkey SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.MSSQLSERVER\Setup
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get registry value SQLGroup
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get account from sid S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine 
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open registry subkey SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.MSSQLSERVER\Setup
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get registry value SQLPath
(01) 2019-08-21 11:58:20 SQLEngine: --EffectiveProperties: Dumping Effective Properties for new instance.
(01) 2019-08-21 11:58:20 SQLEngine: --EffectiveProperties: InstanceId = MSSQL13.MSSQLSERVER
(01) 2019-08-21 11:58:20 SQLEngine: --EffectiveProperties: InstanceName = MSSQLSERVER
(01) 2019-08-21 11:58:20 SQLEngine: --EffectiveProperties: IsDefaultInstance = True
(01) 2019-08-21 11:58:20 SQLEngine: --EffectiveProperties: SqlServerServiceName = MSSQLSERVER
(01) 2019-08-21 11:58:20 SQLEngine: --EffectiveProperties: IsExpressSku = False
(01) 2019-08-21 11:58:20 SQLEngine: --InstallProperties: Dumping Install Properties
(01) 2019-08-21 11:58:20 SQLEngine: --InstallProperties: EnableRanu = False
(01) 2019-08-21 11:58:20 SQLEngine: --InstallProperties: SecurityMode = SQL
(01) 2019-08-21 11:58:20 SQLEngine: --InstallProperties: LoginMode = 2
(01) 2019-08-21 11:58:20 SQLEngine: --InstallProperties: SqlCollation = SQL_Latin1_General_CP1_CI_AS
(01) 2019-08-21 11:58:20 SQLEngine: --InstallProperties: SqlAdminAccounts = RXLUSA\570000928
(01) 2019-08-21 11:58:20 SQLEngine: --InstallProperties: SqlServiceStartupType = Automatic
(01) 2019-08-21 11:58:20 SQLEngine: --InstallProperties: SqlAccount = NT Service\MSSQLSERVER
(01) 2019-08-21 11:58:20 SQLEngine: --InstallProperties: SqlInstantFileInit = False
(01) 2019-08-21 11:58:20 SQLEngine: --InstallProperties: AddCurrentUserAsSQLAdmin = False
(01) 2019-08-21 11:58:20 SQLEngine: --InstallProperties: TempDbFileCount     = 4
(01) 2019-08-21 11:58:20 SQLEngine: --InstallProperties: TempDbFileSize      = 8
(01) 2019-08-21 11:58:20 SQLEngine: --InstallProperties: TempDbFileGrowth    = 64
(01) 2019-08-21 11:58:20 SQLEngine: --InstallProperties: TempDbLogFileSize   = 8
(01) 2019-08-21 11:58:20 SQLEngine: --InstallProperties: TempDbLogFileGrowth = 64
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: Dumping Registry Properties
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: SqlServiceRelativeRegPath = System\CurrentControlSet\Services\MSSQLSERVER
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: CompleteInstanceRegPathByName = SOFTWARE\Microsoft\MSSQLServer
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: CompleteInstanceRegPathById = SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.MSSQLSERVER
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: ReferenceInstanceRegPathById = SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.MSSQLSERVER
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: MSSQLServerInstanceRegPath = SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQLServer
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: ReferenceMSSQLServerInstanceRegPath = SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQLServer
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: SetupInstanceRegPath = SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.MSSQLSERVER\Setup
(01) 2019-08-21 11:58:20 SQLEngine: --RegistryProperties: ReferenceSetupInstanceRegPath = SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.MSSQLSERVER\Setup
(01) 2019-08-21 11:58:20 SQLEngine: --ProductProperties: Dumping Product Properties
(01) 2019-08-21 11:58:20 SQLEngine: --ProductProperties: ProductCode = 51574d2c-de28-4441-bdc2-967f0ffc0918
(01) 2019-08-21 11:58:20 SQLEngine: --ProductProperties: LCID = 1033
(01) 2019-08-21 11:58:20 SQLEngine: --GroupProperties: Dumping Group Properties
(01) 2019-08-21 11:58:20 SQLEngine: --GroupProperties: SqlEngineGroupSid = S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003
(01) 2019-08-21 11:58:20 SQLEngine: --GroupProperties: SqlEngineGroupNameFromSid = NT SERVICE\MSSQLSERVER
(01) 2019-08-21 11:58:20 SQLEngine: --GroupProperties: SqlEngineGroupNameFromSidNoDomain = MSSQLSERVER
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: Dumping Directory Properties
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: DataRootDirectory = C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: SystemDataDirectory = C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: InstallSqlInstanceDir = C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: DefaultDataDirectory = C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: DefaultLogDirectory = C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: BackupDirectory = C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Backup
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: TempDbDirectory = C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: TempDbDataDirectories = C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: TempDbLogDirectory = C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: ErrorLogDirectory = C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Log
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: TemplateDataDirectory = C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Template Data
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: SqlInstanceBinnDir = C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: SqlInstanceTemplatesDir = C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\Templates
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: MasterDbPath = 
(01) 2019-08-21 11:58:20 SQLEngine: --PublicBasedDirectoryProperties: MasterLogPath = 
(01) 2019-08-21 11:58:20 SQLEngine: --SqlEngineSetupPrivate: Install: ConfigNonRC(Prepare) : Engine Configuration
(01) 2019-08-21 11:58:20 SQLEngine: : Checking Engine checkpoint 'UpdateOrInstall_SqlServiceCheckExists'
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open SC Manager
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open service handle for service MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to close service handle for service MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to close SC Manager
(01) 2019-08-21 11:58:20 SQLEngine: --SqlService: Updating sql service 'MSSQLSERVER'
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to set binary file for service MSSQLSERVER, binary file "C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\sqlservr.exe" -sMSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open SC Manager
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open service handle for service MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Invoking ChangeServiceConfig Win32 API
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to close service handle for service MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to close SC Manager
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to set description for service MSSQLSERVER, description Provides storage, processing and controlled access of data, and rapid transaction processing.
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open SC Manager
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open service handle for service MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to close service handle for service MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to close SC Manager
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to set display name for service MSSQLSERVER, display name SQL Server (MSSQLSERVER)
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open SC Manager
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open service handle for service MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Invoking ChangeServiceConfig Win32 API
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to close service handle for service MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to close SC Manager
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to set service sid type for service MSSQLSERVER, serivce sid type SERVICE_SID_TYPE_UNRESTRICTED
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open SC Manager
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open service handle for service MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to close service handle for service MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to close SC Manager
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get service start mode for service MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open SC Manager
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open service handle for service MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Invoking QueryServiceConfig Win32 API for buffer size
(01) 2019-08-21 11:58:20 Slp: Invoking QueryServiceConfig Win32 API with AllocHGlobal buffer
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to close service handle for service MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to close SC Manager
(01) 2019-08-21 11:58:20 Slp: Sco: Returning service start mode Automatic
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get account from sid S-1-5-80
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get account sid for user account NT SERVICE\MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get sid for user account NT SERVICE\MSSQLSERVER
(01) 2019-08-21 11:58:20 SQLEngine: : Checking Engine checkpoint 'ChangeServiceSecuiryt'
(01) 2019-08-21 11:58:20 SQLEngine: --SqlEngineSetupPrivate: Applying SDDL to Service 'SQLWriter' SDDL: D:(A;NP;0x00020011;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open SC Manager
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open service handle for service SQLWriter
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to close service handle for service SQLWriter
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to close SC Manager
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to set security descriptor for service SQLWriter, security descriptor D:(A;NP;0x00020011;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to normalize security descriptor D:(A;NP;0x00020011;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to replace account with sid in security descriptor D:(A;NP;0x00020011;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 Slp: ReplaceAccountWithSidInSddl -- SDDL to be processed:  D:(A;NP;0x00020011;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 Slp: ReplaceAccountWithSidInSddl -- SDDL to be returned:  D:(A;NP;0x00020011;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to set security descriptor for service SQLWriter, security descriptor D:(A;NP;0x00020011;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to normalize security descriptor D:(A;NP;0x00020011;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to replace account with sid in security descriptor D:(A;NP;0x00020011;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 Slp: ReplaceAccountWithSidInSddl -- SDDL to be processed:  D:(A;NP;0x00020011;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 Slp: ReplaceAccountWithSidInSddl -- SDDL to be returned:  D:(A;NP;0x00020011;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to merge service security settings for service SQLWriter
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to persist service security settings for service SQLWriter
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get account from sid S-1-5-80
(01) 2019-08-21 11:58:20 SQLEngine: : Checking Engine checkpoint 'AddRightsToInstanceSID'
(01) 2019-08-21 11:58:20 SQLEngine: --SqlEngineSetupPrivate: Adding User Rights/Privileges 'SeServiceLogonRight, SeAssignPrimaryTokenPrivilege, SeChangeNotifyPrivilege, SeIncreaseQuotaPrivilege' to server SID NT SERVICE\MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to add account rights to user account NT SERVICE\MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to modify account rights for user account NT SERVICE\MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get sid for user account NT SERVICE\MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get policy handle for server 
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open policy handle
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get account from sid S-1-5-80
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get account from sid S-1-5-32-558
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to initialize user group Performance Monitor Users
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to check if user group Performance Monitor Users exists
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to open root DirectoryEntry object for local computer
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to check if container 'WinNT://RHUDEVSQLDB04,computer' of group exists
(01) 2019-08-21 11:58:20 Slp: Sco: User group Performance Monitor Users exists
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to determine if user is a member of user group Performance Monitor Users, user name NT SERVICE\MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to check if user group Performance Monitor Users exists
(01) 2019-08-21 11:58:20 Slp: Sco: Root DirectoryEntry object already open
(01) 2019-08-21 11:58:20 Slp: Sco: User group existence already verified - returning true for Performance Monitor Users
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get account sid for user account NT SERVICE\MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get sid for user account NT SERVICE\MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get account sid for user account NT SERVICE
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get sid for user account NT SERVICE
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to see if user NT SERVICE\MSSQLSERVER exists
(01) 2019-08-21 11:58:20 Slp: Sco.User.OpenRoot - Attempting to get root DirectoryEntry for local computer
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to look up AD entry for user NT SERVICE\MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco.User.OpenRoot - root DirectoryEntry object already opened for this computer for this object
(01) 2019-08-21 11:58:20 Slp: Sco.User.LookupADEntry - Attempting to find user account NT SERVICE\MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: User NT SERVICE\MSSQLSERVER located
(01) 2019-08-21 11:58:20 Slp: Sco: User NT SERVICE\MSSQLSERVER is already a member
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get account from sid S-1-5-80
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get account sid for user account NT SERVICE\MSSQLSERVER
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to get sid for user account NT SERVICE\MSSQLSERVER
(01) 2019-08-21 11:58:20 SQLEngine: : Checking Engine checkpoint 'SetSecuritySysDir'
(01) 2019-08-21 11:58:20 SQLEngine: --SqlEngineSetupPrivate: Setting Security Descriptor D:P(A;OICI;0x1200a9;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003) on Directory C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to set security descriptor for directory C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL, security descriptor D:P(A;OICI;0x1200a9;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to normalize security descriptor D:P(A;OICI;0x1200a9;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to replace account with sid in security descriptor D:P(A;OICI;0x1200a9;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 Slp: ReplaceAccountWithSidInSddl -- SDDL to be processed:  D:P(A;OICI;0x1200a9;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 Slp: ReplaceAccountWithSidInSddl -- SDDL to be returned:  D:P(A;OICI;0x1200a9;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:20 SQLEngine: --MofRegistration: Validating Instance Name 'MSSQLSERVER' of MOF
(01) 2019-08-21 11:58:20 SQLEngine: --MofRegistration: Transforming MOF file C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\Sqlwep-uni.mof to C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\Sqlwep-uni.mof.transformed
(01) 2019-08-21 11:58:20 SQLEngine: : Checking Engine checkpoint 'ReplaceStringMof'
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to replace string in file, source file 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\Sqlwep-uni.mof', output file 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\Sqlwep-uni.mof.transformed'
(01) 2019-08-21 11:58:20 SQLEngine: --MofRegistration: Installing WMI MOF
(01) 2019-08-21 11:58:20 SQLEngine: : Checking Engine checkpoint 'InstallWmiMof'
(01) 2019-08-21 11:58:20 Slp: Sco: Attempting to install MOF file
(01) 2019-08-21 11:58:20 Slp: Running: C:\Windows\system32\WBEM\mofcomp.exe "C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\Sqlwep-uni.mof.transformed"
(04) 2019-08-21 11:58:21 Slp: Microsoft (R) MOF Compiler Version 10.0.14393.0
(04) 2019-08-21 11:58:21 Slp: Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
(04) 2019-08-21 11:58:21 Slp: Parsing MOF file: C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\Sqlwep-uni.mof.transformed
(04) 2019-08-21 11:58:21 Slp: MOF file has been successfully parsed
(04) 2019-08-21 11:58:21 Slp: Storing data in the repository...
(04) 2019-08-21 11:58:26 Slp: Done!
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine 
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to open registry subkey SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.MSSQLSERVER\Setup
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to get registry value Version
(01) 2019-08-21 11:58:26 SQLEngine: --PerfmonRegistration: Registering performance counters for service 'MSSQLSERVER'
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to set service name MSSQLSERVER
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to set ini file full path C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\sqlctr.ini
(01) 2019-08-21 11:58:26 SQLEngine: : Checking Engine checkpoint 'PerfmonServiceKey'
(01) 2019-08-21 11:58:26 SQLEngine: --PerfmonRegistration: Checking whether the SQL Engine service registry key exists 'System\CurrentControlSet\Services\MSSQLSERVER'
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine 
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to open registry subkey System\CurrentControlSet\Services\MSSQLSERVER
(01) 2019-08-21 11:58:26 SQLEngine: : Checking Engine checkpoint 'PerfmonServiceKeyFlush'
(01) 2019-08-21 11:58:26 SQLEngine: : Checking Engine checkpoint 'PerfmonRegister'
(01) 2019-08-21 11:58:26 SQLEngine: --PerfmonRegistration: Creating perfmon registry key at 'System\CurrentControlSet\Services\MSSQLSERVER'
(01) 2019-08-21 11:58:26 SQLEngine: --PerfmonRegistration: Comparing file 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\DllTmp64\sqlctr130.dll' to file 'C:\Windows\system32\perf-MSSQLSERVER-sqlctr13.2.5026.0.dll'
(01) 2019-08-21 11:58:26 SQLEngine: --PerfmonRegistration: The files are different or some of them are missing
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to RobustCopy source file 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\DllTmp64\sqlctr130.dll' to target file 'C:\Windows\system32\perf-MSSQLSERVER-sqlctr13.2.5026.0.dll'
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to VersionCopy source file 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\DllTmp64\sqlctr130.dll' to target file 'C:\Windows\system32\perf-MSSQLSERVER-sqlctr13.2.5026.0.dll'
(01) 2019-08-21 11:58:26 Slp: Sco: File 'C:\Windows\system32\perf-MSSQLSERVER-sqlctr13.2.5026.0.dll' does not exist
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to copy file 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\DllTmp64\sqlctr130.dll' to file 'C:\Windows\system32\perf-MSSQLSERVER-sqlctr13.2.5026.0.dll'
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to get security descriptor for file 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\DllTmp64\sqlctr130.dll'
(01) 2019-08-21 11:58:26 Slp: Sco: Returning security descriptor O:SYG:SYD:AI(A;ID;FA;;;SY)(A;ID;FA;;;BA)(A;ID;0x1200a9;;;BU)(A;ID;0x1200a9;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:26 SQLEngine: --PerfmonRegistration: Comparing file 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\DllTmp32\sqlctr130.dll' to file 'C:\Windows\SysWOW64\perf-MSSQLSERVER-sqlctr13.2.5026.0.dll'
(01) 2019-08-21 11:58:26 SQLEngine: --PerfmonRegistration: The files are different or some of them are missing
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to RobustCopy source file 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\DllTmp32\sqlctr130.dll' to target file 'C:\Windows\SysWOW64\perf-MSSQLSERVER-sqlctr13.2.5026.0.dll'
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to VersionCopy source file 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\DllTmp32\sqlctr130.dll' to target file 'C:\Windows\SysWOW64\perf-MSSQLSERVER-sqlctr13.2.5026.0.dll'
(01) 2019-08-21 11:58:26 Slp: Sco: File 'C:\Windows\SysWOW64\perf-MSSQLSERVER-sqlctr13.2.5026.0.dll' does not exist
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to copy file 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\DllTmp32\sqlctr130.dll' to file 'C:\Windows\SysWOW64\perf-MSSQLSERVER-sqlctr13.2.5026.0.dll'
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to get security descriptor for file 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\DllTmp32\sqlctr130.dll'
(01) 2019-08-21 11:58:26 Slp: Sco: Returning security descriptor O:SYG:SYD:AI(A;ID;FA;;;SY)(A;ID;FA;;;BA)(A;ID;0x1200a9;;;BU)(A;ID;0x1200a9;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to register performance counter perf-MSSQLSERVER-sqlctr13.2.5026.0.dll, symbol install path C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn, counter prefix service name SQLServer
(01) 2019-08-21 11:58:26 Slp: PerfCounter service name: MSSQLSERVER
(01) 2019-08-21 11:58:26 Slp: PerfCounter original INI template file: C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\sqlctr.ini
(01) 2019-08-21 11:58:26 Slp: PerfCounter temporary INI file that will be registered: C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\perf-MSSQLSERVERsqlctr.ini
(01) 2019-08-21 11:58:26 Slp: PerfCounter Library file name: perf-MSSQLSERVER-sqlctr13.2.5026.0.dll
(01) 2019-08-21 11:58:26 Slp: PerfCounter Open function: OpenSQLPerformanceData
(01) 2019-08-21 11:58:26 Slp: PerfCounter Collect function: CollectSQLPerformanceData
(01) 2019-08-21 11:58:26 Slp: PerfCounter Close function: CloseSQLPerformanceData
(01) 2019-08-21 11:58:26 Slp: PerfCounter symbol file install path: C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn
(01) 2019-08-21 11:58:26 Slp: PerfCounter counter test/help prefix: SQLServer
(01) 2019-08-21 11:58:26 Slp: PerfCounter unregister first before registration
(01) 2019-08-21 11:58:26 Slp: PerfCounters will be unregistered for service name: MSSQLSERVER
(01) 2019-08-21 11:58:26 Slp: PerfCounter temporary INI file that will be removed: C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\perf-MSSQLSERVERsqlctr.ini
(01) 2019-08-21 11:58:26 Slp: PerfCounter calling unlodctr: 'MSSQLSERVER'
(01) 2019-08-21 11:58:26 Slp: PerfCounter the registered temporary INI file not specified or not existing, skip deleting it.
(01) 2019-08-21 11:58:26 Slp: PerfCounter deleting registry key: HKLM\System\CurrentControlSet\Services\MSSQLSERVER\Performance
(01) 2019-08-21 11:58:26 Slp: PerfCounter writing to registry key: HKLM\System\CurrentControlSet\Services\MSSQLSERVER
(01) 2019-08-21 11:58:26 Slp: PerfCounter creating registry key: HKLM\System\CurrentControlSet\Services\MSSQLSERVER\Performance
(01) 2019-08-21 11:58:26 Slp: PerfCounter creating value: Library = perf-MSSQLSERVER-sqlctr13.2.5026.0.dll
(01) 2019-08-21 11:58:26 Slp: PerfCounter creating value: Open = OpenSQLPerformanceData
(01) 2019-08-21 11:58:26 Slp: PerfCounter creating value: Collect = CollectSQLPerformanceData
(01) 2019-08-21 11:58:26 Slp: PerfCounter creating value: Close = CloseSQLPerformanceData
(01) 2019-08-21 11:58:26 Slp: PerfCounter munging INI tempate: 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\sqlctr.ini' -> 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\perf-MSSQLSERVERsqlctr.ini'
(01) 2019-08-21 11:58:26 Slp: Sco: Attempting to replace string in file, source file 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\sqlctr.ini', output file 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\perf-MSSQLSERVERsqlctr.ini'
(01) 2019-08-21 11:58:26 Slp: PerfCounter calling lodctr: 'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Binn\perf-MSSQLSERVERsqlctr.ini'
(01) 2019-08-21 11:58:26 Slp: Prompting user if they want to retry this action due to the following failure:
(01) 2019-08-21 11:58:26 Slp: ----------------------------------------
(01) 2019-08-21 11:58:26 Slp: The following is an exception stack listing the exceptions in outermost to innermost order
(01) 2019-08-21 11:58:26 Slp: Inner exceptions are being indented
(01) 2019-08-21 11:58:26 Slp: 
(01) 2019-08-21 11:58:26 Slp: Exception type: Microsoft.SqlServer.Configuration.Sco.ScoException
(01) 2019-08-21 11:58:26 Slp:     Message: 
(01) 2019-08-21 11:58:26 Slp:         The system cannot find the file specified.
(01) 2019-08-21 11:58:26 Slp:         
(01) 2019-08-21 11:58:26 Slp:     HResult : 0x84bb0001
(01) 2019-08-21 11:58:26 Slp:         FacilityCode : 1211 (4bb)
(01) 2019-08-21 11:58:26 Slp:         ErrorCode : 1 (0001)
(01) 2019-08-21 11:58:26 Slp:     Data: 
(01) 2019-08-21 11:58:26 Slp:       WatsonData = SQLCTR130.DLL@OpenSQLPerformanceData@CollectSQLPerformanceData@CloseSQLPerformanceData
(01) 2019-08-21 11:58:26 Slp:       DisableRetry = true
(01) 2019-08-21 11:58:26 Slp:     Inner exception type: System.ComponentModel.Win32Exception
(01) 2019-08-21 11:58:26 Slp:         Message: 
(01) 2019-08-21 11:58:26 Slp:                 The system cannot find the file specified.
(01) 2019-08-21 11:58:26 Slp:                 
(01) 2019-08-21 11:58:26 Slp:         HResult : 0x80004005
(01) 2019-08-21 11:58:26 Slp:         Error : 2
(01) 2019-08-21 11:58:26 Slp:         Stack: 
(01) 2019-08-21 11:58:26 Slp:                 at Microsoft.SqlServer.Configuration.Sco.PerformanceCounter.LoadPerformanceCounter(String symbolInstallPath, String counterPrefixServiceName)
(01) 2019-08-21 11:58:26 Slp:                 at Microsoft.SqlServer.Configuration.Sco.PerformanceCounter.RegisterPerformanceCounter(String libraryFileName, String openFunction, String collectionFunction, String closeFunction, String symbolInstallPath, String counterPrefixServiceName)

Failsafe to avoid logins to connect to Primary in Read_Only Routing

$
0
0

Hi,

I don't have the servers to test this currently, so posting here. 

So future config plan is to have read only routing on readable secondaries with connection strings having application intent set to read_only. 

Above should suffice normally, but i am looking into a failsafe, so that the app can't login for reads by even a mistake to the primary.

I was under the impression that disabling those logins on primary would be a simple workaround?

my confusion arises from 

https://blogs.msdn.microsoft.com/mattn/2012/04/25/calculating-read_only_routing_url-for-alwayson/

Where i see that any connection goes to the primary 1st -> My question is if the login there is disabled, will the connection still be routed as explained in the link to secondary or will it get failed?

Please let me know, thanks.


D

How to associate the CPU Reads, Duration columns in the DMV dm_exec_query_stats query result with the CPU, reads, duration columns in the Profiler

$
0
0
We can use DMV or profiler to get the execution cost for some queries in SQL Server. but how to assotiate the columns they returned?

For example, we can get CPU, Reads, Duration in Profiler. and can get total_elapsed_time, total_worker_time and total_logical_reads from dm_exec_query_stats. But their values are quite different.

Then how can I convert the values gotten by DMV to the values gotten by Profiler?


Query execution phases

$
0
0
I need help in understanding the query execution phases in detail in sql server. I need this to optimize queries.

Question related to Alwayson Availability groups

$
0
0

Hi Experts,

I have a doubt on Always on Availability groups. While trying to add(i.e. JOIN only)  a database to AG. It was throwing below error.



I tried to check the backup history of that database. There were 10 log backups taken to a network share since last FULL backup. Full backup was already restored with no recovery on secondary.

Now, instead of copying those 10 log backups , I took a fresh local differential backup and tried to restore it with no recovery option. restore was successful. However, when I tried to add the database to AG from Primary replica , it again throws the same above error message.  I took another differential backup, and tried restoring with no recovery and it back to AG. Still same error message.. yes I do agree there are some incoming connections to the database on Primary (even before adding to AG). Finally, I tried to take a fresh log backup on primary, restored with no recovery on secondary. now performed the JOIN only to AG. This way, I was able to add the database AG.

Now, my question is, Is there any difference in restoring Differential and log backup in this scenario ?
I just went for differential to avoid copying/restoring so many log backups. I have observed this in more than 2 times in our environment and that is the main reason why I want to know more about this. LOG BACKUP restore always worked.

Thank you
Sam

Cannot create a row of size 8069 which is greater than the allowable maximum row size of 8060.

$
0
0

Hi Team,

One of the batch it is failing due to the below error by always on one of the tables while inserting,we are helping with dbcc cleantable(reindex/reorg-no luck)-they are not ready to change design-so how this can be fixed.

Error messages

Error has occurred    Cannot create a row of size 8069 which is greater than the allowable maximum row size of 8060.

Table structer(I removed the column names and other columns).

IS_NULLABLEDATA_TYPE
YESdatetime
YESnvarchar
YESint
YESnvarchar
YESint
NOint
NOint
NOint
NOint
NOint
NOint
NOint
NOint
NOint
NOint
YESnvarchar
NOnvarchar
YESnvarchar
NOint
YESreal
YESreal
YESreal
YESint
YESnvarchar
YESreal
YESnvarchar
YESnvarchar
YESntext
YESnvarchar
YESint
YESreal
YESreal
YESreal
YESint
YESreal
YESreal
YESreal
YESreal
YESreal
YESreal
YESreal
YESreal
YESreal
YESint
YESnvarchar
YESreal
YESreal
YESmoney
YESmoney
YESint
YESfloat
YESreal
YESreal
YESreal
YESreal
YESint
YESint
YESint
YESnvarchar
YESnvarchar
YESreal
YESreal
YESreal
YESint
YESint
YESint
YESint
YESint
YESreal
YESreal
YESreal
YESint
YESint
YESint
YESint
YESint
YESreal
YESreal
YESreal
YESint
YESint
YESint
YESint
YESint
YESreal
YESreal
YESreal
YESint
YESint
YESint
YESint
YESint
YESreal
YESreal
YESreal
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESmoney
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESnvarchar
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESfloat
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESint
YESreal
YESreal
YESreal
YESreal
YESreal
YESreal
YESint
YESnvarchar
YESnvarchar
YESntext
YESreal
YESnvarchar
YESreal
YESreal
YESnvarchar
YESdatetime
YESdatetime
YESdatetime
YESdatetime
YESdatetime
YESdatetime
YESdatetime
YESdatetime
YESnvarchar
YESnvarchar
YESreal
YESreal
YESreal
YESnvarchar
YESdatetime
YESdatetime
YESint
YESnvarchar
NOint
YESint
YESint
YESint
YESint
YESint
YESnvarchar
YESnvarchar
NOint
YESint
YESint
YESint
YESint
YESnvarchar
YESint
YESnvarchar
YESnvarchar
YESnvarchar


Regards, S_NO "_"

Questions on SQL Audit

$
0
0

Hello!

Thisdocument says:

"The SQL Server Audit feature enables you to audit server-level and database-level groups of events and individual events."

...and it does contain the list of atomic events but only for the database-level audit (Database-Level AuditActions) - for server-level audit there's only the list of action GROUPS (Server-Level Audit ActionGroups) and the audit server operation event classes are given for each audit group instead, for example:

SERVER_OPERATION_GROUP This event is raised when Security Audit operations such as altering settings, resources, external access, or authorization are used. Equivalent to theAudit Server Operation Event Class.

Anyway I don't seem to understand how the class description corresponds to the contents of the audit events being registered (event 33205) so

Q1: Is there a way to audit server-level actions instead of action groups?

Q2: Does any documentation on how to parse the audit event 33205 exist ?

Thank you in advance,
Michael


Shrink Operation

$
0
0

Could someone please help me understand the different between below 2 shrink operations.

- shrink database with truncate only option.

- shrink file command passed on log file.

DBCC SHRINKDATABASE(N'DB1', 20, TRUNCATEONLY)
DBCC SHRINKFILE (DB1_log,10)

Eating database log file - Select stament

$
0
0

hi,

while running below query , that eating database log files (grow ). is this select statement increase log file grow? 

select id,mpn,last_confirmed_asin from fn_get_asin_by_itemid(@idvalue)

Func script: 

CREATE function  fn_get_asin_by_itemid(@itemid int) RETURNS TABLE  
AS  
RETURN    select pd.id, pd.mpn, last_confirmed_asin from 
   (select item_id as item_id,last_confirmed_asin from amztm(nolock) where item_id=@itemid and disable=0 and item_condition is null) ai 
   inner join    (select id,mpn from proddet(nolock) where id=@itemid) pd on ai.item_id=pd.id   

Query compillation

$
0
0

in sql query compilation . there are few steps, like parse,binding, normalize

sometime I see terms like algebrized tree/normalize tree/ query graph . what's their different and how they look like ?

Plan Guide vs PLan freezing

$
0
0

what's the difference between two ?Plan Guide vs PLan freezing

and what't the limitation of Plan Guide ??

Parallelism

$
0
0

I want to know how to check how many CPU used in the parallelism in the query plan ?

And what's gather streams/repartition streams ?

Do you want to be acknowledged as SQL Server Database Engine Guru? Submit your work to Sep 2019 competition!

$
0
0


What is TechNet Guru Competition?

Each month Microsoft TechNet Wiki council organizes a contest of the best articles posted that month. This is your chance to be announced as MICROSOFT TECHNOLOGY GURU OF THE MONTH!

One winner in each category will be selected each month for glory and adoration by the MSDN/TechNet Ninjas and community as a whole. Winners will be announced in dedicated official post, a tweet fromMicrosoft Wiki Ninjas Twitter account, links will be published atMicrosoft TNWiki group on Facebook, and other acknowledgement from the community will follow.

Some of our biggest community voices and many MVPs have passed through these halls on their way to fame and fortune.

If you have already made a contribution in the forums or gallery or you published a nice blog, then you can simply convert it into a shared wiki article, reference the original post, and register the article for the TechNet Guru Competition. The articles must be written in Sep 2019 and must be in English. However, the original blog or forum content can be from beforeSep 2019.

Come and see who is making waves in all your favorite technologies. Maybe it will be you!


Who can join the Competition?

Anyone who has basic knowledge and the desire to share the knowledge is welcome. Articles can appeal to beginners or discuss advanced topics. All you have to do is to add your article to TechNet Wiki from your own specialty category.


How can you win?

  1. Please copy/Write over your Microsoft technical solutions and revelations to TechNetWiki.
  2. Add a link to your new article on THIS WIKI COMPETITION PAGE (so we know you've contributed)
  3. (Optional but HIGHLY Recommended) Add a link to your article at the TechNetWiki group on Facebook to get feedback and tips from the council members and from the community. The group is very active and people love to help. You can even get direct improvements to your article before the contest starts.

Do you have any question or want more information?

Feel free to ask any questions below, or Join us at the official MicrosoftTechNet Wiki groups on facebook. Read More about TechNet Guru Awards.

If you win, people will sing your praises online and your name will be raised as Guru of the Month.

PS: Above top banner came from Ronen Ariely.


Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
----------------------------
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page

Dynamic Security - SSAS Tabular Model DAX

$
0
0
Is it possible to apply dynamic security based on same table but on different column? For example, based on Product dimension permission limitations should be applied for some users on ProductBrand column and for some users on ProductCode column. I did dynamic security only on one column, could not find any DAX function to take columns dynamically and also making them dynamic. Current situation of DAX query: CONTAINS(    UserPermissions,    UserPermissions[UserLogin],    USERNAME(),    UserPermissions[FilterValue],    Product[ProductBrand] ) 

SQL Server Perofrmance

$
0
0

Hi Team,

We opened a case with Microsoft Support with SEV A on 08/30. this about SQL Server 2016 Performance issue.

Working day and night with Microsoft. But no improvement. 

Could anyone help me what is the next plan of action, like can we request microsoft to esclate this to next level?

Find All Client IPs from SQL Server Alert Log

$
0
0

Hello,

I have experience of Oracle database and have a very little experience in SQL Server. 
In our environment multiple SQL Server instances are running, Our IT Security team scan the systems for vulnerabilities and share the reports accordingly. Most vulnerabilities are related to database open access,for Oracle databases we get the client IP from listener's log file and white listed in sqlnet.ora file, 
Now for SQL Server how can I get client IPs from SQL Server alert log (if these client IPs are written in alert log) to implement firewall (for IPs white listing) and what is the way forward?

Regards,
Taoqir


SQL Server: Temporal Table: History table on a different filegroup without defining the schema for history table

$
0
0

Q: Is there a way that the SQL Server creates a history table automatically on a specified filegroup without creating/defining the schema for History table?

Scenario:

  1. Two years back we have enabled SYSTEM_VERSIONING(Temporal Table feature) on nearly 300 existing tables. 
  2. Prior to this we had a custom way of maintaining this feature by using triggers. So we had definitions of both history table and primary table in our Database solution created in Visual Studio 2017.
  3. With the introduction of Temporal Tables feature we have deleted the definitions of history tables from the solution to avoid schema mismatch issues when enabling Temporal feature for both existing and new tables in future.
  4. But we missed a point that the history tables are created on PRIMARY filegroup when the definitions of history tables are not created in the solution.
  5. Now, we want to move the existing history tables to a new filegroup,
    and want to avoid Brand New table's history table to be created on PRIMARY filegroup again in future.

    Want to achieve this without defining schema for history table, please suggest a way.

    From below example, underlined text is a kind of what I am looking for.
CREATE TABLE dbo.Employee   
(    
  [EmployeeID] int NOT NULL PRIMARY KEY CLUSTERED   
  , [Name] nvarchar(100) NOT NULL 
  , [AnnualSalary] decimal (10,2) NOT NULL  
  , [ValidFrom] datetime2 (2) GENERATED ALWAYS AS ROW START  
  , [ValidTo] datetime2 (2) GENERATED ALWAYS AS ROW END  
  , PERIOD FOR SYSTEM_TIME (ValidFrom, ValidTo)  
 )    ON [FG_MasterData]
 WITH (SYSTEM_VERSIONING = ON (HISTORY_TABLE = history.Employee ON [FG_HistoryData]));  
* Database deployments are performed on daily basis on dev/test environments and as per the release plan in Production. So, we want this to be implemented with minimal changes and no impact/downtime.

Using SQL Server 2016 SP2 Enterprise Edition

Error while performing index reorganization

$
0
0

Hi All,

Index reorganize job is failing with below error stating - reorganize cannot be performed on indexes where page locks are disabled.

What is the purpose of page locks?

Can index reorganize be performed with page locks disabled?

Do I need to seek permission from app team to enable the page locks?

Thank You.

server_principal_id vs principal_id

$
0
0

Hello!

Can't understand this: when I read the audit file I see that one of the actions is being perfomed under testenterprise\sqlagent (server_principal_name) but this principal does not exist in the sys.server_principals and the corresponding server_principal_id is that of the public role (2):

So
Q1: How come there's server_principal_name but there is not the corresponding principal_id in the sys.server_principals?

Q2: Is it normal that the server_principal_name resolves to the role's principal_id (2) and not into the login's principal_id (which does not exist in this case)?

Thank you in advance,
Michael

Viewing all 10269 articles
Browse latest View live


Latest Images