Quantcast
Channel: SQL Server Setup & Upgrade forum
Viewing all 7740 articles
Browse latest View live

SqlServer PS module and SQLPS Clarification

$
0
0

I understand that SqlServer has replaced SQLPS.  I experienced this with SQL 2017.  I'm now putting together a SQL 2019 with Server 2019 and I see that SQLPS is still part of the install.

PS C:\Windows\system32> get-module sqlps -ListAvailable

Directory: C:\Program Files (x86)\Microsoft SQL Server\150\Tools\PowerShell\Modules

ModuleType Version Name ExportedCommands

---------- ------- ---- ----------------

Manifest 15.0 SQLPS {Backup-SqlDatabase, Save-SqlMigrationReport, Invoke-Polic...

Before I do an install of SqlServer module, is it advised to uninstall SQLPS first?  I did try to install SqlServer without trying to remove SQLPS and I'm then presented with all sorts of red text

PackageManagement\Install-Package : The following commands are already available on this system:'Add-SqlAvailabilityDatabase,Add-SqlAvailabilityGroupListenerStaticIp,Add-SqlFirewallRule,Backup-SqlDatabase,blah blah blah....'. This module 'SqlServer' may override the existing commands. If you still want to install this module 'SqlServer', use -AllowClobber parameter.

Should one just -AllowClobber?  When I do that, both SQLPS and SqlServer appear to be installed.

Please advise and thanks!


replacing old Server to New Server

$
0
0

Hi

Can it be true that?

When replacing an old server with a new one (both running AD and SQL) is it true you must be physically at the user’s PC to ad them on the new server???

The server will have the same domain and be running SQL data base like the old one.

There must be a way to add the computers admission to the new server without being physically at each PCs

It is my It provider that claims that.

Please help to clarify :-)

Jesper 

SQL Server Management Studio crashing

$
0
0

SQL Server Management Studio (ssms) is crashing when running any query.  I have tried an uninstall and reinstall of both versions 17.9.1 and 18.4, but running even a simple select on either version shuts ssms down after a few seconds of spinning.  This started happening very suddenly.  Both versions worked fine before this started.  Any assistance is appreciated.

The event log errors are as follows:

Application Error   Event ID 1000:

Faulting application name: Ssms.exe, version: 2017.140.17289.0, time stamp: 0x5befcf0a
Faulting module name: KERNELBASE.dll, version: 10.0.17134.753, time stamp: 0x976ea24c
Exception code: 0xe0434352
Fault offset: 0x00111942
Faulting process id: 0x38b0
Faulting application start time: 0x01d6083f3841d91d
Faulting application path: C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: e5e95b98-0418-4fc2-a46d-751957b3e1de
Faulting package full name: 
Faulting package-relative application ID: 

.NET Runtime   Event ID 1026:

Application: Ssms.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.SEHException
   at System.IO.UnmanagedMemoryStream.ReadByte()
   at System.IO.BinaryReader.ReadByte()
   at System.IO.BinaryReader.Read7BitEncodedInt()
   at System.Resources.ResourceReader.CompareStringEqualsName(System.String)
   at System.Resources.ResourceReader.FindPosForResource(System.String)
   at System.Resources.RuntimeResourceSet.GetObject(System.String, Boolean, Boolean)
   at System.Resources.RuntimeResourceSet.GetString(System.String, Boolean)
   at System.Resources.ResourceManager.GetString(System.String, System.Globalization.CultureInfo)
   at System.Data.Res.GetString(System.String)
   at System.Data.SqlTypes.SQLResource..cctor()

Exception Info: System.TypeInitializationException
   at System.Data.SqlTypes.SqlDecimal.Parse(System.String)
   at System.Data.SqlTypes.SqlDecimal..cctor()

