You are on page 1of 5

11/6/2015

SQLServerDBAQandAPage2|LearnSQLWithBru

SQLServerDBAQandAPage
2
ThefollowingQuestionandAnswerswereaddedonDec14th2011
41.HowmanyMirroredServerscanbesetupinaDatabaseMirroringsetup?
Only1MirroredServercanbeconfiguredinaDatabaseMirroringsetup.
42.Cantherebea3rdServertakepartinDatabaseMirroring?
Yes.
43.WhatisthatServercalledandwhatistheroleofthatServer?
The3rdServer(whichisoptional)iscalledaWitnessServer,itsmainroleisfor
AutomaticfailoverofthePrinicpalandMirroredServers.
ThefollowingQuestionandAnswerswereaddedonDec24th2011
44.WhatareDynamicManagementObjectsandhowaretheyuseful?
DMOs provide Server wide and Database level information on the SQL Server.
DMOs include Dynamic Management Views and Dynamic Management
Functions. Together, these DMOs provides internal information about the SQL
Server with respect to Performance, I/O, Security, Indexes, Database Mirroring,
Replication and many more. This information can be used to monitor the SQL
Serverandtroubleshooting.
45. In what editions is Backup Compression available in SQL Server 2008 and
http://learnsqlwithbru.com/sqlserverinterviewquestionsandanswers/sqlserverdbaqandapage2/

1/5

11/6/2015

SQLServerDBAQandAPage2|LearnSQLWithBru

2008R2?
inSQLServer2008,BackupCompressionissupportedinEnterpriseEditiononly
(apart from Developer and Eval Editions). In SQL Server 2008 R2, the feature is
availableinDatacenterEdition,EnterpriseEditionandStandardEdition.
The following Question and Answers were added on Jan 2nd 2012. Thequestions
(4648)havebeensubmittedbyVenkatM.
46.HowwillyouknowthatdataiscopiedtomirrorServerinDatabaseMirroring?
We can monitor the status of the Principal Server and the Mirror Server using
DatabaseMirroringMonitorfromSSMS.
47.WhatisthedifferencebetweenTableScanandIndexScan?
A Table Scan is performed when the table has no Indexes OR the existing
Index(es)arenotbeneficialtofulfilltherequestinthequery.Generally,foralarge
table,TableScansareslower.
IndexScansareusuallyfasterthanTableScansastheIndexaccessreducesthe
I/Ooperations.
48.ListsomeoftheImportantDMVsusedindaytodaywork.
sys.dm_db_index_usage_stats
sys.dm_db_missing_index_details
sys.dm_exec_query_stats
sys.dm_os_wait_stats
sys.dm_tran_locks
49.WhatisaTraceflag?
ATraceflagsareusedtochangecertaincharacteristicsoftheSQLServer.Trace
flags can be used to switch off or enable certain feature, for troubleshooting
purpose,ortodiagnoseperformanceissuessuchasdeadlockmonitoring.
50.HowdoyouenableTraceflagglobally?
TraceflagscanbesetpermanentlyusingTtraceflag#asastartupparameteror
http://learnsqlwithbru.com/sqlserverinterviewquestionsandanswers/sqlserverdbaqandapage2/

2/5

11/6/2015

SQLServerDBAQandAPage2|LearnSQLWithBru

temporarilybyrunningacommandDBCCTRACEON(xxxx,1).
ThefollowingQuestionandAnswerswereaddedrecently(onJun19th2012).
51.HowisInstallationofSQLServer2008/2008R2differentonafailovercluster,
comparedtoSQLServer2000/2005onafailovercluster?
Prior to SQL Server 2008, installing SQL Server on a failover cluster was a one
timetask,thatis,whenyouinstallSQLServerononeofthenodes,thebinaries
are installed on all of the nodes. Whereas starting from SQL Server 2008, you
havetomanuallyinstallSQLServeronallofthenodesparticipatinginthefailover
cluster.
52.WhatarethewaysyoucanfindblockinganddeadlocksonaSQLServer?
You can use SQL Profiler (filtering only those events to find deadlocks), use
System catolog view sysprocesses (there is a blocked column) and finally from
Server based reports (Right click on the Server, from the popup menu choose
ReportsandthenStandardReports,chooseActivityAllBlockingTransactions).
53. What is Surface Area Configuration in SQL Server, and how is it different in
SQLServer2005andbeyond?
SQLServerbydefaultenablesonlythosenecessaryfeatures/servicesorServer
Options in order to reduce the risks of malicious attacks. In SQL Server 2005,
Surface Area Configuration was a tool available under Configuration Tools
program menu of SQL Server. Starting from SQL Server 2008, this tool is no
longer available, but the same features/ services can be enabled / disabled by
rightclickingtheSQLServer(inObjectExplorer,inSSMS)andchoosingFacets
andselectingSurfaceAreaConfigurationFacet.
ThefollowingQuestionandAnswerswereaddedrecently(onSep12th2012).
54.CanaSQLloginbecreatedwithablankpasswordinaSQLServer?
Yes,youcancreateaSQLloginwithablankpassword.Thismightbesurprising,
butitistrue..

http://learnsqlwithbru.com/sqlserverinterviewquestionsandanswers/sqlserverdbaqandapage2/

3/5

11/6/2015

SQLServerDBAQandAPage2|LearnSQLWithBru

ThefollowingQuestionandAnswerswereaddedrecently(onSep26th2012).
55.WhichEditionsofSQLServer2012supportMasterDataServices?
Enterprise and Business Intelligence Editions support Master Data Services (as
alwaysanythingsupportedinEnterpriseEditionisavailableinDeveloperEdition).
56.Whatdoesitmeanbyminimumandrecommendedhardwareformakingsure
themachineisgoodtoinstallSQLServer?
Theminimumhardwareisthebareminimumyoucanhaveonamachinetoinstall
thatversionofSQLServer,thedrawbackofhavingaminimumhardwareispoor
performance, on the other hand, recommended hardware is required to give a
decentperformancefortheSQLServerstandpoint.
Doyoulikethissite?LikeourFBpage@Facebook.com\LearnSQLWithBrusothat,
youknowwhenthereisanewblogpost.
BruMedishetty

3THOUGHTSONSQLSERVERDBAQANDAPAGE2

Asdfasdf
onJune26,2012at10:10AMsaid:

Thanksveryuseful

Amar
http://learnsqlwithbru.com/sqlserverinterviewquestionsandanswers/sqlserverdbaqandapage2/

4/5

11/6/2015

SQLServerDBAQandAPage2|LearnSQLWithBru

onDecember27,2012at1:43AMsaid:

Howwouldyoutroubleshootaslowrunningquery/slow
runningserver?

kamaraj
onMarch25,2013at7:59PMsaid:

VeryniceSiteMedishettyGaru!!!

http://learnsqlwithbru.com/sqlserverinterviewquestionsandanswers/sqlserverdbaqandapage2/

5/5

You might also like