What version of MS 2008 is compatible with SQL Server 2016
SQL upgrade from 2012 to 2107
Transaction Log backup
Hi,
Someone has update the master table with wrong data, In order to find the person who commited the wrong output, I have used the Transaction Log Backup file and read the file using sys.fn_dblog.
Now the output looks like below:
UserName | Current LSN | Transaction ID | Operation | Transaction Name | CONTEXT | AllocUnitName | Page ID | Slot ID | Begin Time | End Time | Number of Locks | Lock Information |
NULL | 000b136d:001bd2b8:015c | 0001:2517521c | LOP_MODIFY_ROW | NULL | LCX_PFS | dbo.tblLocMst.IX_missing_tblLocMst | 0003:00000001 | 0 | NULL | NULL | 0 |
After this, I have executed the below code to identify the User Name etc..
SELECT
Operation,
[Transaction ID],
[Begin Time],
[Transaction Name],
[Transaction SID],
SUSER_SNAME([Transaction SID]) as UserName
FROM
fn_dblog(NULL, NULL)
WHERE
[Transaction ID] = '0001:25177f5e'
AND
[Operation] = 'LOP_BEGIN_XACT'
This code returns the Database User (SA in my case) who executed this wrong update command, Is there any way i can find the IP address or Host name of the person who done this wrong update.
Appreciate,
Thanks and regards,
Sheetal.
Transaction Log backup
Hi,
Someone has update the master table with wrong data, In order to find the person who commited the wrong output, I have used the Transaction Log Backup file and read the file using sys.fn_dblog.
Now the output looks like below:
UserName | Current LSN | Transaction ID | Operation | Transaction Name | CONTEXT | AllocUnitName | Page ID | Slot ID | Begin Time | End Time | Number of Locks | Lock Information |
NULL | 000b136d:001bd2b8:015c | 0001:2517521c | LOP_MODIFY_ROW | NULL | LCX_PFS | dbo.tblLocMst.IX_missing_tblLocMst | 0003:00000001 | 0 | NULL | NULL | 0 |
After this, I have executed the below code to identify the User Name etc..
SELECT
Operation,
[Transaction ID],
[Begin Time],
[Transaction Name],
[Transaction SID],
SUSER_SNAME([Transaction SID]) as UserName
FROM
fn_dblog(NULL, NULL)
WHERE
[Transaction ID] = '0001:25177f5e'
AND
[Operation] = 'LOP_BEGIN_XACT'
This code returns the Database User (SA in my case) who executed this wrong update command, Is there any way i can find the IP address or Host name of the person who done this wrong update.
Appreciate,
Thanks and regards,
Sheetal.
Extract MSI for SQL Server Management Studio 2016 (v16.5)
Does anyone know how to extract the MSI file from the latest version of the SQL Server Management Studio, version 16.5? I like to use that file as the detection method when building an Application on SCCM. The built-in "layout" command doesn't extract the files like I was expecting:
SSMS-Setup-ENU.exe /Layout C:\Temp
Unable to install SQL Server (setup.exe), VS Shell installation has failed with exit code 1638.
Detail:
(01) 2017-10-19 02:14:41 Slp: Log provider 'Microsoft.SqlServer.Chainer.Infrastructure.LogProviderFile' has been registered
(01) 2017-10-19 02:14:41 Slp: Log provider 'Microsoft.SqlServer.Chainer.Infrastructure.LogProviderConsole' has been registered
(01) 2017-10-19 02:14:41 Slp: Log provider 'Microsoft.SqlServer.Chainer.Infrastructure.LogProviderStatus' has been registered
(01) 2017-10-19 02:14:41 Slp: Reading XML resource 'Microsoft.SQL.Chainer.PackageData.Package.xml'
(01) 2017-10-19 02:14:41 Slp: Reading schema resource 'Microsoft.SQL.Chainer.Package.Package.xsd'
(01) 2017-10-19 02:14:41 Slp: Document 'Microsoft.SQL.Chainer.PackageData.Package.xml' validated with schema 'Microsoft.SQL.Chainer.Package.Package.xsd' has been successfuly loaded into datastore path '/Datastore/Package'
(01) 2017-10-19 02:14:41 Slp: ----------------------------------------------------------------------
(01) 2017-10-19 02:14:41 Slp: Running Action: ReadProductXML
(01) 2017-10-19 02:14:41 Slp: Reading XML resource 'Microsoft.SQL.Chainer.Product.Product.xml'
(01) 2017-10-19 02:14:41 Slp: Document 'Microsoft.SQL.Chainer.Product.Product.xml' validated with schema 'Microsoft.SQL.Chainer.Product.Product.xsd' has been successfuly loaded into datastore path '/Datastore/Product'
(01) 2017-10-19 02:14:41 Slp: Completed Action: ReadProductXML, returned True
(01) 2017-10-19 02:14:41 Slp: ----------------------------------------------------------------------
(01) 2017-10-19 02:14:41 Slp: Running Action: LoadExtensions
(01) 2017-10-19 02:14:42 Slp: Loading extension 'MSI' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.MsiExtension.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'MSI' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'Config' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.ConfigExtension.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'Config' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'Common' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Chainer.ExtensionCommon.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'Common' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'SqlConfigBase' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.SqlConfigBase.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'SqlConfigBase' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'Slp' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.SetupExtension.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'Slp' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'RulesEngine' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.RulesEngineExtension.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'RulesEngine' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'WorkflowData' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Chainer.WorkflowData.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'WorkflowData' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'SlpConfig' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.SlpExtension.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'SlpConfig' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'Clst' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.Cluster.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'Clst' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'AgentConfig' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.AgentExtension.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'AgentConfig' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'SqlPowershellConfig' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.PowershellExtension.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'SqlPowershellConfig' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'SSISConfig' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.SSISExtension.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'SSISConfig' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'ISMasterConfig' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.ISMasterExtension.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'ISMasterConfig' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'ISWorkerConfig' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.ISWorkerExtension.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'ISWorkerConfig' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'DReplayConfig' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.DistributedReplayExtension.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'DReplayConfig' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'ASConfig' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.ASExtension.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'ASConfig' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'ReplConfig' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.Repl_ConfigExtension.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'ReplConfig' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'ManagementToolsConfig' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.ManagementToolsExtension.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'ManagementToolsConfig' version '14.0.1000.169' loaded
(01) 2017-10-19 02:14:42 Slp: Loading extension 'ManagementToolsAdvancedConfig' from file 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\.\Microsoft.SqlServer.Configuration.ManagementToolsExtension.dll'
(01) 2017-10-19 02:14:42 Slp: Extension 'ManagementToolsAdvancedConfig' version '14.0.1000.169' loaded
how to uninstall sql server 2014 express
SQL Server 2008 R2 on a cluster doesn't come online
Hello everybody,
I'm getting a kinda weird error. For me it's quite new to install/configure Failover Cluster at all. So please don't rip my head off...
Situation: I have two similar Windows Server 2008 R2 Enterprise. Both are configured to build a cluster with two volumes to share. One is for Quorum the other for any other storage. Bother server (IP 127.0.0.11 and 127.0.0.12) are available via the cluster IP 127.0.0.10. The cluster name is SQLCluster. So far, nothing wrong I hope (besides the fact, that both need another network interface to communicate in a direct way, but that's another topic I guess).
Now go on to the SQL Server installation. It's a 2008 R2 Standard Server. I installed it first on the 127.0.0.11 (which holds the "Node and Disk majority". The first "problem" I get is during install at the point "Cluster Resource Group" where neither the Cluster Group nor the Available Storage are marked as qualified. Maybe this is my first point of failure? This is followed by Cluster Network Configuration where I specify the network settings but there's no Address given and I cannot change it.
The rest is quite common, the data directories are pointing to the second volume to hold the storage.
In the end I got this message:
Configuration action failed for feature SQL_Engine_Core_Inst during timing Startup and scenario Startup. The cluster resource 'SQL Server (cluster_SP)' could not be brought online. Error: The resource failed to come online due to the failure of one or more provider resources. (Exception from HRESULT: 0x80071736) The configuration failure category of current exception is ConfigurationFailure Configuration action failed for feature SQL_Engine_Core_Inst during timing Startup and scenario Startup. Microsoft.SqlServer.Configuration.Cluster.ClusterException: The cluster resource 'SQL Server (cluster_SP)' could not be brought online. Error: The resource failed to come online due to the failure of one or more provider resources. (Exception from HRESULT: 0x80071736) ---> System.Runtime.InteropServices.COMException (0x80071736): The resource failed to come online due to the failure of one or more provider resources. (Exception from HRESULT: 0x80071736) at Microsoft.SqlServer.Interop.MSClusterLib.ClusResourceClass.Online(Int32 nTimeout) at Microsoft.SqlServer.Configuration.Cluster.ClusterResource.Online(Int32 timeout) --- End of inner exception stack trace --- at Microsoft.SqlServer.Configuration.Cluster.ClusterResource.Online(Int32 timeout) at Microsoft.SqlServer.Configuration.SqlEngine.SQLEngineClusterFeature.Cluster(ClusterNetworkName networkName, ClusterResource[] disks, ClusterGroup clusterGroup, String instanceName, String groupSid, String[] nodes) at Microsoft.SqlServer.Configuration.SqlEngine.SQLServerFailoverCluster.CreateEngineFailoverCluster(ClusterNetworkName networkName, String instanceName, String groupSid, ClusterGroup clusterGroup, ClusterPhysicalDisk[] diskResources, String[] nodes) at Microsoft.SqlServer.Configuration.SqlEngine.SQLServerFailoverCluster.CreateFailoverCluster(String instanceName, String groupSid) at Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineSetupPrivate.Install_Startup_ClusterComplete(EffectiveProperties properties) at Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineSetupPrivate.Install(ConfigActionTiming timing, Dictionary`2 actionData, PublicConfigurationBase spcb) at Microsoft.SqlServer.Configuration.SqlConfigBase.SlpConfigAction.ExecuteAction(String actionId) at Microsoft.SqlServer.Configuration.SqlConfigBase.SlpConfigAction.Execute(String actionId, TextWriter errorStream) Exception: Microsoft.SqlServer.Configuration.Cluster.ClusterException. Source: Microsoft.SqlServer.Configuration.Cluster. Message: The cluster resource 'SQL Server (cluster_SP)' could not be brought online. Error: The resource failed to come online due to the failure of one or more provider resources. (Exception from HRESULT: 0x80071736). Inner exception: Exception: System.Runtime.InteropServices.COMException. Source: Microsoft.SqlServer.Interop.MSClusterLib. Message: The resource failed to come online due to the failure of one or more provider resources. (Exception from HRESULT: 0x80071736). Watson Bucket 1
Did anyone already see this and may help me?
Performance Counters missing - no perf- MSSQL$InstanceNameqlctr.ini file
We recently upgraded to SentryOne V19.0.1 and the performance monitoring tool shows several sections where there is no data available.
Looking at the performance counters on an instance that does show all of the graphs as working and comparing it to my instances that do not I see that there are no SQL Server performance counters at all on my servers that are not working.
I have found the sql-performance-counters-are-missing guide on this site but am getting stuck partway through the repair process.
But the issue I am having is I do not see the perf- MSSQL$InstanceNameqlctr.ini file anywhere in the BINN directory to rebuild the performance counters from. Is there a way for me to get a generic version of this file I could use to rebuild all of my servers' performance counters or is it specific to each server where I need to do something to generate the file again?
Is it possible the file is somewhere else I just don't know to look? I saw the first part of the post that says the best way to deal with this is to reinstall SQL Server but I guess I am hoping there is a way to not have to do that as all of our servers are live and in various environments being used daily.
message: Microsoft Visual Studio Tools for Applicaiton 2015
Hello,
I am quite new to SQL SERVER. I have installed windows 10 Pro and I need to install SQLSERVER 2017. The first time I tried it out, I couldn't install correctly. Then, I installed Microsoft Visual C++ 2015 Redistributable and now on the Feature Selection window I get this message: Microsoft Visual Studio Tools for Application 2015 to be installed! I checked my programs and features and see this is installed already on my computer! What should I do to be able to get it recognized by SQLSERVER 2017?
Thank you very much
SQL Server 2012 Standard Edition InPlace Upgrade to SQL Server 2017 standard edition Fails
Hi,
I am having upgrade issues when attempting to perform an inplace upgrade from MS SQL Server 2012 SP3 (Running on Windows Server 2012 R2) to Windows Server 2017 (SW_DVD9_NTRL_SQL_Svr_Standard_Edtn_2017_64Bit_English_OEM_VL_X21-56945)
The Installation fails during the upgrade process:
Feature: Database Engine Services
Status: Failed
Reason for failure: An error occurred during the setup process of the feature.
Next Step: The upgrade process for SQL Server failed. Use the following information to resolve the error, and then repair your installation by using this command line: setup /action=repair /instancename=MSSQLSERVER
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A001A
Error description: Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
Error Log states:
2019-03-19 16:14:27.18 spid5s ---------------------------------------------
2019-03-19 16:14:27.18 spid5s Starting execution of ISServer_upgrade.SQL
2019-03-19 16:14:27.18 spid5s ---------------------------------------------
2019-03-19 16:14:27.18 spid5s
2019-03-19 16:14:27.18 spid5s Taking SSISDB to single user mode
2019-03-19 16:14:27.18 spid5s Setting database option SINGLE_USER to ON for database 'SSISDB'.
2019-03-19 16:14:27.70 spid5s Error: 1712, Severity: 16, State: 1.
2019-03-19 16:14:27.70 spid5s Online index operations can only be performed in Enterprise edition of SQL Server.
2019-03-19 16:14:27.70 spid5s Error: 917, Severity: 15, State: 1.
2019-03-19 16:14:27.70 spid5s An upgrade script batch failed to execute for database 'master' due to compilation error. Check the previous error message for the line which caused compilation to fail.
2019-03-19 16:14:27.70 spid5s Error: 912, Severity: 21, State: 2.
2019-03-19 16:14:27.70 spid5s Script level upgrade for database 'master' failed because upgrade step 'ISServer_upgrade.sql' encountered error 917, state 1, severity 15. This is a serious error condition which might interfere with regular
operation and the database will be taken offline. If the error happened during upgrade of the 'master' database, it will prevent the entire SQL Server instance from starting. Examine the previous errorlog entries for errors, take the appropriate corrective
actions and re-start the database so that the script upgrade steps run to completion.
2019-03-19 16:14:27.70 spid5s Error: 3417, Severity: 21, State: 3.
2019-03-19 16:14:27.70 spid5s Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. For more information about how to rebuild the master database, see SQL Server Books
Online.
2019-03-19 16:14:27.70 spid5s SQL Server shutdown has been initiated
2019-03-19 16:14:27.70 spid5s SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
2019-03-19 16:14:28.73 spid5s Error: 25725, Severity: 16, State: 1.
2019-03-19 16:14:28.73 spid5s An error occurred while trying to flush all running Extended Event sessions. Some events may be lost.
Details Log
(01) 2019-03-19 16:20:14 Slp: Error result: -2061893606
(01) 2019-03-19 16:20:14 Slp: Result facility code: 1306
(01) 2019-03-19 16:20:14 Slp: Result error code: 26
(01) 2019-03-19 16:20:14 Slp: WER: Application level consent value 'True' was mapped to consent status 'WerConsentApproved'
(01) 2019-03-19 16:20:17 Slp: WER: Result of the submission:: 'WerReportUploaded'
(01) 2019-03-19 16:20:17 Slp: WER: Submitted 1 of 1 failures to the Watson data repository
(01) 2019-03-19 16:20:17 Slp: SetupTelemetry: Closing Telemetry Session
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to open registry subkey SOFTWARE\Microsoft\SQMClient
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to get registry value MachineId
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to open registry subkey Software\Microsoft\Microsoft SQL Server\140
(01) 2019-03-19 16:20:17 Slp: SetupTelemetry: Not creating telemetry audit log. Value 'UserRequestedLocalAuditDirectory' doesn't exist in 'HKLM\Software\Microsoft\Microsoft SQL Server\140'
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to open registry subkey Software\Microsoft\Microsoft SQL Server\140
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to get registry value CustomerFeedback
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to get registry value EnableErrorReporting
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to open registry subkey Software\Microsoft\Microsoft SQL Server\Instance Names
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to open registry subkey SQL
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to get registry value MSSQLSERVER
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to open registry subkey Software\Microsoft\Microsoft SQL Server\MSSQL14.MSSQLSERVER\CPE
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to get registry value CustomerFeedback
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to get registry value EnableErrorReporting
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to open registry subkey Software\Microsoft\Microsoft SQL Server\Instance Names
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to open registry subkey OLAP
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to open registry subkey Software\Microsoft\Microsoft SQL Server\Instance Names
(01) 2019-03-19 16:20:17 Slp: Sco: Attempting to open registry subkey RS
(01) 2019-03-19 16:20:17 Slp: SetupTelemetry: Telemetry has an active session with 157 events.
Any help would be appreciated.
Regards
Lost
SQL Server Licensing
Hi
We have an internal development environment with SQL Server 2014 - It is used to develop and test new data features and is not used or view able to any one outside the development/QA team. Once the data has been approved by the QA team it gets backed up and then the backup file is restored in to a totally separate production environment.
It seems we have to have full SQL Server licences for both environments - consequently we are not able to upgrade to the latest SQL server versions because of the costs of licensing the two environments.
Is this approach correct or is it an over zealous approach to the licencing requirements?
If this is the right licensing approach then it is very frustrating that we can not able to move forward and upgrade to the latest & greatest versions (because of the cost of licensing 2 separate environments) and regrettably we will almost certainly have to look to ditch SQL Server and use an alternative database.
Many thanks
Chris
Missing MSI files error during SQL Server Patching
I added a new node to a SQL Server failover cluster. When i was trying to update the SQL server 2008 r2 with SP2 on the New node I got an error . All the existing nodes already have SQL Server service SP2, so the new node also needs to be SP2. I am getting the missing msi file
error when applying SP2 to the new node.
SQL Server Setup has encountered the following error:
The cached MSI file 'C:\Windows\Installer\df540d0.msi' is missing.
Its original file is 'sql_engine_core_inst_loc.msi' and it was installed for product 'SQL Server 2008 R2 Database Engine Services'
from 'E:\en_sqlserver2008r2ent_x86_x64\1033_ENU_LP\x64\setup\sql_engine_core_inst_loc_msi\',
version '10.50.1600.1', language 'ENU'.
To resolve this problem, recover the missing file from the installation media and start setup again.
For more information about how to resolve this problem, see 'Steps to restore the missing Windows Installer cache files' (http://go.microsoft.com/fwlink/?LinkId=144387) in the Microsoft
Knowledge Base.
Error code 0x84B20002.
My questions are:
1) how do the msi files become missing? Are they deleted automatically or do they get deleted manually?
2) I have read articles online about how to resolve the problem. But what i need to know is how and why do the files get missing?
Can't install SQL Express 2017
Final result: Failed: see details below
Exit code (Decimal): -2068052377
Start time: 2019-03-21 15:58:23
End time: 2019-03-21 15:59:13
Requested action: Install
Setup completed with required actions for features.
Troubleshooting information for those features:
Next step for SQLEngine: Use the following information to resolve the error, and then try the setup process again.
Machine Properties:
Machine name: DESKTOP-Q50IJUK
Machine processor count: 4
OS version: Microsoft Windows 10 Pro (10.0.17763)
OS service pack:
OS region: Polska
OS language: polski (Polska)
OS architecture: x64
Process architecture: 64 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID Feature Language Edition Version Clustered Configured
Package properties:
Description: Microsoft SQL Server 2017
ProductName: SQL Server 2017
Type: RTM
Version: 14
SPLevel: 0
Installation location: C:\SQLServer2017Media\Express_ENU\x64\setup\
Installation edition: Express
Product Update Status:
User selected not to include product updates.
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: true
AGTSVCACCOUNT: ZARZĄDZANIE NT\USŁUGA SIECIOWA
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Disabled
ASBACKUPDIR: Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: Config
ASDATADIR: Data
ASLOGDIR: Log
ASPROVIDERMSOLAP: 1
ASSERVERMODE: TABULAR
ASSVCACCOUNT: <empty>
ASSVCPASSWORD: <empty>
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: <empty>
ASTELSVCACCT: <empty>
ASTELSVCPASSWORD: <empty>
ASTELSVCSTARTUPTYPE: 0
ASTEMPDIR: Temp
BROWSERSVCSTARTUPTYPE: Disabled
CLTCTLRNAME: <empty>
CLTRESULTDIR: <empty>
CLTSTARTUPTYPE: 0
CLTSVCACCOUNT: <empty>
CLTSVCPASSWORD: <empty>
CLTWORKINGDIR: <empty>
COMMFABRICENCRYPTION: 0
COMMFABRICNETWORKLEVEL: 0
COMMFABRICPORT: 0
CONFIGURATIONFILE: C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20190321_155822\ConfigurationFile.ini
CTLRSTARTUPTYPE: 0
CTLRSVCACCOUNT: <empty>
CTLRSVCPASSWORD: <empty>
CTLRUSERS: <empty>
ENABLERANU: true
ENU: true
EXTSVCACCOUNT: <empty>
EXTSVCPASSWORD: <empty>
FEATURES: SQLENGINE
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <empty>
FTSVCACCOUNT: <empty>
FTSVCPASSWORD: <empty>
HELP: false
IACCEPTPYTHONLICENSETERMS: false
IACCEPTROPENLICENSETERMS: false
IACCEPTSQLSERVERLICENSETERMS: true
INDICATEPROGRESS: true
INSTALLSHAREDDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSHAREDWOWDIR: C:\Program Files (x86)\Microsoft SQL Server\
INSTALLSQLDATADIR: <empty>
INSTANCEDIR: C:\Program Files\Microsoft SQL Server
INSTANCEID: SQLEXPRESS
INSTANCENAME: SQLEXPRESS
ISMASTERSVCACCOUNT: NT AUTHORITY\Network Service
ISMASTERSVCPASSWORD: <empty>
ISMASTERSVCPORT: 8391
ISMASTERSVCSSLCERTCN: <empty>
ISMASTERSVCSTARTUPTYPE: Automatic
ISMASTERSVCTHUMBPRINT: <empty>
ISSVCACCOUNT: NT AUTHORITY\Network Service
ISSVCPASSWORD: <empty>
ISSVCSTARTUPTYPE: Automatic
ISTELSVCACCT: <empty>
ISTELSVCPASSWORD: <empty>
ISTELSVCSTARTUPTYPE: 0
ISWORKERSVCACCOUNT: NT AUTHORITY\Network Service
ISWORKERSVCCERT: <empty>
ISWORKERSVCMASTER: <empty>
ISWORKERSVCPASSWORD: <empty>
ISWORKERSVCSTARTUPTYPE: Automatic
MATRIXCMBRICKCOMMPORT: 0
MATRIXCMSERVERNAME: <empty>
MATRIXNAME: <empty>
MRCACHEDIRECTORY:
NPENABLED: 0
PBDMSSVCACCOUNT: <empty>
PBDMSSVCPASSWORD: <empty>
PBDMSSVCSTARTUPTYPE: 0
PBENGSVCACCOUNT: <empty>
PBENGSVCPASSWORD: <empty>
PBENGSVCSTARTUPTYPE: 0
PBPORTRANGE: <empty>
PBSCALEOUT: false
PID: *****
QUIET: true
QUIETSIMPLE: false
ROLE: AllFeatures_WithDefaults
RSINSTALLMODE: DefaultNativeMode
RSSVCACCOUNT: <empty>
RSSVCPASSWORD: <empty>
RSSVCSTARTUPTYPE: Automatic
SAPWD: <empty>
SECURITYMODE: <empty>
SQLBACKUPDIR: <empty>
SQLCOLLATION: Polish_CI_AS
SQLSVCACCOUNT: NT Service\MSSQL$SQLEXPRESS
SQLSVCINSTANTFILEINIT: true
SQLSVCPASSWORD: <empty>
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: DESKTOP-Q50IJUK\adamm
SQLTELSVCACCT: NT Service\SQLTELEMETRY$SQLEXPRESS
SQLTELSVCPASSWORD: <empty>
SQLTELSVCSTARTUPTYPE: Automatic
SQLTEMPDBDIR: <empty>
SQLTEMPDBFILECOUNT: 1
SQLTEMPDBFILEGROWTH: 64
SQLTEMPDBFILESIZE: 8
SQLTEMPDBLOGDIR: <empty>
SQLTEMPDBLOGFILEGROWTH: 64
SQLTEMPDBLOGFILESIZE: 8
SQLUSERDBDIR: <empty>
SQLUSERDBLOGDIR: <empty>
SUPPRESSPRIVACYSTATEMENTNOTICE: false
TCPENABLED: 0
UIMODE: AutoAdvance
UpdateEnabled: false
UpdateSource: MU
USEMICROSOFTUPDATE: false
X86: false
Configuration file: C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20190321_155822\ConfigurationFile.ini
Detailed results:
Feature: Database Engine Services
Status: Failed
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, and then try the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 1639
Component log file: C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20190321_155822\sql_engine_core_inst_Cpu64_1.log
Error description: Nieprawidłowy argument wiersza polecenia. Szczegółowe informacje na temat wiersza polecenia można znaleźć w pakiecie SDK Instalatora Windows. // (in english it would be something like invalid command line argument. Detailed information about command line can be found in Windows install SDK)
Error help link: https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=14.0.1000.169&EvtType=sql_engine_core_inst.msi%400x162A16FE%400x1639
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20190321_155822\SystemConfigurationCheck_Report.htm
PerfLib 2.0 counter removal failed with exit code 2
SQL Server upgrade options
Hi...got couple of questions, your help is really appreciable
1. If i install SQL Server 2017 Developer/Standard/Enterprise Edition using msdn subscriptions and can it be converted to licensed Standard Edition?
Do i need to uninstall the existing msdn subscription and re-install a licensed standard edition?
2. If i download the developer edition and can it be later upgraded to Standard Edition?
Do i need to uninstall the instance completely and reinstall the licensed standard version of SQL 2017?
Please let me know, if my question is not clear.
Can't install SQL Server 2017 on WIndows
Hi, could you please advice?
Error code: -2068119551
SP1 install on Core OS for SQL Server 2016
This might be simple, but I have missed something.
Got SQL Server 2016 installed on Win Core Server OS, as requested by my Windows Admin Team, BUT how do I run the SP1 & SP2 upgrades? The standard SP1 package extracts as expected then nothing happens. Is there a flag I need to use to tell it to run without the GUI or a separate package I need to download … OR even something simpler that I am missing?
Any info would be greatly appreciated.
Thanks,
DeWayne
"wait on database engine handle recovery failed"
i am installing sql 2012 and getting error wait on database engine handle recovery failed. i changed the credentials to "NT Authority\NETWORK SERVICE" but getting same error.
logs attached below :
-T 8015
-d "C:\Program Files\Microsoft SQL Server\MSSQL11.UBL\MSSQL\Template Data\master.mdf"
-l "C:\Program Files\Microsoft SQL Server\MSSQL11.UBL\MSSQL\Template Data\mastlog.ldf"
2019-03-22 16:23:29.98 Server SQL Server detected 1 sockets with 2 cores per socket and 2 logical processors per socket, 2 total logical processors; using 2 logical processors based on SQL Server licensing. This is an informational
message; no user action is required.
2019-03-22 16:23:29.98 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2019-03-22 16:23:29.98 Server Detected 16383 MB of RAM. This is an informational message; no user action is required.
2019-03-22 16:23:29.98 Server Using conventional memory in the memory manager.
2019-03-22 16:23:30.28 Server Perfmon counters for resource governor pools and groups failed to initialize and are disabled.
2019-03-22 16:23:30.40 Server Node configuration: node 0: CPU mask: 0x0000000000000003:0 Active CPU mask: 0x0000000000000003:0. This message provides a description of the NUMA configuration for this computer. This is an informational
message only. No user action is required.
2019-03-22 16:23:30.56 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.
2019-03-22 16:23:30.58 Server Database Mirroring Transport is disabled in the endpoint configuration.
2019-03-22 16:23:30.58 Server Software Usage Metrics is disabled.
2019-03-22 16:23:30.59 spid7s Warning ******************
2019-03-22 16:23:30.61 spid7s SQL Server started in single-user mode. This an informational message only. No user action is required.
2019-03-22 16:23:30.62 spid7s Starting up database 'master'.
2019-03-22 16:23:30.65 Server CLR version v4.0.30319 loaded.
2019-03-22 16:23:31.04 spid7s SQL Server Audit is starting the audits. This is an informational message. No user action is required.
2019-03-22 16:23:31.05 spid7s SQL Server Audit has started the audits. This is an informational message. No user action is required.
2019-03-22 16:23:31.12 spid7s SQL Trace ID 1 was started by login "sa".
2019-03-22 16:23:31.14 spid7s Server name is 'TDL-EQ-SYSTEM\UBL'. This is an informational message only. No user action is required.
2019-03-22 16:23:31.18 spid11s Password policy update was successful.
2019-03-22 16:23:31.18 spid7s Failed to verify Authenticode signature on DLL 'C:\Program Files\Microsoft SQL Server\MSSQL11.UBL\MSSQL\Binn\ftimport.dll'.
2019-03-22 16:23:31.18 spid11s Error: 26011, Severity: 16, State: 1.
2019-03-22 16:23:31.18 spid11s The server was unable to initialize encryption because of a problem with a security library. The security library may be missing. Verify that security.dll exists on the system.
2019-03-22 16:23:31.19 spid7s Starting up database 'msdb'.
2019-03-22 16:23:31.19 spid9s Starting up database 'mssqlsystemresource'.
2019-03-22 16:23:31.22 spid11s Error: 17182, Severity: 16, State: 1.
2019-03-22 16:23:31.22 spid11s TDSSNIClient initialization failed with error 0x139f, status code 0x80. Reason: Unable to initialize SSL support. The group or resource is not in the correct state to perform the requested operation.
2019-03-22 16:23:31.22 spid11s Error: 17182, Severity: 16, State: 1.
2019-03-22 16:23:31.22 spid11s TDSSNIClient initialization failed with error 0x139f, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. The group or resource is not in the correct
state to perform the requested operation.
2019-03-22 16:23:31.23 spid11s Error: 17826, Severity: 18, State: 3.
2019-03-22 16:23:31.23 spid11s Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
2019-03-22 16:23:31.23 spid11s Error: 17120, Severity: 16, State: 1.
2019-03-22 16:23:31.23 spid11s SQL Server could not spawn FRunCommunicationsManager thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
dbo.dt_addtosourcecontrol Procedure Details
Hi ,
There are many store procedure start with dt_ like dbo.dt_addtosourcecontrol,dt_addseroobject etc..
On same database they are t listed in System Stored Procedure. and same instance other database they are not innot listed in System Stored Procedure but outside.
When i am running Generate Script wizards than they become part of user store procedure .
What exactly they are and why at diffreent loaction ( i mean inside or otside of System Stored Procedure) .
Regards,
Deepak