Exception Info: System.TypeInitializationException
   at System.Data.SqlTypes.SqlDecimal.CalculatePrecision()
   at System.Data.SqlTypes.SqlDecimal..ctor(System.Decimal)
   at System.Data.SqlTypes.SqlMoney..ctor(System.Decimal)
   at Microsoft.SqlServer.Management.UI.Grid.StorageVariables.InitVariables()
   at Microsoft.SqlServer.Management.UI.Grid.DiskDataStorage..ctor()
   at Microsoft.SqlServer.Management.QueryExecution.QEDiskDataStorage..ctor()
   at Microsoft.SqlServer.Management.QueryExecution.QEResultSet.Initialize(Boolean)
   at Microsoft.SqlServer.Management.QueryExecution.ResultsToGridBatchConsumer.OnNewResultSet(System.Object, Microsoft.SqlServer.Management.QueryExecution.QESQLBatchNewResultSetEventArgs)
   at Microsoft.SqlServer.Management.QueryExecution.QESQLBatch.ProcessResultSet(System.Data.IDataReader)
   at Microsoft.SqlServer.Management.QueryExecution.QESQLBatch.DoBatchExecution(System.Data.IDbConnection, System.String, Microsoft.SqlServer.Management.UserSettings.QEConnectionSettings)
   at Microsoft.SqlServer.Management.QueryExecution.QESQLBatch.Execute(System.Data.IDbConnection, Microsoft.SqlServer.Management.QueryExecution.QESQLBatchSpecialAction, Microsoft.SqlServer.Management.UserSettings.QEConnectionSettings)
   at Microsoft.SqlServer.Management.QueryExecution.QEOLESQLExec.DoBatchExecution(Microsoft.SqlServer.Management.QueryExecution.QESQLBatch)
   at Microsoft.SqlServer.Management.QueryExecution.QESQLExec.ExecuteBatchCommon(System.String, Microsoft.SqlServer.Management.QueryExecution.ITextSpan, Boolean ByRef)
   at Microsoft.SqlServer.Management.QueryExecution.QEOLESQLExec.ExecuteBatchHelper(System.String, Int32, Int32)
   at Microsoft.SqlServer.Management.QueryExecution.QEOLESQLExec.ProcessBatch(System.String, Int32)
   at <Module>.BatchParser.ThunkCommandExecuter.ProcessBatch(BatchParser.ThunkCommandExecuter*, UInt16*, Int32)
   at <Module>.BatchParser.ExecutionContext.ProcessWhatsLeftInBatch(BatchParser.ExecutionContext*)
   at <Module>.BatchParser.BatchParserInternal.Parse(BatchParser.BatchParserInternal*, BatchParser.ParserState*, Boolean)
   at ManagedBatchParser.Parser.Parse()
   at Microsoft.SqlServer.Management.QueryExecution.QEOLESQLExec.DoScriptExecution(Microsoft.SqlServer.Management.QueryExecution.ITextSpan)
   at Microsoft.SqlServer.Management.QueryExecution.QESQLExec.StartExecuting()
   at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()

Need to Upgrade from SQL Server 2012 to SQL Server 2016

$
0
0

Hi All,

I have to plan and upgrade Database from SQL Server 2012 to SQL Server 2016. It is going to be in-place upgrade. I will be doing this in UAT Environment 1st to find out all the challenges in preparation for production upgrade. 

Current Version: Microsoft SQL Server 2012 (SP1) - 11.0.3128.0 (X64)   Dec 28 2012 20:23:12   Copyright (c) Microsoft Corporation  Standard Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor) 

Upgrading to: Microsoft SQL Server 2016 (SP1-GDR) (KB4019089) - 13.0.4206.0 (X64)   Jul  6 2017 07:55:03   Copyright (c) Microsoft Corporation  Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2012 Datacenter 6.2 <X64> (Build 9200: ) (Hypervisor) 

I guess many people have done this and would like to hear their experience, challenges and gotcha if any..?

Currently I am following this:

https://docs.microsoft.com/en-us/sql/database-engine/install-windows/upgrade-sql-server-using-the-installation-wizard-setup?view=sql-server-ver15

https://www.mssqltips.com/sqlservertip/5646/choosing-a-sql-server-upgrade-method--part-1/


Thanks Shiven:) If Answer is Helpful, Please Vote



New install unable to login to SQLMS

$
0
0
  • Fresh install of Server 2019std on local AD
  • I am domain admin
  • Fresh install of SQLSVR 2019
  • During setup Created named instance of (ServerName)\(ServerName)
  • ...with windows authentication
  • ...with 'include current user' as data admin 
  • after install needed to change accounts in Config Mgr to either local service or network service to get services running but now they are
  • Now wanting to start SQL SVR Mgt Studio to begin data migration.  But...
  • ...connecting to (servername)\(servername) with windows authentication is getting the following error:
