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

Where to find SQL Server 2014 Developer edition download?

$
0
0

Hi!

Does anyone know if there is a link to download SQL Server 2014 developer edition?

I need to repair an instance but we no longer have a copy of the media..

Thanks,

Zoe


Could not allocate space for object 'dbo.DEF' in database 'XYZ' because the 'PRIMARY' filegroup is full

$
0
0

Hi Folks,

I am getting below error for one of my job:

Could not allocate space for object 'dbo.DEF' in database 'XYZ' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding ...  The package execution fa...  The step failed.

We have Primary File group and secondary file group, I am not able to understand why data is not going in secondary data file.

Below are the settings and properties for database; kindly put some light where I am wrong??

Actual Execution Plan shows 48 million rows. Same query and plan, same database different day shows 0 rows

$
0
0

I have a rather large query with a UNION ALL that runs at different customer sites all over the country. Last week the query became painfully slow at one site. Analyzing the "actual" query plan with Plan Explorer shows that when it scans the Clustered Index of a table with just over 1 million rows it shows estimated rows at over 390 million and actual rows at 48 million.

Today when I run the exact query (copy/paste command text), it runs as expected and the actual rows returns 0. (Estimated rows 381 million). Comparing the two query plans shows the one "bad?" clustered index scan as the only difference. 

My question is what would cause that type of issue? Could the index or table have been corrupted? Weekend database maintenance would have rebuilt all indexes, so I'm wondering if that was the cause. 

I need to report to the customer what happened, but I'm at a loss of what to tell them. 

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?


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


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.

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   

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 ??

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 ?


“There is insufficient system memory in resource pool 'default' to run this query” ERROR when using large in-memory table variable

$
0
0

I am testing the ability of In-memory table variables and set up the below test. Then I have the error message like this:

The statement has been terminated.
Msg 701, Level 17, State 103, Line 80
There is insufficient system memory in resource pool 'default' to run this query.
** An error was encountered during execution of batch. Continuing.

The error happens a little bit randomly. When I put a smaller number into the in-memory table variable, Sometimes the error shows up, other times the batches went through smoothly. By the way, I am using SQL Server 2016 developer edition, so there should not be a memory limit what so ever. And in fact, I think my computer at least has 4 GB RAM left when this error happened.

I am not familiar with the "resource pool", could anyone explain to me why this happens? And how can I avoid this issue or maybe know the edge limit of in-memory table variables?

PS: Not sure this information should help but I <g class="gr_ gr_22 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="22" id="22">checked </g>perfmon<g class="gr_ gr_22 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style multiReplace" data-gr-id="22" id="22"> and</g> found for most of the time,IOPagePool64K Total Allocated drops down to 1 <g class="gr_ gr_23 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="23" id="23">and </g>IOPagePool64K Free List Count<g class="gr_ gr_23 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style multiReplace" data-gr-id="23" id="23"> has</g> value 0 when I get the error. So if I have to guess, for a certain time period, the allocated memory somehow get released or cleaned up? Even though it will allocate back to it later, but at the time it gets released, allocated memory will be insufficient since the allocated memory is 0? Can someone confirm that? Thank you in advance!

CREATE TYPE dbo.GEN_UDT_INT_mem ASTABLE(
           Id INT NOTNULLindex i1 NONCLUSTERED(Id))WITH( MEMORY_OPTIMIZED =ON);
GOCREATEPROCEDURE dbo.ASelectFunctionUsingTVP (@Filter dbo.GEN_UDT_INT_mem READONLY,@Result INT OUTPUT)ASBEGINSELECT@Result = t.IdFROM            dbo.TABLEA  tINNERJOIN@Filter     f ON t.Id= f.Id;END;
GODECLARE@Vmem dbo.GEN_UDT_INT_mem ,@rst  INT;INSERTINTO@VmemSELECT IdFROM#Temp -- Contain 510000 recordsEXEC dbo.ASelectFunctionUsingTVP @Vmem,@rst OUTPUT;


GO 1000

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] ) 

Windows Server Backup fails when SQL VSS Writer service is running

$
0
0

Hello. On one of our SQL servers, we have SQL Server 2008 Express installed. Whenever is the "SQL Server VSS Driver" service running, backing up the computer with Windows Server Backup will always fail. If I stop SQL VSS writer service, then it the backup will finish successfully, although apparently backup of the SQL DBs is not consistent.

Details:

- backup is executed with "wbadmin start backup -allcritical -backuptarget:d: -vssfull -quiet"

- root of the SQL Server instance (and all DBs, trans. logs etc) are located on a volume E:

- once the backup command is executed, it's stuck on the creating volume shadow copies operation for several minutes, failing afterwards

- SQL VSS Writer has status 8 (failed), last error is "non-retryable"

- eventlog contains myriad of messages since the backup is started (SQL server has hundreds of DBs on it), with variations of these 3 repeating:

  a) SQLVDI: Loc=TriggerAbort. Desc=invoked. ErrorCode=(0). Process=1304. Thread=15788. Server. Instance=SQLEXPRESS. VD=Global\{A4C1E365-459A-4D41-B3D0-1A76DB8E56F6}517_SQLVDIMemoryName_0. Source: SQLVDI, EventID: 1. This is repeated numerous times, where thread id varies and number (517 in this case) in the VD identifier

  b) BACKUP failed to complete the command BACKUP DATABASE <dbname>. Check the backup application log for detailed messages. (I removed the actual DB name, substed with <dbname>). This is repeated numerous times (I guess for every DB on the server)

  c) event with missing description, here's the error content:

ICommandText::Execute

0x80040e14

SQLSTATE: 42000, Native Error: 3013

Error state: 1, Severity: 16

Source: Microsoft SQL Server Native Client 10.0

Error message: BACKUP DATABASE is terminating abnormally.

SQLSTATE: 42000, Native Error: 3224

Error state: 1, Severity: 16

Source: Microsoft SQL Server Native Client 10.0

Error message: Cannot create worker thread.

It's event with source SQLWRITER, eventid: 24583. This event is also repeated numerous times.

 

Note: the system already has default 100MB System reserved volume (active, system, primary) and the system volume (C:) (boot, page file, system state, primary), so hints as to mark the C: drive volume active are irrelevant.

System details: virtual machine - Windows 2008 R2 Standard, SQL Server 2008 Express with Advanced services SP1, updated

Already tried updating SQL to CU6 and also CU7. Also tried upgrading to SQL 2008 R2 Express. None of this helped.

Thanks in advance for any help.

Viewing all 15264 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>