Database

Database

SQL Server 2000 has 40 Questions
With which type of SQL Server recovery model are all database changes logged except those that cause large log entries?

Differential recovery
Full recovery
Simple recovery
Bulk-logged recovery
There is only one way to create and modify tables in SQL Server. Write SQL code using either the CREATE or ALTER statements.

True
False
Using SQL Server 2000, which of the following symbols is used to indicate parameters in stored procedures?

#
%
&
@
SQL Server automatically creates an index on all primary and foreign keys.

True
False
What mode of authentication does SQL Server NOT provide?

Windows-only security
Both SQL Server and Windows-only security
Mixed security
SQL Server only security
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.

True
False
The strictest transaction isolation level provided by SQL Server is called:

REPEATABLE READ.
SERIALIZABLE.
READ COMMITTED.
READ UNCOMMITTED.
With SQL Server, parameters and variables in T-SQL start with the "%" sign.

True
False
SQL Server program code that is executed instead of an SQL command that needs to be processed is called a(n):

INSTEAD OF trigger.
BEFORE trigger.
AFTER trigger.
BEGIN trigger.
Nonclustered indexes are faster than clustered indexes for retrieval.

True
False
Which type of SQL Server cursor concurrency places an update lock on a row when the row is read?

READ_ONLY
SCROLL_LOCK
OPTIMISTIC
READCOMMITTED
SQL Server supports INSTEAD OF, AFTER and BEFORE triggers.

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

INSTEAD OF only
AFTER only
BEFORE only
INSTEAD OF and AFTER only
SQL Server supports two kinds of indexes: clustered and nonclustered.

True
False
Which of the following is a way to create and modify tables using SQL Server?

Write SQL code using either CREATE or ALTER SQL statements only.
Use the graphical facilities of SQL Server Enterprise Manager only.
Both of the two methods above will work.
Neither of the two methods above will work.
SQL Server indexes are special data structures used to improve performance.

True
False
With which type of SQL Server recovery model, is no logging done?

Differential recovery
Full recovery
Bulk-logged recovery
Simple recovery
SQL Server supports a language called Transact-SQL (also called T-SQL).

True
False
SQL Server 2000 stored procedures can:

never be kept within the database.
be kept within the database and invoked by application programs.
be stored on the users' computer.
support BEFORE, INSTEAD OF and AFTER types.
The .NET languages are the most popular languages for writing stored procedures in SQL Server 2000.

True
False
With this type of SQL Server cursor concurrency no lock is obtained until the user updates the data.

READ_ONLY
SCROLL_LOCK
OPTIMISTIC
PESSIMISTIC
READ COMMITTED is the default isolation level.

True
False
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:

COBOL.
VB.NET.
TRANSACT SQL.
Visual Basic.
A differential backup makes a copy of the entire database.

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

Nonclustered
Clustered
Primary
Secondary
SQL Server supports two recovery modes: simple and full.

True
False
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?

Complete backup
Transaction Log
Differential backup
None of the above is correct.
SERIALIZABLE is the strictest isolation level.

True
False
With this type of index, the bottom level of an index does not contain data, but rather it contains pointers to data.

Nonclustered
Clustered
Primary
Secondary
With SQL Server pessimistic locking, no lock is obtained until the user updates the data.

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

Differential recovery
Full recovery
Simple recovery
Bulk-logged recovery
Better security occurs if Windows-only authentication is selected.

True
False
SQL Server automatically creates an index on:

primary keys only.
foreign key only.
both primary and foreign keys.
SQL Server never automatically creates an index.
SQL Server AFTER Triggers may be assigned views.

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

Lock level
Transaction isolation level
Cursor concurrency setting
Locking hints
'dbo' stands for database object.

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

INSTEAD OF trigger.
BEFORE trigger.
AFTER trigger.
BEGIN trigger.
With SQL Server optimistic locking, an update lock is placed on the row when the row is read.

True
False
Which of the following refers to the SQL Server transaction isolation level which places and holds locks on all rows that are read?

REPEATABLE READ
SERIALIZABLE
READ COMMITTED
READ UNCOMMITTED
By default, SQL Server will create one data file and one log file for each newly created database.

True
False