===================================

Cannot connect to (servername)\(servername).

===================================

Login failed for user '(DOMAIN)\(user)'. (.Net SqlClient Data Provider)

------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=18456&LinkId=20476

------------------------------
Server Name:  (servername)\(servername).
Error Number: 18456
Severity: 14
State: 1
Line Number: 65536


------------------------------
Program Location:

   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
   at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()


SQL install - How to specify non-default location for system DB logs?

$
0
0

I'm planning an unattended install using either command-line or configuration.ini.  The parameters I see for specifying file locations is following:

/INSTALLSHAREDDIR

/INSTANCEDIR

/INSTALLSQLDATADIR

/SQLUSERDBDIR

/SQLUSERDBLOGDIR

/SQLBACKUPDIR

/SQLTEMPDBDIR

/SQLTEMPDBLOGDIRIs there a parameter to specify location of System DB log files?

mssql-conf in LINUX SQL Server 2019

$
0
0

In LINUX, this command correctly sets memory, but i do not see it reflected when running SSMS  sp_configure even after a SQL restart.  Is there an additional step to flush something so SSMS sp_configure shows the correct max memory value?  I am running SQL Server 2019 CTP 2.2 on LINUX RHEL 7.6.

sudo /opt/mssql/bin/mssql-confset memory.memorylimitmb 12288

SQL Server 2019 LocalDB installaton fails because of VSS Service startup error

$
0
0

Hello, 

First off, this issue seems identical to what was dicussed in this thread https://social.msdn.microsoft.com/Forums/sqlserver/en-US/1f403993-30dd-4db1-8b7c-5b95d1571a35/microsoft-sql-server-express-localdb-windows-azure-powershell-install-fail-sql-writer-failed-to?forum=sqlsetupandupgrade. I have tried the solution from it, i.e. renaming the system32\msvcr.dll file. Still no luck. When attempting to run the SqlLocalDB.msi file of the 2019 version I am getting the following error:

In the Application log:

Index              : 6606
EntryType          : Error
InstanceId         : 11920
Message            : Product: Microsoft SQL Server 2019 LocalDB  -- Error 1920. Service 'SQL Server VSS Writer' (SQLWri
                     ter) failed to start. Verify that you have sufficient privileges to start system services.
Category           : (0)
CategoryNumber     : 0
ReplacementStrings : {Product: Microsoft SQL Server 2019 LocalDB  -- Error 1920. Service 'SQL Server VSS Writer' (SQLWr
                     iter) failed to start. Verify that you have sufficient privileges to start system services., (NULL
                     ), (NULL), (NULL)...}
Source             : MsiInstaller

In the System log;

Index              : 7609
EntryType          : Error
InstanceId         : 3221232472
Message            : Сбой при запуске службы "SQL Server VSS Writer" из-за ошибки
                     %%1053
Category           : (0)
CategoryNumber     : 0
ReplacementStrings : {SQL Server VSS Writer, %%1053}
Source             : Service Control Manager

Apologies, the text is in Russian since the OS is Russian (not my choice). It literally means Failure to start SQL Server VSS Writer due to errir 1053. I have attempted to manually start the service in the Services.msc - no luck. Switching Local System account to another admin account also didn't help. Has anyone else experienced the same issue and managed to get past it?

Thank you 

Alex



SQL 2012 - error help needed

$
0
0
Hi,

I am doing Lesson 4: Working with SQL Data Types of the Microsoft 70-461: Querying SQL Server 2012 course. I am currently following video data types - part 10.


I am getting an error but I don't know why as I have copied the syntax correctly and the command completed successfully on the video, but not on mine.

Syntax:

