Database Research & Development

  • Home
  • NoSQL
    • NoSQL
    • Cassandra
  • Databases
    • Database Theory
    • Database Designing
    • SQL Server Coding Standards
    • SQL Server
    • PostgreSQL
    • MySQL
    • Greenplum
    • Linux
  • Interviews
    • SQL Server Interviews
    • MySQL Interviews
    • SQL Puzzles
  • DBA Scripts
    • SQL Server DBA Scripts
    • PostgreSQL DBA Scripts
    • MySQL DBA Scripts
    • Greenplum DBA Scripts
  • Home
  • Blog Archives !
  • (: Laugh@dbrnd :)
  • Contact Me !
sqlserverinterviews
Home 2016 July SQL Server Database Administrator Interview Questions and Answers (Day-3)

SQL Server Database Administrator Interview Questions and Answers (Day-3)

This article is half-done without your Comment! *** Please share your thoughts via Comment ***

What is SQL Profiler?

Microsoft SQL Server Profiler is a graphical user interface to SQL Trace for monitoring an instance of the Database Engine or Analysis Services. You can capture and save data about each event to a file or table to analyze later.

Use SQL Profiler to monitor only the events in which you are interested.

If traces are becoming too large, you can filter them based on the information you want, so that only a subset of the event data is collected.

Monitoring too many events adds overhead to the server and the monitoring process and can cause the trace file or trace table to grow very large, especially when the monitoring process takes place over a long period of time.

What is Builtin/Administrator?

The Builtin/Administrator account is basically used during some setup to join some machine in the domain. It should be disabled immediately thereafter. For any disaster recovery, the account will be automatically enabled. It should not be used for normal operations.

How can SQL Server instances be hidden?

To hide a SQL Server instance, we need to make a change in SQL Server Configuration Manager. To do this launch SQL Server Configuration Manager and do the following: select the instance of SQL Server, right click and select Properties.

After selecting properties you will just set Hide Instance to “Yes” and click OK or Apply. After the change is made, you need to restart the instance of SQL Server to not expose the name of the instance.

What are the authentication modes in SQL Server? How can it be changed?

Windows mode and Mixed Mode – SQL and Windows. To change authentication mode in SQL Server click Start, Programs, Microsoft SQL Server and click SQL Enterprise Manager to run SQL Enterprise Manager from the Microsoft SQL Server program group. Select the server then from the Tools menu select SQL Server Configuration Properties, and choose the Security page.

How can we check whether the port number is connecting or not on a Server?

TELNET [HOSTNAME] PORTNUMBER

Can we uninstall/rollback a service packs from SQL Server?

No: To rollback a SP you have to uninstall entire product and reinstall it.

What do you know about the Hotfixes?

Hotfixs are software pathces that were applied to live i.e. still running systems. A hotfix is a single, cumulative package that includes one or more filfes that are used to address a problem in a software product.

Why shrinking of database is bad in SQL Server?

Shrinking a database increases fragmentation which causes performance problems.

I talked about how databases are like boxes being filled with content every day. As the box gets filled, the amount of free space decreases. But if you know that you will need to fill it up with more content, wouldn’t you go get a bigger box? Sadly, that’s not what we’re doing when we’re shrinking databases.

We’re basically throwing away the box with free space to replace it with a smaller box with just enough space to keep all of the existing content. Imagine what you would do to accomplish this task – empty the box of its contents, throw away the box, replace it with a smaller box and put the contents back in.

Can we install SQL Server using a configure file?

Yes: We can prepare a configuration file. While installing SQL Server the path to the configuration file is specified in the “Ready to Install” page in the configuration file path section.

Which Dynamic memory view is used to check memory usage by SQL Server?

We can use this view sys.dm_os_process_memory.

What do you know about the Lock Page in Memory?

Lock Pages in Memory is a setting that can be set on 64-bit operating systems that essentially tell Windows not to swap out SQL Server memory to disk. By default, this setting is turned off on 64-bit systems.

