In this article I have tried to cover all important questions generally asked in the interview. Please give your valuable suggestions and feedback to improve this article.I will write the answers for each question in future.
You can find SQL Server Reporting Services (SSRS) interview questions here.- What are the different types of
Logical Operator in SQL Server?
- What is Implicit and Explicit data
conversion in SQL Server?
- What are correlated sub queries?
- What are Schemabinding views?
- What is the use of BREAK and CONTINUE
keywords in While Loop?
- How to declare variable, assign
value to a variable in SQL Server?
- What are the different steps to
use Cursor?
- What is the difference between DDL
and DML Triggers?
- What is a Trigger?
- What are the different types of
Trigger?
- What is a view?
- What are the different types of
View?
- What is an Index?
- What are the different types of
Index?
- What is a linked Server?
- What is a Cursor?
- What is a Sub Query? Explain the
properties of sub Query?
- What are the different types of
Join?
- What is user defined Function?
- What is the difference between
Stored Procedure and User defined function?
- What is an Identity column?
- What is the correct order of Query
Process Phases?
- What are catalog views?
- What are Pessimistic and
optimistic Locks?
- What are the different types of
locks?
- What is the difference between an
Update and Exclusive lock?
- What is NOLOCK hint?
- What is collation?
- What is the difference between
INSTEAD OF TRIGGER and AFTER Trigger?
- What are the different types of
SQL Commands?
- Which TCP/IP port
does SQL Server run on? How can it be changed?
- What are the
difference between clustered and a non-clustered index?
- What are the
different index configurations a table can have?
- What are
different types of Collation Sensitivity?
- What is OLTP
(Online Transaction Processing)?
- What's the
difference between a primary key and a unique key?
- What is
difference between DELETE and TRUNCATE commands?
- When is the use
of UPDATE_STATISTICS command?
- What is the
difference between a HAVING CLAUSE and a WHERE CLAUSE?
- What are
different Types of Sub-Queries?
- What is SQL
Profiler?
- What are the
authentication modes in SQL Server? How can it be changed?
- Which command
using Query Analyzer will give you the version of SQL server and operating
system?
- What is SQL
Server Agent?
- Can a stored
procedure call itself or recursive stored procedure? How much level SP
nesting is possible?
- What is Log
Shipping?
- Name 3 ways to
get an accurate count of the number of records in a table?
- What does it mean
to have QUOTED_IDENTIFIER ON? What are the implications of having it OFF?
- What is the
difference between a Local and a Global temporary table?
- What is the STUFF
function and how does it differ from the REPLACE function?
- What is PRIMARY
KEY?
- What is UNIQUE
KEY constraint?
- What is FOREIGN KEY?
- What is CHECK
Constraint?
- What is NOT NULL
Constraint?
- How to get
@@ERROR and @@ROWCOUNT at the same time?
- What is a
Scheduled Jobs or what is a Scheduled Tasks?
- What are the
advantages of using Stored Procedures?
- What is a table
called, if it has neither Cluster nor Non-cluster Index? What is it used
for?
- Can SQL Servers
linked to other servers like Oracle?
- What is BCP? When
does it used?
- How to implement
one-to-one, one-to-many and many-to-many relationships while designing
tables?
- What is an
execution plan? When would you use it? How would you view the execution
plan?
- What is RDBMS?
- What are the
properties of the relational tables?
- What is
Normalization?
- What is De-Normalization?
- How is the ACID property related
to the database?
- What are the different
normalization forms?
- What is a Stored Procedure?
- What are the different types of
collation sensitivity?
- What is dirty read?
- How do you check collation and
compatibility level for a database?
- What is the difference between
HAVING and WHERE clause?
- What is a B-Tree?
- What are the different Index
configurations a table can have?
- What is a Filtered Index?
- What are indexed views?
- What is the restriction on Indexed
view?
- What are Statistics? How can you
find it in SQL Server?
- What is blocking?
- What is a deadlock?
- How do you identify and resolve
deadlock?
- What is the maximum row size for a
table?
- What are Spare columns?
- What is the maximum number of
columns a table can have?
- What are included columns?
- What is INTERSECT operation?
- What is EXCEPT operation?
- What are GROUPING Sets?
- What are the row constructors
inside SQL Server?
- What are table valued parameters?
- What is RAID?
- What is PIVOT and UN-PIVOT?
- What are the advantages of using
Stored Procedure?
- What is the difference between
COMMIT and ROLLBACK?
- What is Transaction?
- What is the difference between
CHAR and VARCHAR?
- What is the difference between
VARCHAR and VARCHAR (max)?
- What is SQL INJECTION?
- How do you find list of schema
names and table names from the database?
- Why can be there only one
clustered index?
- What is HINT?
- How do you delete duplicate
records?
- How do you delete all tables?
- What is Aggregate function?
- What is the difference between
Index Seek and Index Scan?
- Can we insert data if the
clustered index is disabled?
- How to recompile a stored procedure
at run time?
- Does the order of columns in
UPDATE statement matters?
- What are the different types of
System database inside SQL Server?
- How does SQL Server database
engine work?
- What is the maximum number of
indices per table?
- What is service Broker?
- What is CTE?
- What are the advantages of CTE?
- Can we write Sub Queries into
Simple Select Using join and CTE?
- Can CTE be recursive? Till what
level it can be nested?
- What does the Merge Statement do?
- What are the new data types
introduced in SQL Server 2012?
- Define Hierarchyid data type?
- What are synonyms?
- What is LINQ?
- How do you do Error Handling in
SQL server?
- What is RAISEERROR?
- What is XML?
- How can you find tables without
Indexes?
- How do you find the size of index?
- How do you copy data from one table
to another table?
- What are the limitations of Select
Into clause?
- What is FileStream in SQL Server?
- What do you mean by TableSample?
- What is ROW_NUMBER()?
- What is ROLLUP clause?
- What are ranking functions?
- What is CDC?
- What is Auditing inside SQL
Server?
- What is the difference between
GETDATE() and SYSDATETIME()?
- How do you check if Automatic
Statistic Update is enabled for a database?
- What are the limitations of view?
- What is a covered Index?
- When I delete data from a table,
Does SQL Server reduce the size of table?
- How do you rebuild master
database?
- What is standby server?
- How do you copy tables, schemas,
and views from one sql server to another SQL Server?
- Where are SQL Server user names
and passwords stored in?
- How do you disable Index?
- How do you enable index?
- What are WAIT Types?
- What is FILL Factor?
- What is Data Page?
- What is the use of Transaction Log
file?
- What is the difference between
view and Materialized view?
- What is database mirroring?
- What are the steps to create a
Table Partition?
- What are the basics of Table
Partitioning in SQL Server?
- How do you stop a log file from
growing too big?
- How do we use DBCC commands?
- What is the difference between
data mirroring and log shipping?
- What are the different backup
options within SQL Server?
- How to add DEFAULT constraint on
existing column? Write query
- How to add NOT NULL constraint on
existing column? Write query
- Can we have Triggers on Temp table
and Variable Table?
- Can we create view on TEMP table?
- Can we use constraints on TEMP
Table?
- How many maximum Identity columns
we can have in a single table?
- How to find all Triggers in
database?
- Can we add constraint on Variable
Table?
- How to take database online
–offline?
- How to copy data using Bulk copy
when columns data type doesn’t match?
- What is SP_Configure commands and
SET commands?
- What is Dynamic SQL?
- How to execute Dynamic SQL?
- Can we use Variable table in
Dynamic SQL?
- How to execute queries stored in a
table?
- How can you capture the length of
column when it is text, image and ntext data type?
- Is it possible to import data
using TSQL?
- How can you prevent TSQL code from
running on a Production server?
- How to disable Auto Commit in SQL
Server?
- Can we recover deleted data?
- Can we create a table name as
Table?
- How to delete Top 100 records from
a table?
- How to delete two tables using one
Drop command?
- How can we find the table size?
- How to find N highest salary?
- Why do we use DECLARE for cursor
and Variable table?
- What are the different data types
in SQL Server?
- Which is fast UNION or UNION ALL?
- Can we create clustered index on
view?
- Can we create computed columns?
- What is Schema?
- Can we create multiple constraints
on a single column?
- Can we rename table and column
using ALTER command?
- How to rename Table and Column?
- How to rename Database?
- Can we change the Column Sequence
order inside table?
- Truncate is DDL or DML?
- What is difference between
Deterministic and Non Deterministic Functions?
- What is Synchronous and
asynchronous function?
- Can we add Identity column after
creating the table?
- Can we drop Identity column?
- How can we disable Identity
column?
- Can Foreign key column have NULL?
- How to find column description of
a table?
- How to find primary key name if
not given by the user for a particular column?
- Can we add two columns using ALTER
command?
- How to join two tables from
different database?
- Can we use ORDER BY Clause
in UNION?
- How to get row number without
ROW_NUMBER function?
- What is Partitioned View?
- What is WITH CHECK OPTION on view?
- Can we create view from view?
- Can we ALTER two columns using
ALTER command?
- Can we store Image, MP3 and binary
data in SQL Server?
- How to clean Buffer in SQL Server?
- How to clear Execution Plan cache?
- Can I create CTE in Trigger?
- Can we create Variable table in
Trigger?
- Can we use cursors in Trigger?
- Can we call Stored Procedure in
Trigger?
- Can I create Triggers on TEMP
table?
- Can we use PRINT Command in
Triggers?
- How Triggers are fired?
- Can Inserted table have multiple
records?
- Can we perform DML & DDL
operation on Inserted and Deleted tables?
- What is the advantage of Index?
- What is the disadvantage of Index?
- How do you find why query is
running slow?
- How to create foreign key
constraints on temporary table?
- How can we check for existence of
any object in database?
- What is meant by differed name
resolution in SQL Server?
- What is the use of SP_Helptext ,
SP_HelpIndex stored procedure?
- Can we change order of triggers?
- How to find Organization Employee
Hierarchy using SQL?
- How does a recursive CTE works?
- How to delete Duplicate records?
- How to find employees hired in
last month?
- How to find all rows that contains
only numeric data?
- How to find department with
highest number of employees?
- How to join 3 tables?
- What is the real time example of
RIGHT Outer Join?
- How to find who deleted/ dropped
from Transaction log?
- What are different operation
available on ONDELETE and ONUPDATE?
- What are the uses of System
tables?
- What is the difference between
UNIQUE Key and Primary Key?
- What is the difference between
TEMP tables and Variable Tables?
- What are the different String
Functions in SQL Server?
- What are the different Date
functions in SQL Server?
- What are the different
Mathematical Functions in SQL Server?
- What is the difference between
COUNT and COUNT_BIG?
3 comments:
Thanks for sharing ... It ll be more helpful if yu provide the answers for the above questions ..
Thank yu
Hello Bindu,
I working on the answers, I will surely provide answers.
Regards,
Ghanesh
Hi Ganesh,
Can you please share the answers for the above questions?
Post a Comment