Using TRANSLATE() in SQL Server
TRANSLATE() is a string function introduced in SQL Server 2017. Using TRANSLATE is simple and straightforward compared to REPLACE function.
TRANSLATE() is a string function introduced in SQL Server 2017. Using TRANSLATE is simple and straightforward compared to REPLACE function.
CONCAT_WS() is a new function introduced in SQL Server 2017. Here is the details on using CONCAT_WS() to concatenating strings with separator.
How to generate row number without using ORDER By clause in SQL Server. Simple technique to override the sequence ordering while using ROW_NUMEBR() function
TRIM() Function In SQL Server 2017 and equivalent custom made TRIM UDF in 2016 and older versions ti trim the spaces at the starting and ending of a string.
Difference between union and union all. Performance comparison of union vs union all and identifying the best one to use and the scenarios to use them.
Similarities, differences usage of char vs varchar. Differences and similarities between char and varchar data types In SQL Server.
Similarities, differences, advantages and disadvantages of nchar vs char. Differences and similarities between char and nchar data types In SQL Server.
Similarities, differences, advantages and disadvantages of nvarchar vs varchar. Differences and similarities between varchar and nvarchar data types In SQL Server.
How to escape single quote in SQL Server? There are several ways to escape single quote. Here are few of the methods to escape quote in a string.
How to move database to emergency mode in SQL Server. For repair and troubleshooting purpose you may need to set the status of database to emergency.
Differences between taking database offline, detaching it and moving it to emergency mode in SQL Server? Offline Vs Detach Vs Emergency in table format.
Simple method to detach and attach database in SQL Server. T-SQL method and SSMS method to detach an database and attach it back.
How to bring back an SQL Server database online? Simple methods for bringing database online state using transact-SQL or SSMS.
How to take an SQL Server database offline? Simple methods to bring a MSSQL database to offline state using transact-SQL or management studio.
Simple method to split delimited strings in newer and older versions of SQL Server. Using STRING_SPLIT() in SQL Server 2016 and higher and Few lines of code to create a function which splits the strings with delimiters on older versions.
Easy way to simulating deadlocks and blocks In SQL Server. You may need to simulate blocked processes and deadlocks for testing purpose.
Finding the deadlocks and blocked processes using extended events In SQL Server. Collecting deadlocks using extended events
How to Find Last Few Executed Queries in SQL Server? Simple methods to find the recently executed sql statements using DMVs (Dynamic Management Views).
How to get the row count of all tables In SQL Server database? Simple method to get the list of all tables in a database along with the number of rows.
Find the user defined function containing text or specific table name or specific column name? Here is the simple transact SQL statements to find the UDF