INSERT INTO CustomerDetails
VALUES (NEWID(), 2, CONVERT(VARBINARY(MAX), "),
'<personal>
<spouse>Melinda</spouse>
<child id="1">Jack</child>
</personal>');

Error:
Msg 102, Level 15, State 1, Line 5
Incorrect syntax near '1'.
Msg 105, Level 15, State 1, Line 5
Unclosed quotation mark after the character string '>Jack</child>
</personal>');
'.

Can someone please advise?

Thank you.

SQL Server Express 2014 setup failure

$
0
0

I tried installing SQL server express 2014 on Windows 10 and I got this error message. Any ideas what might cause this? Thanks!

LinkID:20476
Product Name:Microsoft SQL Server
Message Source:setup.rll
Message ID:50000
EvtType:0xCDDA72F9%400xC24842DB


Apply Security Update for SQL Server 2016 SP2 GDR (KB4532097) - Error 0x80070643

$
0
0

Hi Guys,

I got Windows update error on above, below is the information.

Windows Server 2016 cluster failover enable

The SQL Detail.txt say below.

(01) 2020-04-09 20:03:32 Slp: Running Action: RunRemoteDiscoveryAction
(01) 2020-04-09 20:03:32 Slp: Running discovery on remote machine: DB02
(01) 2020-04-09 20:03:32 Slp: Running discovery on local machine
(01) 2020-04-09 20:03:51 Slp: Discovery on DB02 failed due to exception
(01) 2020-04-09 20:03:51 Slp: Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorException: Failed to retrieve data for this request. ---> Microsoft.SqlServer.Configuration.Sco.SqlRegistryException: The network path was not found.
   at Microsoft.SqlServer.Configuration.Sco.SqlRegistry.CreateBaseKey(ServiceContainer ctx, String machineName, IntPtr hKey, String keyName, RegistryAccess access, RegistryView view)
   at Microsoft.SqlServer.Configuration.Sco.SqlRegistry.GetLocalMachine(ServiceContainer ctx, String machineName, RegistryAccess access, RegistryView view)
   at Microsoft.SqlServer.Discovery.DiscoveryUtils.Util.GetLocalMachineRootKey(ServiceContainer ctx, String machineName, RegistryView registryView)
   at Microsoft.SqlServer.Discovery.DiscoveryUtils.Util.GetLocalMachineSubKey(ServiceContainer ctx, String machineName, RegistryView regView, String regPath, RegistryAccess registryAccess)
   at Microsoft.SqlServer.Discovery.RegistryKeyExistsPropertyValueProvider.GetPropertyValue(Object[] context)
   at Microsoft.SqlServer.Discovery.DiscoveryEnumObject.GetPropertyValueFromProvider(IPropertyValueProvider propertyValueProvider, String machineName, Object[] context)
   at Microsoft.SqlServer.Discovery.ObjectInstanceSettings.IsObjectFound(String machineName, String idFilter)

Node 2 can apply this patch, but node 1, Check the "Remote Registry" is disabled, and can start.

Search Microsoft, and follow below but not work. Any other way to solve this problem?

********** 

Successfully installed SP2 on the 2nd node (N2).

Restarted N2
Moved SQL services to N2.
Attempted install on N1 with above error (ran as administrator).
disabled Virus scanning
Read https://support.microsoft.com/en-us/kb/2811566
Added SQL service account(s) to local administrator group for both N1 and N2. 
Ensured that the local administrator group has full privileges on C:\Windows\System32\LogFiles\Sum
Also ensured that the local administrators group has full privileges on HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL12.MSSQLSERVER\Setup
Restarted both N1 and N2
Attempted SP2 install again on N1 twice (ran as administrator) with SQL services active on N2 and then N1 respectively.

*****************

Regards

Thanks...KEN

SQL 2012 SP1 missing SSL Certificate. Refuses to run/Cannot add one.

$
0
0

So upon initial installation of SQL Server on Server 2012 Standard, it complained about the SSL Certificate and refused to start running.

 

Upon investigating, I see it did not have a SSL Certificate.  Using ISS, I created a self-signed one (personal), and imported a wildcard one.

 

Using MMC.exe, and the certificates snap-in,  I can see both certificates have been accepted, and available.

 

Then in the SQL Server Configuration Manager -> Network Configuration -> Protocols for MSSQLSERVER -> Properties -> Certificate.

 

The only one showing up there, is the self-signed certificate. So I have no choice but to select that one. 

 

I try starting SQL server again, yet another failure to start.

 

Here is a snippet of the log showing reason for failure.

 

2020-04-09 11:49:47.37 spid5s Server name is 'WIN-PG8G8NTNTOO'. This is an informational message only. No user action is required.
2020-04-09 11:49:47.39 spid10s The server could not load the certificate it needs to initiate an SSL connection. It returned the following error: 0x8009030d. Check certificates to make sure they are valid.
2020-04-09 11:49:47.39 spid10s Error: 26014, Severity: 16, State: 1.
2020-04-09 11:49:47.39 spid10s Unable to load user-specified certificate [Cert Hash(sha1) "64D668546DC836E5391D23A9D05C721CEFB7F08F"]. The server will not accept a connection. You should verify that the certificate is correctly installed. See "Configuring Certificate for Use by SSL" in Books Online.
2020-04-09 11:49:47.39 spid10s Error: 17182, Severity: 16, State: 1.
2020-04-09 11:49:47.39 spid10s TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property.
2020-04-09 11:49:47.39 spid10s Error: 17182, Severity: 16, State: 1.
2020-04-09 11:49:47.39 spid10s TDSSNIClient initialization failed with error 0x80092004, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. Cannot find object or property.
2020-04-09 11:49:47.39 spid10s Error: 17826, Severity: 18, State: 3.
2020-04-09 11:49:47.39 spid10s 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.
2020-04-09 11:49:47.39 spid10s Error: 17120, Severity: 16, State: 1.
2020-04-09 11:49:47.39 spid10s SQL Server could not spawn FRunCommunicationsManager thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.

 

Any ideas on getting this resolved? Thank you

Issue with SMSS 18.4 Install

$
0
0
When installing SMSs, it always shows that the package is loading. How can I fix it?

Not able to install Sql serevr 2019 CU4 in windows 2016

$
0
0

Hi Everyone,

I am trying to upgrade SQL 2019 RTM   with CU 4 latest update and the item type of file is showing as  windows installer package.

I can do this in win 10 but not able to do in win 2016.When i am trying to open the hotfix file it's not going to next screen.

can some one suggest why this is not allowing for next screen.


PerfLib 2.0 counter removal failed with exit code 2

$
0
0
Can someone please help? I am trying to install SQL Server 2014, the installation is failing with "PerfLib 2.0 counter removal failed with exit code 2" error. I have removed all version of visual studio on my machine that were previously installed, but the issue still persist. I have been on it for days now, but no solution yet. Please help! help!! help!!!

SQL Server 2017 Developer Edition Install Issue

$
0
0

I am unable to install SQL Server 2017 Developer Edition. It comes up with: :Exit code (Decimal): -2147467259Error description: The system cannot find the path specified"

client connectivity tools

$
0
0

Actually I always mix up the following highlighted in the following

what's are there difference and the importance of running a sql server ?

Instalar autodesck revit 2019

$
0
0

Hola estoy intentando descargar revit 2019 y cuando se esta completando la instalacion me aparece este mensaje :

"El archivo de gabinete 'Common ~ 1.cab' requerido para esta instalación está dañado y no se puede usar" esto puede indicar un error del CD-ROOM O ALGUN PROBLEMA SIMILAR

y no se puede completar la instalacion.

SQL Server 2019 firewall ports outbound

$
0
0

Hi,

I have a peculiar "feature" where I have installed SQL Server 2019 as a named instance with a static port (for this test I used 14430) onto a Server 2019 Windows cluster (not always on cluster) and SQL Management Studio on a separate server.

I have opened the firewall ports TCP 1433 + instance port (14430) and UDP 1434 on the inbound firewall on the SQL server but I am finding I have to open UDP outbound to the server on the server that has SQL Management Studio installed.

Any idea why I have to have an outbound UDP firewall rule to be able to connect to the remote SQL server?  I have tried from 2 different servers with both the same result.

It appears I can connect ok to a SQL Server 2017 without having to enable outbound UDP.



[Performance Server]: Monitor Performance Server

$
0
0

Hi Everyone!

Server install OS Windows Server 2012 R2 and setup SQL Server 2014 Standard.

In case the Server crashes. How can i check Server?

Thanks! 


Viewing all 7740 articles
Browse latest View live


Latest Images

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