Machine-translated by Google. Questions are authored in English.
Top

SQL Server 2000 Questions and Answers

11.

SQL Server program code that is executed after an SQL command has been processed is called a(n):

Answer: C

Correct answer: AFTER trigger.

An AFTER trigger fires once the statement has completed and the constraints have been checked, so it sees the result and can act on it or roll it back. It is the ordinary kind, used for auditing, for maintaining derived data and for enforcing rules too complex for a constraint.

Please log in or register to report this question.

Answer: D

Correct answer: SQL Server only security

SQL Server offers Windows-only authentication and mixed mode, in which either a Windows account or a SQL Server login may be used. There is no mode that disables Windows authentication, since a Windows administrator can always reach the instance. Windows-only is the more secure of the two available, as the credentials are managed by the domain.

Please log in or register to report this question.

13.

Which of the three possible types of triggers does SQL Server support?

Answer: D

Correct answer: INSTEAD OF and AFTER only

SQL Server provides AFTER triggers, firing once the statement has completed, and INSTEAD OF triggers, replacing it. There is no BEFORE trigger, which is a genuine difference from Oracle and one of the things to check when porting trigger code between the two products.

Please log in or register to report this question.

14.

In SQL Server 2000, which of the following makes a copy of the changes that have been made to the database since the last complete backup?

Answer: C

Correct answer: Differential backup

A differential backup copies everything that has changed since the last full backup, so restoring needs the full backup and the most recent differential only. It is quicker than a full backup and simpler to restore than a long chain of transaction log backups, at the price of growing steadily until the next full backup resets it.

Please log in or register to report this question.

15.

With this type of index, the data are stored in the bottom level of the index and in the same order as that index.

Answer: B

Correct answer: Clustered

A clustered index stores the data rows themselves at its leaf level and in index order, so the index is the table. There can be only one per table for that reason, and choosing which column carries it is a significant design decision, since range queries on that column then need no further lookup.

Please log in or register to report this question.

16.

Which of the following is not a factor in determining the concurrency control behavior of SQL Server?

Answer: A

Correct answer: Lock level

Concurrency behaviour in SQL Server is determined by the transaction isolation level, the cursor concurrency setting and any locking hints supplied in the statement. Lock level, meaning granularity, is chosen by the DBMS itself according to the work being done, and is not something the developer sets as one of these three controls.

Please log in or register to report this question.

17.

An SQL Server reserved word must be placed in brackets. If the word is not in brackets, SQL Server will try to interpret it as the name of one of its special words.

Answer: A

Correct answer: True

Square brackets delimit an identifier, so a reserved word or a name containing spaces or other special characters must be bracketed to be read as a name. Without them the parser takes the word in its reserved sense and reports a syntax error. The double quote serves the same purpose when the quoted identifier setting is on.

Please log in or register to report this question.

18.

With which type of SQL Server recovery model are all database changes logged?

Answer: B

Correct answer: Full recovery

Under the full model every change is logged and the log is retained until backed up, so the database can be restored to any point in time and no committed transaction need be lost. It is the model for anything where the day’s work matters, and it obliges the administrator to back the log up regularly or it will grow without bound.

Please log in or register to report this question.

19.

Better security occurs if Windows-only authentication is selected.

Answer: A

Correct answer: True

Under Windows-only authentication the credentials are managed by the domain, with its password policies, account lockout and central administration, and no password is stored or transmitted by SQL Server itself. Mixed mode adds SQL Server logins, which are convenient for applications and non-Windows clients but are one more set of credentials to manage and protect.

Please log in or register to report this question.

20.

An SQL Server 2000 language that adds programming elements like parameters, variables, IF, WHILE loops, and so forth, to the basic capabilities of SQL is called:

Answer: C

Correct answer: TRANSACT SQL.

Transact-SQL adds procedural constructs - variables, parameters, conditionals, loops, error handling - to standard SQL, so that logic can be written and executed inside the database. It is what stored procedures, triggers and functions are written in, and it is the SQL Server counterpart of Oracle’s PL/SQL.

Please log in or register to report this question.

Loading…
Tags: SQL Server 2000 Questions and Answers || SQL Server 2000 MCQ Questions and Answers || SQL Server 2000 GK Questions and Answers || SQL Server 2000 GK MCQ Questions || SQL Server 2000 Multiple Choice Questions and Answers || SQL Server 2000 GK || GK on SQL Server 2000 || Database Questions and Answers || Database MCQ Questions and Answers || Database GK Questions and Answers || GK on Database