SQL Server interview quesons
Explain the use of keyword WITH ENCRYPTION. Create a Store Procedure with Encrypon.
!"
#$%& %
'
((')**
+
What is a linked server in SQL Server?
',)- )!.
/001
Features and concepts of Analysis Services
'110 )0!
111
.
1
'-2
• 3
• 41
• ' )
• 1100001
• 1
What is Analysis service repository?
5-06
7'',)'
What is SQL service broker?
'.-0
71
/-/11
1-
-'.-0101
5/0
1
What is user de+ned datatypes and when you should go for them?
"81
0
82
%
'8
%
4098post_codechar
What is bit datatype?
:;
Describe the XML support SQL server extends.
',)'<9=>52
1?7)214 ?7)
/
40
9?7)',)'',)?7)
• XML Views:1?7)1
• Creaon of XML Templates:11?7)
What is SQL Server English Query?
/1,1'
1-
',)
What is the purpose of SQL Pro+ler in SQL server?
',)8
/.0181/
1
What is XPath?
??7)
1?7)
@
What are the Authencaon Modes in SQL Server?
#117 <#11=26#
77<#11',)'11=2
',)
Explain Data De+nion Language, Data Control Language and Data Manipulaon Language.
!!81)<!!)=29',)8
2
)
!
"%
77%
%7
!71)<!7)=29
2
')9
%'9
"!91
!)
7+
))
?)%)%
) A.)
!)<!)=29-31
2
+%
B A
What are the steps to process a single SELECT statement?
'
-
/-
,13-118
1
1
Explain GO Command.
+1',)C+
What is the signi+cance of NULL value and why should we avoid permi7ng null values?
%"))
-8D3EE
F/-
-%"))
What is the di8erence between UNION and UNION ALL?
"% %1"% %))51
UNION2')G4 7G;
"% %
')G4 7GH
UNION All2')G4 7G;
"% %))
')G4 7GH
What is use of DBCC Commands?
!.<!-=!',)'-
2
727-!080!.)%.)0
!.%!?!4+0!.!.%!?0!.'$%A!.'0!.! )%."44'0!.
'$%A4)0!.4 $0!."!"'+
72-0!.
0!.$)0!.4''' %$0!. 440!.4'&'7$0!.
%
12-1!.
%"."440!.'$ # %+0!. %%0!.',)40!. ""."440!.
'"'0!. $0!."' %'0!.'$ #G'''
B12 11!00!.$A)) 0
!.$A4)+ "0!.$A) +0!.$A!%0!.$A %'%'0!.
$A.)0!.$A!.
What is Log Shipping?
)81--18
',)'I--',)'
10
I-)>12
.-11
I-
I-
What is the di8erence between a Local and a Global temporary table?
',)'H2
Local Global
!1
1
1
1
716 1
What is the STUFF and how does it di8er from the REPLACE funcon?
.'"44)
<JJ0JJ0JJ=
<JJ0JJ0JJ=
#8KL)
D<JJ0M0>0JJ=
M>
What are the rules to use the ROWGUIDCOL property to de+ne a globally unique iden+er column?
@ #+"! )
N #+"!
What is the acons prevented once referenal integrity is enforced?
12
• .-11
• 6
• 66-8
• 6
• 66-
What are the commands available for Summarizing Data in SQL Server?
3',)'2
!1 'I
'"7 ' ')'"7<'=
;O
B+ ')B+<'=G'
;O
"%
') "%<P=;O
7?
')7?<'=;O
7%
')7%<'=;O
+ ".&
SELECT ZIP,City FROM Emp
GROUP BY ZIP
!.& '
SELECT ZIP,City FROM Emp
ORDER BY City
List out the di8erence between CUBE operator and ROLLUP operator
!D". ))"2
". ))"
61+ ".&
11
6+ ".&6
1131
11
1
8+ ".&+
1
What are the guidelines to use bulk copy ulity of SQL Server?
.-1',)'I
.-Q1
• %%'111
• %')1
• %')05
E2RES9
%'9@8
What are the capabilies of Cursors?
12
•
• 8
• 18
• 3T
• -<=1
What are the ways to controlling Cursor Behavior?
H2
• 2!O010-9
• 2A' ))%'%'B1
81
What are the advantages of using Stored Procedures?
2
•
• '@
• "+"I/
• 1$!
8/
• $-
• 1
•
What are the ways to code e;cient transacons?
'Q12
• !-1
• +111
• 1
• 1
• -191
• 1-
• 1
What are the di8erences among batches, stored procedures, and triggers?
Batch Stored Procedure Triggers
1',)
11
61',)
6
1
6'
8
00
What security features are available for stored procedures?
'2
• +1
• +-
• 'U
•
What are the instances when triggers are appropriate?
'2
• 1
•
• 1
• 1
• 1
• ',)I11
What are the restricons applicable while creang views?
112
•
•
• 09
• %'G%"))'," !G!%41
•
• 81'$7.%!%+1
• #'0"% %0 0 !.&0!'%0 "%<P=0 7"0 7".&
What are the events recorded in a transacon log?
12
• .-'.-
• 1
• )8%)5
• !8-
• # ',)'
• 400
• )--/00
• 550
• )!. )!.
• !7)
• 1
• '1I
• '11
• '
• '11',)'
• '1'
• 11
• ',)1',)
• "88
Describe when checkpoints are created in a transacon log.
11-2
• #-
• 1
• !8!
• ',)'
• ',)'-
• .--
De+ne Truncate and Delete commands.
TRUNCATE DELETE
1
1
1
"%-
1!
11
!1'
C
"
#$
- %-
!!) !7)
For more questions with answers, follow the link below:
/>We do not warrant the correctness of content. The risk from using it lies entirely with the user. While using this
document, you agree to have read and accepted the terms of use and privacy policy.