- World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.

Get it now !!
Send your Resume to 6000 Companies
SQL Server Interview Questions & Answers - Learning Mode

SQL Server Interview Questions & Answers - Learning Mode

Microsoft SQL Server is a relational database management system (RDBMS) produced by Microsoft. Its primary query language is Transact-SQL, an implementation of the ANSI/ISO standard Structured Query Language (SQL) used by both Microsoft and Sybase.

Try SQL Server Interview Questions & Answers - Exam Mode

1 2 3 4 5 6 7 8 Next

Sort By : Latest First | Oldest First | By Rating

SQL Server Interview Questions & Answers - Learning Mode
Try SQL Server Interview Questions & Answers - Exam Mode
Question: What is DESCRIBE command in SQL Server?What is its purpose?How to use it?

Answer: DESCRIBE is not a SQL Server Command. This a command used in ORACLE & MYSQL to display the sturcture of a Table. Source:
Question: What is the difference between weak entity set & strong entity set?

Answer: Weak Entity Set:
An entity set that does not possess sufficient attributes to form a primary key is called a weak entity set.
Strong Entity Set:
One that does have a primary key is called a strong entity set. Source:
Question: What is the difference between User Identification and Authentication?

Answer: User Identification: In virtue of Data base server Identification tries to
find whether you are registered user in the database or not. It applies to whole
database server.

Authentication: It applies for special Privileges for a user in the database.
Like whether a user is authenticated to run system procedures or not. Or whether
he is authenticated to create new users or not. Source:
Question: How functional dependency is related to database table design?

Answer: Normalization is the technique of breaking the complex tables into much understandable smaller one to improve the optimzation of the database structure. The concept of "Fucntional Dependancy" is followed in Second Normal Form (2NF) which means all the columns in the schema should be functionally dependent on the primary key of that schema. All the columns in the tables should have a relation ship with the main key. In this situation, all the columns are functionally dependednt.

Say for ex Source:
Question: When discussing image support in Report Builder, which of the following is the most accurate statement?

Answer: Users can add one or more images, but they will appear in the header or footer of the report, they cannot be added to the detail row. Images that are stored as row data in the database can be rendered at the detail level.
Multiple images can be added, but they appear in the header or footer depending on where placed on the report. The only way to get an image at the detail level (row based) is to have it be part of the database and included in the model. Source:
Question: Which of the following is not an allocation unit in SQL Server 2005?

The three types of allocation units are: IN_ROW_DATA, LOB_DATA, and ROW_OVERFLOW_DATA. Each heap or index has IN_ROW_DATA which holds part of the data. LOB_DATA is used for large object data types and ROW_OVERFLOW_DATA is used for varible length data that causes a row to exceed the 8060 byte limit. Source:
Question: How will you copy the structure of a table without copying the data?

Answer: There is one method for copying the structure of table without copying the data is

create table NEWTable AS select * from OLDTABLE where 1=2 Source:
Question: What are "HINTS"? What is "index covering" of a query?

Answer: Hints are options or strategies specified for enforcement by the SQL Server 2005 query processor on SELECT, INSERT, UPDATE, or DELETE statements. The hints override any execution plan the query optimizer might select for a query. Source:
Question: How we can make sure that the SQL query does not return NULL values?

1. Without any Null Value for Column1:
Select * From Table1 Where Column1 Is Not Null

2. Instead of Null values it returns as '0':
Select IsNull(Column1,0) Column1,* From Table1 Source:
Question: What is the recommended way to send mail from SQLAgent in SQL Server 2005?

Answer: Database Mail
You can use either Database Mail or SQLMail with SQL Agent in SQL Server 2005. However since SQLMail will be removed, it is recommended that you use Database Mail. Source:
Question: You are loading 100 rows of data into a narrow table that is heavily used by your production inventory queries. It was recommended that you drop the indexes on the table before the load and then rebuild them after the load is complete. Is this something you would do?

Answer: This does not make sense.
For such a small number of rows, it is unlikely that dropping the indexes will improve the performance of your load. If this were 100,000 rows, then it might make sense. Source:
Question: Clicking File, Save in Report Builder does which of the following?

Answer: Saves the report to the report server
File|Save writes the report to the Report Server. Users have the option to also save the report to disk by using File|Save to File. Report Builder users cannot modify the model. Source:
Question: What is a "trigger"?

Answer: Trigger are storage procedure that database should take action when relevant event occur<br><br> In other word we can say trigger are stored procedure that fire when the relevant event occur such as insertion , deletion, updation. Source:
Question: Which types of replication work with Oracle publishers?

Answer: Snapshot and transactional
Oracle publishing with SQL Server works as both snapshot and transactional publication issues. Source:
Question: On which platforms can you use Instant File Initialization to improve database growth performance in SQL Server 2005?

Answer: Windows 2003 and XP Pro
Both Windows 2003 Server and later as well as Windows XP Professional support Instant File Initialization. Source:
Question: Where does Profiler store its temporary data in SQL Server 2005?

Answer: In the directory stored in the system variable TEMP.
Profiler uses the location specified for the TEMP system variable. Source:
Question: Explain about thread and memory management process of SQL?

Answer: SQL server implements its own thread and memory and it doesn?t rely on the operating system because it needs specialized features. All the different operations are divided into tasks. It takes care of all the background works and client process requests. Source:
Question: What does @@textsize return?

Answer: The current value of the TEXTSIZE option for the SET command.
This returns the current value of the TEXTSIZE option that can be changed with the SET command. The default is 4096 bytes. Source:
Question: When you create a new Message Type in the SQL Server 2005 Service Broker, what does the Authorization parameter signify?

Answer: The owner of the message type.
This parameter determines the owner of the message type. This defaults to the current user. Source:
Question: How are modified extents tracked in SQL Server 2005 (which internal structures)?

Answer: Differential Change Map and Bulk Change Map
There are two internal structures that track extents modified by bulk copy operations or that have changed since the last full backup. They are the Differential Changed Map (DCM) and the Bulk Changed Map (BCM). Source:

1 2 3 4 5 6 7 8 Next

India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.03125 Seconds