Saturday, December 31, 2022

Saturday, December 24, 2022

SQL Server - CHW

 'CHW' I mean to say Cumulative Updates and Hotfix detail with Window Update Links

Sunday, December 18, 2022

SQL Server - Tech Antons

Tech Antons


Antons is derived from the word 'Antonym' which is another way of normal practice from SQL Server Technical Best Practices.


It is suggested to run below maintenance activities on daily basis which should take around 15-30 mnts.

SQL Server - Disaster Recovery and High Availability Updates

Disaster Recovery and High Availability Updates




Related Article..


https://support.microsoft.com/en-au/topic/kb5007182-cumulative-update-14-for-sql-server-2019-67b00a61-4f30-4a36-a5db-b506c47e563b

Saturday, December 17, 2022

SQL Server - Collation Settings

In this article we will learn on how to change the collation settings at database level.


Use [Poland-Showroom-DB]


SELECT name, collation_name FROM sys.databases WHERE name = 'Poland-Showroom-DB';





SQL Syntax

-- make sure database in Single user mode

ALTER DATABASE [Poland-Showroom-DB] SET SINGLE_USER WITH ROLLBACK IMMEDIATE


-- change collation to Polish_CI_AS

ALTER DATABASE [Poland-Showroom-DB] COLLATE Polish_CI_AS;


-- allow database in operational mode

ALTER DATABASE [Poland-Showroom-DB] SET MULTI_USER





Here is the related article to cross verify the Windows and SQL Language Code Identifiers (LCID).

https://learn.microsoft.com/en-us/sql/relational-databases/collations/collation-and-unicode-support?view=sql-server-ver16


Best Regards


Amit Vaid

SQL Server - Browser Service 'Disabled'

Browser Service is 'disabled'

IMPACT
If the SQL Server Browser service isn't running, the following connections do not work:

Any component that tries to connect to a named instance without fully specifying all the parameters (such as the TCP/IP port or named pipe).
Any component that generates or passes server\instance information that could later be used by other components to reconnect.
Connecting to a named instance without providing the port number or pipe.
DAC to a named instance or the default instance if not using TCP/IP port 1433.
The OLAP redirector service.
Enumerating servers in SQL Server Management Studio or Azure Data Studio.

How to enable Browser Service


Related Article

https://learn.microsoft.com/en-us/sql/tools/configuration-manager/sql-server-browser-service?view=sql-server-ver16

SQL Server - Ultimate 'Group By' Clause

 SQL Server Group By Clause




SQL Server - TimeStamp AutoUpdate

Trigger for Insert and Update

Thursday, December 15, 2022

SQL Server - Top Recommendations

 SQL Server - Top Recommendations


1. TempDB - The Number of Logical CPUs, the number of Tempdb Data files it should be.

2. Target Memory counter should not exceed maximum allocated memory. Anyhow we should continuously monitor its spike before allocating more memory.

3. Page Life Expectancy value should be more than 300 as good sign.

4. Buffer Cache Hit Ratio - More than 90%

5. Continuously capture/watch the number of active virtual log files for the database to be able to analyze the overall need for Log file initial size.

6. DBCC Checkdb should run for all the database fortnightly/weekly.

7. Verify Backups - It's necessary that Backup set should be valid once finished (but takes some more time).






For rest other missing recommendations, we will continuously work on this article and provide some more info to improve the performance and proactive monitoring of your databases.


Best Regards


Amit Vaid

Monday, December 12, 2022