Home » Interview Q&A » Archive by categorySQL Interview Questions

Find Most Expensive Stored Procedure Sql Server

Find-Most-Expensive-Stored-Procedure-Sql-Server
Problem: An important step in optimizing a system is to take a holistic approach and look at stored procedures that are called very often. These procedures can often be the backbone of a system. Sometimes optimizing these procedures can have a dramatic effect on relieving the physical bottlenecks...
Continue reading

Remove Cross duplicate rows in SQL

Desired OUTPUT Query-3
  Remove Cross duplicate rows in SQL Hello friends, I got one question from my friend who recently appeared for an interview, that how to remove cross duplicate rows in SQL.? So I was looking for a solution but after many failures I got correct solution. Let you...
Continue reading

Select Primary Key value from Table dynamically-Sql Server

Select-Primary-Key-value-Table-dynamically-Sql-Server-technothirsty
Select Primary Key value from Table dynamically Hello friends, Today I am going to teach select primary key value from any table dynamically. At the time development we need primary key many times so no need to create another stored procedure.Below store procedure help to find out primary...
Continue reading

Should we Shrink database – Sql Server

Should we Shrink database – Sql Server Lets try to understand with an example. First we will create database and add some tables in that database with some sample data and then we will major fragmentation level as well size of database & log. After that we will...
Continue reading

Find Blocking queries in Sql Server

Find-blocking-queries-Sql-Server-technothirsty
Find Blocking queries in Sql Server Hello folks, today I will explain regarding most common problem of blocking in Sql Server. There are so many developers having same question “How can we find blocking queries in Sql Server”. Let’s try to take an example and understand how to...
Continue reading

Remove blank lines in Sql Server Script

Remove Unnessasary Blank lines
Remove blank lines in Sql Server Script Problem: Let’s say we have a script in which there are blank lines in between two lines and you want to remove these blank lines from that script. Have look into below image, As image we want to remove blank lines...
Continue reading

What is cursor in SQL Server?

Cursor-SQL-Server-technothirsty
What is cursor in SQL Server? A cursor is a set of rows together with a pointer that identifies a current row. In other word, Cursor is a database object used by applications to manipulate data in a set on a row-by-row basis, its like record set in...
Continue reading




DISCLAIMER:
The content is copyrighted to technothirsty.com and may not be reproduced on other websites without permission from the owner.You may contact us using the information below.