Useful tips for everyday
What is access point for administering the cluster? An access point is a name and associated IP address information. You use an access point to…
When to update cascade in a foreign key? UPDATE CASCADE: When we create a foreign key using UPDATE CASCADE the referencing rows are updated in…
How do you define shard key? The shard key is either a single indexed field or multiple fields covered by a compound index that determines…
When do you put the partitioning column in the index? When partitioning a unique nonclustered index, the index key must contain the partitioning column. When…
How do you kill an open transaction in SQL Server? Right click on that line and select ‘Kill Process’. A popup window will open for…
What is query plan cache? Every query requires a query plan before it is actually executed. This query plan is stored in SQL Server query…
What happens to the inserted table in SQL Server? The inserted table stores copies of the affected rows during INSERT and UPDATE statements. During an…
How do I find recent transactions in SQL? SELECT MAX(TRANSDATE) FROM SQLBOOK.TRANSTEST WHERE CUSTOMERID = 1; Now, this query returns a single row with the…
How do I monitor SQL Server performance? Activity Monitor can be opened via the SQL Server Management Studio toolbar’s Activity Monitor icon, keyboard Ctrl+Alt+A shortcut,…
How to use select into Union in SQL? Using SELECT INTO with UNION In the following example, the INTO clause in the second SELECT statement…