Deck 10: Managing Databases With SQL Server 2014
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/101
Play
Full screen (f)
Deck 10: Managing Databases With SQL Server 2014
1
When viewing a table in the GUI tools table design window in SQL Server,the primary key is indicated by a black arrow.
False
2
SQL Statements can be submitted to SQL Server from the Microsoft SQL Server Management Studio.
True
3
To use an SQL Server reserved word as a user identifier,it must be enclosed in square brackets [ ].
True
4
SQL Server 2014 provides two ways to create tables-graphically and through SQL code.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
5
The name TRANSACTION is so special to SQL Server that no stored procedures will work on a table with that name.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
6
SQL Server supports three types of indexes: clustered,unclustered,and random.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
7
In the Microsoft SQL Server Management Studio,the amount to add to the surrogate key value when adding a new row is specified by the increment property.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
8
In an SQL Server clustered index,the data are stored in the bottom level of the index and in the same order as the index.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
9
When viewing the SQL Server list of tables in a database,dbo means "domain base object" and indicates a system table.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
10
The Microsoft SQL Server Management Studio Manager can be used to create a new database.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
11
The SQL Server GUI program is the Enterprise Manager.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
12
SQL Server automatically creates an index on primary key fields only.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
13
When viewing a table in the GUI tools table design window in SQL Server,the notation that should supply the values for a surrogate key is that the Identity property of that column is set to "Yes."
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
14
The Microsoft SQL Server Management Studio cannot verify SQL statements until they are executed.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
15
Stored procedures and triggers in SQL Server may become confused while executing stored procedures and triggers when SQL Server special words such as TRANSACTION appear as table or other names,even if they are enclosed in square brackets [ ].
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
16
The developer can direct SQL Server to create indexes on non-key fields.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
17
In addition to the standard SQL Server 2014 tools,SQL statements such as CREATE TABLE can now also be executed by using Microsoft's PowerShell.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
18
In the Microsoft SQL Server Management Studio,the starting value for a field that has been set as an IDENTITY in SQL Server is set in the seed (StartingValue)property.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
19
With SQL Server,the preferred way to create database structures is with SQL statements.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
20
The SQL Server default when creating a new database is to create two data files and one log file for each database.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
21
With SQL Server,only one clustered index is allowed per table.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
22
When using SQL Server,developers place explicit locks.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
23
In SQL Server,insert and update triggers store old values in a pseudotable named deleted.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
24
With SQL Server,a clustered index has the data with,and in the same order as,the bottom level of the index.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
25
One means of processing an SQL Server database is to save groups of SQL Server DBMS commands in a text file and then process this file in the Microsoft SQL Server Management Studio.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
26
Data can be entered directly into a table in Enterprise Manager or via SQL INSERT statements submitted through the Microsoft SQL Server Management Studio.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
27
SQL Server AFTER triggers may be assigned to either tables or views.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
28
Database views can only be created in SQL Server through the use of SQL commands.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
29
One means of processing an SQL Server database is to create application code in a programming language and invoke SQL Server DBMS commands from that program.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
30
SQL Server automatically makes determinations of whether or not to promote or demote a lock.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
31
SQL Server user variables and parameters start with the @ symbol.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
32
PL/SQL is a programming language for SQL Server that adds programming constructs to the SQL language.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
33
SQL Server built-in system function names start with the @@ symbol.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
34
With SQL Server,the clustered index is faster for data retrieval.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
35
With SQL Server,a nonclustered index does not contain data but has pointers to the data.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
36
SQL Server supports AFTER and INSTEAD OF triggers,but not BEFORE triggers.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
37
SQL Server AFTER triggers may be used with insert and update actions,but not delete actions.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
38
In SQL Server,insert and update triggers store new values in a pseudotable named inserted.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
39
When you use the Microsoft SQL Server Management Studio to run and rerun a set of SQL Server DBMS commands stored in a text file,the stored procedure must start with CREATE PROCEDURE.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
40
In SQL Server,triggers can roll back the transaction that caused them to be fired.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
41
Locking hints included in an SQL statement will override locking behavior based on explicit transaction isolation level statements.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
42
When recovering a database in SQL Server,it is possible to process the log to a particular point in time or to a transaction mark.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
43
In SQL Server,it is not possible to make dirty reads.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
44
SQL Server tables can be created and modified using ________.
A)Enterprise Manager
B)Query Analyzer
C)Microsoft SQL Server Management Studio
D)Both A and B are correct
A)Enterprise Manager
B)Query Analyzer
C)Microsoft SQL Server Management Studio
D)Both A and B are correct
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
45
SQL statements can be passed to SQL Server using the ________.
A)Enterprise Manager
B)Query Analyzer
C)Microsoft SQL Server Management Studio
D)Both A and B are correct
A)Enterprise Manager
B)Query Analyzer
C)Microsoft SQL Server Management Studio
D)Both A and B are correct
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
46
In SQL Server,a transaction log backup makes a copy of the changes that have been made since the last time a backup of the entire database was made.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
47
The default transaction isolation level for SQL Server is Read Committed.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
48
SQL Server logins can be based on Windows Operating System security or SQL server-specific security.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
49
The default cursor concurrency for a dynamic cursor in SQL Server is optimistic.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
50
In SQL Server,SCROLL_LOCK is a version of pessimistic locking.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
51
In SQL Server,locking behavior can be modified by providing locking hints in the WITH parameter of the FROM clause in SELECT statements.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
52
Which of the following is true about SQL Server Import and Export Wizard?
A)SQL Server Native Client should be selected as the destination.
B)The user can't specify that the column names are in the first row.
C)There are no problems with modifying the default column attributes.
D)The user can specify the primary key to be set on the imported table.
A)SQL Server Native Client should be selected as the destination.
B)The user can't specify that the column names are in the first row.
C)There are no problems with modifying the default column attributes.
D)The user can specify the primary key to be set on the imported table.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
53
SQL Server supports three recovery models: simple,complex and bulk logged.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
54
SQL Server security roles provide a simple way to control user privileges in a database.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
55
SQL Server bulk-logged recovery differs from other log-based recovery methods because it does not include log entries for changes that cause large log entries.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
56
The SQL Server GUI interface database management program is the ________.
A)Enterprise Manager
B)Query Analyzer
C)Microsoft SQL Server Management Studio
D)Both A and B are correct
A)Enterprise Manager
B)Query Analyzer
C)Microsoft SQL Server Management Studio
D)Both A and B are correct
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
57
The recommended SQL Server security is Windows-only security.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
58
In SQL Server,the full recovery model creates a log entry for every change to the database.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
59
The SQL Server default when creating a new database is to create ________ for each database.
A)one data file and one log file
B)one data file and two log files
C)two data files and one log file
D)There is no default-the database creator must specify how many data files and log files will be created.
A)one data file and one log file
B)one data file and two log files
C)two data files and one log file
D)There is no default-the database creator must specify how many data files and log files will be created.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
60
In SQL Server,a differential backup makes a copy of the entire database.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
61
SQL Server user variables and parameters start with the symbol ________.
A)@@
B)#
C)##
D)@
A)@@
B)#
C)##
D)@
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
62
When creating SQL Server tables in a database,SQL statements can now also be submitted by using ________.
A)Internet Explorer
B)Microsoft PowerShell
C)Microsoft Excel
D)PL/SQL
A)Internet Explorer
B)Microsoft PowerShell
C)Microsoft Excel
D)PL/SQL
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
63
Which of the following is true about indexes in SQL Server?
A)SQL Server automatically creates indexes for columns appearing in WHERE clauses in queries.
B)SQL Server pads all indexes.
C)SQL Server supports filling up to a limit of 70 percent.
D)SQL Server automatically creates indexes for foreign keys.
A)SQL Server automatically creates indexes for columns appearing in WHERE clauses in queries.
B)SQL Server pads all indexes.
C)SQL Server supports filling up to a limit of 70 percent.
D)SQL Server automatically creates indexes for foreign keys.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
64
When creating a T-SQL statement,you should ________.
A)predefine it graphically in Enterprise Manager
B)limit it to one table
C)limit it to two tables
D)end it with the semicolon normally used to terminate SQL statements
A)predefine it graphically in Enterprise Manager
B)limit it to one table
C)limit it to two tables
D)end it with the semicolon normally used to terminate SQL statements
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
65
Which type(s)of index in SQL Server has/have a bottom level that does not contain data but has pointers to the data?
A)Clustered
B)Nonclustered
C)Unique
D)Both A and B are correct
A)Clustered
B)Nonclustered
C)Unique
D)Both A and B are correct
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
66
Anytime you want to use an SQL Server reserved word as a user identifier,enclose it in ________.
A){ }
B)[ ]
C)( )
D)< >
A){ }
B)[ ]
C)( )
D)< >
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
67
Using only SQL Server tools,you can enter data into a table by ________.
A)entering it into a table grid in the Microsoft SQL Server Management Studio
B)using INSERT statements through the Microsoft SQL Server Management Studio
C)using an SQL Server form
D)Both A and B are correct
A)entering it into a table grid in the Microsoft SQL Server Management Studio
B)using INSERT statements through the Microsoft SQL Server Management Studio
C)using an SQL Server form
D)Both A and B are correct
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
68
A view may not be assigned to a(n)________.
A)BEFORE trigger
B)INSTEAD OF trigger
C)CONCURRENT trigger
D)AFTER trigger
A)BEFORE trigger
B)INSTEAD OF trigger
C)CONCURRENT trigger
D)AFTER trigger
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
69
What name is so special to SQL Server that no stored procedure will work on a table with that name,not even if it is enclosed in brackets?
A)NAME
B)UPDATE
C)TRANSACTION
D)KEY
A)NAME
B)UPDATE
C)TRANSACTION
D)KEY
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
70
Which of the following is true of clustered indexes?
A)They are normally slower than nonclustered indexes for retrieving data.
B)Only one is allowed per table.
C)They are normally slower than nonclustered indexes for updating data.
D)They do not have data in the bottom level.
A)They are normally slower than nonclustered indexes for retrieving data.
B)Only one is allowed per table.
C)They are normally slower than nonclustered indexes for updating data.
D)They do not have data in the bottom level.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
71
Which of the following is true about the SQL Server Import and Export Wizard?
A)The spreadsheet data must already be normalized in order to be imported.
B)There may be problems importing Excel 2013 data and we may need to install Excel 2007 compatibility software.
C)The Import and Export Wizard sometimes creates blank rows at the end of the imported table.
D)Both B and C are correct.
A)The spreadsheet data must already be normalized in order to be imported.
B)There may be problems importing Excel 2013 data and we may need to install Excel 2007 compatibility software.
C)The Import and Export Wizard sometimes creates blank rows at the end of the imported table.
D)Both B and C are correct.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
72
Which of the following is not a type of trigger supported by SQL Server?
A)BEFORE
B)INSTEAD OF
C)CONCURRENT
D)Both A and C are correct
A)BEFORE
B)INSTEAD OF
C)CONCURRENT
D)Both A and C are correct
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
73
The column(s)that is/are the primary key in an SQL table are indicated by ________ when viewed graphically in Enterprise Manager.
A)the black arrow symbol
B)the outline arrow symbol
C)the key symbol
D)being underlined
A)the black arrow symbol
B)the outline arrow symbol
C)the key symbol
D)being underlined
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
74
SQL Server system function names start with the symbol ________.
A)@@
B)#
C)##
D)@
A)@@
B)#
C)##
D)@
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
75
Which of the following is known to be true if the command EXEC abcCust @Cost = 5 is used in SQL to invoke a stored procedure in Microsoft SQL Server?
A)The name of the stored procedure is abcCust.
B)The name of the stored procedure is abc.
C)The parameter Cost is given a value of 5.
D)Both A and C are correct.
A)The name of the stored procedure is abcCust.
B)The name of the stored procedure is abc.
C)The parameter Cost is given a value of 5.
D)Both A and C are correct.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
76
A stored procedure can be stored in a text file and run with the Microsoft SQL Server Management Studio.If we are running the code that creates this procedure for the third time,it must start with ________.
A)RUN PROCEDURE
B)CREATE PROCEDURE
C)ALTER PROCEDURE
D)MODIFY PROCEDURE
A)RUN PROCEDURE
B)CREATE PROCEDURE
C)ALTER PROCEDURE
D)MODIFY PROCEDURE
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
77
The language available in SQL Server that adds programming constructs to the SQL language is known as ________.
A)PL/SQL
B)C++
C)INTERACT-SQL
D)TRANSACT-SQL
A)PL/SQL
B)C++
C)INTERACT-SQL
D)TRANSACT-SQL
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
78
Which type of index in SQL Server is faster for data retrieval?
A)Clustered
B)Nonclustered
C)Baseline
D)There is no advantage to any particular index for data retrieval,only for data updating.
A)Clustered
B)Nonclustered
C)Baseline
D)There is no advantage to any particular index for data retrieval,only for data updating.
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
79
For triggers on insert and update actions,the new column values are stored in ________.
A)a table named new:TableName
B)a table named old:TableName
C)a pseudotable name inserted
D)a pseudotable named deleted
A)a table named new:TableName
B)a table named old:TableName
C)a pseudotable name inserted
D)a pseudotable named deleted
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck
80
When reviewing a table in the SQL Server GUI tools,which property should be set to "Yes" to indicate that the column is a surrogate key for which SQL Server should automatically supply values?
A)Identity
B)Surrogate
C)AutoIncrement
D)AutoNumber
A)Identity
B)Surrogate
C)AutoIncrement
D)AutoNumber
Unlock Deck
Unlock for access to all 101 flashcards in this deck.
Unlock Deck
k this deck