- 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 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: 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: 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: 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: 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 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: 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: What algorithm is used to encrypt the Database Master Key when it is created?

Answer: Triple DES
When you create a Database Master Key, it is encrypted using the password you supply with the Triple DES algorithm. 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: How many users can be added to an application role in SQL Server 2005?

Answer: None
This is a trick questions. No users are added to application roles. Application roles are invoked by a user. Source:
Question: Give some examples of Analytical functions?

Answer: Analytical Function:-

return the infornation that about the relative possition of record (ROW_NUMBER,Rank,DENSE_RANK) and allow to campare with succesor and precedessors when they sort in spacific order.

select ename, deptno, sal, hiredate, row_number() over ( partition by deptno order by sal desc, comm desc , hiredate desc
) sal_rank_in_dept, row_number() over (order by sal desc) sal_rank_overall
from emp
by deptno
, sal d Source:
Question: Report Builder has no built in support for source control. Which of the following choices could be implemented if you decided that those reports needed to be under source control?

Answer: Have users save the RDL files locally and check into source control using a source control utility, or write code to script them out each night and check them into source control
Users can do faux source control by just saving copies of their RDL files locally before they make a change. Beyond that, you either teach them how to use a source control utility or you write a utility you can run on a schedule. 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 is the scale of measurement for the cost threshold for parallelism setting in SQL Server 2005?

Answer: Seconds
This value measures the number of seconds for a plan where the optimizer chooses between serial and parallel plans. Source:
Question: Explain about the command line tool SQLCMD?

Answer: This command line tool is available in the package of Microsoft SQL server. This state about the management features of SQL server. Queries can be written and executed using this prominent tool. Scripts using this command tool are stored as .sql and can be used to manage or create database. 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 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 Disadvantage of StoredProcedure?

Answer: It is possible that the statistics have changed since a stored procedure was compiled and thus may be executing a less the optimal execution plan, thus it may run slower. Source:
Question: If you absolutely need a report to look the same regardless of what OS or viewing software is being used, which of the following file formats would be the best choice?

Answer: TIFF
TIFF is the correct answer. By rendering as an image there are no concerns about different fonts, problems with page breaks, etc. PDF's are almost as good and more commonly used of course, with the advantage that document maps are translated to bookmarks that are usable - something not possible with a raw image. 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.015625 Seconds