Collect Poor Performing Queries And Store Them (Using Profiler)
How to collect poor performing queries or batches and store them in a database table for further analysis in SQL Server using MSSQL Profiler?
How to collect poor performing queries or batches and store them in a database table for further analysis in SQL Server using MSSQL Profiler?
Is it a good practice to use VARCHAR(MAX) instead of VARCHAR(N)? We will see the answer and the reason for it in this article.
VARCHAR(MAX) vs VARCHAR(N). Comparing the differences, advantages and disadvantages between VARCHAR(MAX) and VARCHAR(N).
How to extract only the numbers from string value In SQL Server? Here is a function which extract the sets of numbers from alpha numeric strings.
Which Is Better SET or SELECT? In this article you will see the major differences of SELECT vs SET and the comparison between them in table from.
Here is the T-SQL queries to reduce index fragmentation by using either INDEX REORGANIZE or INDEX REBUILD. You will also see when to REORGANIZE and REBUILD.
Here is the T-SQL query to find index fragmentation in SQL Server database. This query will list all the indexes in the database and the the fragmentation level in percent.
MSSQL-CLI or Microsoft SQL Server CLI is an open source, cross-platform, interactive and syntax highlighting command line query tool for SQL Server. We will see how to install MSSQL-CLI on macOS.
Mssql-cli is an open source cross platform interactive command line query tool for SQL Server. It can be used as an enhanced alternative to sqlcmd.
Simple and clean method to escape special characters using STRING_ESCAPE system function. STRING_ESCAPE function was introduced in SQL 2016. Here we will see how to use it to escape dome of the special characters.
Here is how to get the day of week In SQL Server. We will see couple of inbuilt functions to get the day of week.
Unable to change SQL Server database compatibility level from management studio. Because the compatibility level field in the database properties window is disabled and grayed out.
Upgrading SQL Server to it latest version. Here you will have the steps and tips to upgrade SQL Server and the existing database from a older version to a higher version, say 2017.
Easy way to auto generate INSERT statements for a table in SQL Server using SSMS. Generate insert statements from sql server tables on the fly.
Adding or inserting Inserting Line Break or Carriage Return or Tab to a string in SQL Server. Quick examples for adding special characters like Line Break, Carriage Return and Tab to strings.
How to do pagination of results in SQL Server In and efficient way? Best way to paginate results in SQL Server to improve performance of the application.
How to get date part alone from DateTime and DateTime2 data types in SQL Server? Here are few of the techniques to get date from DateTime column.
What is Azure Data Studio (SQL Operations Studio)? What are the salient features of SQL Ops Studio? Advantages and disadvantages of SQLOPS over SSMS.
How to drop table if it exists in SQL Server? How to drop stored procedure if it exists? How to drop function if it exists? Using DROP IF EXISTS.
Concatenate multiple rows into single string in SQL Server using STRING_AGG. New function STRING_AGG in SQL Server 2017 to concatinate rows of data.