Useful tips for everyday
How do I enable always on high availability groups? In SQL Server Configuration Manager, click SQL Server Services, right-click SQL Server (), where is the…
Can SQL backup to network drive? In order to allow SQL to backup directly to a network share, we have to run the SQL Server…
How do you UPDATE multiple rows in a single query? There are a couple of ways to do it. INSERT INTO students (id, score1, score2)…
How to get last record in SQL with WHERE condition? You should note that the last() function is only supported in MS Access. But there…
How does SQL Server decide which index to use? The decision of whether to use an index or not depends only on some metadata and…
How are logical reads different from lob reads? Scan count 1, logical reads 3, physical reads 1, read-ahead reads 0, lob logical reads 300, lob…
How do I partition a MySQL query? The partition function evaluates an expression containing the partition key in order to select the appropriate partition in…
How do I backup a remote SQL Server database to local drive? Open SQL Server Management Studio Express and connect to the SQL server. Expand…
How do I normalize a database upto 3NF? You must achieve the second normal form before you can achieve the third normal form (3NF). 0NF:…
How to assign a SRID to a point in MySQL? MySQL supports Point(x,y) which is a GIS function that constructs a point. With MySQL 8.0…