What do you know about the SQL Server Latches?

  • A latch is used to cordinate the physical execution of multiple threads within a database.
  • A latch is a lightweight synchronization object used by the Storage Engine to protect memory structures used internally by SQL Server. A latch is nothing more than a so-called Critical Section in multi-threaded programming.
  • For row-level locking it was very important to introduce a concept like latching, because otherwise it would give rise to phenomena like Lost Updates in memory.

What are the different types of Lathces in SQL Server?

  • IO Latches
  • Buffer Latches (BUF)
  • Non-Buffer Latches (Non-BUF)

Can DBA control or manage the SQL Server Latches?

No: It is not possible, It’s internally manage by the SQL Server. We can just check the different statuses of latches.

What is a User Database?

A user database is a database that we create to store data and start working with  the data.

Why is all of the memory allocated for SQL Server not shown in Windows Task Manager?

The” Mem Usage” column shows the amount of memory for the working se t. The working set of a process is the set of pages in the virtual address space of the process that are currently resident in physical memory.

To find out how much memory SQL Server has allocated through the AWE mechanism, you can use the sys.dm_os_memory_clerks DMV.

Which autogrowth database setting is good?

Setting an autogrowth in multiples of MB is a better option than setting autogrowth in percentage (%).

Jul 11, 2016Anvesh Patel
SQL Server Database Administrator Interview Questions and Answers (Day-2)SQL Server Database Administrator Interview Questions and Answers (Day-4)
Comments: 1
  1. Vinit
    June 15, 2017 at 12:03 pm

    Hey Anvesh,

    Good Work.

    Request you to update some answers.

    Can we uninstall/rollback a service packs from SQL Server?

    No: To rollback a SP you have to uninstall entire product and reinstall it (Till SQL SERVER 2005).

    Yes: From SQL SERVER 2008 SP1.

Anvesh Patel
Anvesh Patel

Database Engineer

July 11, 2016 SQL Server Interviewanswers, Anvesh Patel, authentication mode, database, database administrator, database research and development, dbrnd, Interviews, lock page in memory, questions, Shrink, SQL Query, SQL Server, SQL Server Administrator, sql server latches, SQL Server Monitoring, SQL Server Performance Tunning, sql server profiler, SQL Server Tips and Tricks, TSQL
About Me!

I'm Anvesh Patel, a Database Engineer certified by Oracle and IBM. I'm working as a Database Architect, Database Optimizer, Database Administrator, Database Developer. Providing the best articles and solutions for different problems in the best manner through my blogs is my passion. I have more than six years of experience with various RDBMS products like MSSQL Server, PostgreSQL, MySQL, Greenplum and currently learning and doing research on BIGData and NoSQL technology. -- Hyderabad, India.

About DBRND !

dbrnd

This is a personal blog (www.dbrnd.com).

Any views or opinions represented in this blog are personal and belong solely to the blog owner and do not represent those of people, institutions or organizations that the owner may or may not be associated with in professional or personal capacity, unless explicitly stated.

Feel free to challenge me, disagree with me, or tell me I’m completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or anonymous comments) - so keep it polite.

The content of this website is protected by copyright. No portion of this website may be copied or replicated in any form without the written consent of the website owner.

Recent Comments !
  • Anvesh Patel { Sure will do... } – May 27, 12:43 PM
  • Anvesh Patel { Great... } – May 27, 12:41 PM
  • Anvesh Patel { Great... } – May 27, 12:39 PM
  • Anvesh Patel { Great... } – May 27, 12:36 PM
  • Anvesh Patel { Great... } – May 27, 12:28 PM
  • Anvesh Patel { Great... } – May 27, 12:27 PM
  • Anvesh Patel { Great... } – May 27, 12:16 PM
  • Older »
Follow Me !
  • facebook
  • linkedin
  • twitter
  • youtube
  • google
  • flickr
© 2015 – 2019 All rights reserved. Database Research & Development (dbrnd.com)
Posting....