How to perform an IF…THEN operation in SQL SELECT statement?
Here we will see couple of methods to perform an IF…THEN Operation in SQL Server SELECT statement.
Here we will see couple of methods to perform an IF…THEN Operation in SQL Server SELECT statement.
Developing an application with database, frequently you will need to provide option to update if a row exists else insert a row.
There is no straight forward way to update identity values. Here is a workaround I have followed to get the work done.
Here is one another simple way to calculate median using the PERCENTILE_CONT function introduced in SQL Server 2012.
In this article, we will see how to import data from JSON file to a table using OPENROWSET and OPENJSON T-SQL relational operators.
To export a table to JSON file, I have used FOR JSON clause to format the retrieved data as JSON and ran the BCP command through XP_CMSSHELL.
Enable XP_CMDSHELL to fix the error “SQL Server blocked access to procedure ‘sys.xp_cmdshell’ of component because this component is turned off”
Here is a simple and quick query to list all the triggers with its associated table and schema names in an SQL Server database.
Here are a few techniques which I have used to troubleshoot IntelliSense In SSMS if it stops working for some reason.
Here, I will give you the step by step instructions for increasing the disk space of Windows in VirtualBox on macOS.
How to fix the error “Full-Text Search Is Not Installed, Or A Full-Text Component Cannot Be Loaded.” when trying to create a full-text index on a column.
Though LIKE and CONTAINS can be used interchangeably in several use cases, there are several differences between them. Now let us compare LIKE vs CONTAINS.
Comparition of INFORMATION_SCHEMA.TABLES Vs SYS.TABLES in SQL Server.
Today we will see a simple tip on how to get the list of all tables in a SQL Server database using TSQL metadata catalogs.
Status bar of SSMS won’t show the execution time in milliseconds. To get the accurate execution time in milliseconds, use the different options explained in this article.
Handling UTC DateTime in SQL Server database is very important for multi time zone applications. Here, you will learn about ways for storing the date time in UTC and converting the UTC DateTime to another time zone.
Here in this article we will see the various types of SHA-2 hashing has algorithms and the algorithms supported by SQL Server with examples.
While using any website URL in programming, it is always safe to use URL Encoding. Java has HTML utility classes to perform url encoding and decoding.
Row-By-Row Processing Without Cursor: Here is a simple tip on how to loop through table rows without cursor in SQL Server.
Here is a simple Transact SQL script to backup all the databases In an SQL Server