In: Computer Science
SQL Questions
1. Select ALL of the TRUE statements.
a. You can control the location of objects within a database onto specific disks/SAN LUNs only if multiple filegroups are created for each disk or SAN LUN
b. Dirty pages are data pages that have been updated in memory,
but not yet written to disk
c. DBCC CHECKDB should be executed at all times to ensure data
integrity
d. SQL Server data files and log files perform best on network shares as opposed to locally connected drives
e. Filegroups apply only to data files and not to log files
f. SQL Server always writes to the transaction log on disk
before any data page is updated in the memory buffers
g. A SQL Server data file can be a part of multiple
filegroups
2. SQL Server 2008 SP4 Enterprise Edition can be upgraded to which of the following SQL Server 2017 editions?
a. SQL Server 2017 Developer Edition
b. SQL Server 2017 Standard Edition
c. SQL Server 2017 Enterprise Edition
d. SQL Server 2017 Express Edition
3. SQL Server 2017 supports compatibility mode for which of the following versions of SQL Server?
Select one or more:
a. SQL Server 2008 R2
b. SQL Server 2005
c. SQL Server 2012
d. SQL Server 2014
e. SQL Server 2008
4. Which of the following statements are true in SQL Server?
Select ALL that apply:
a. SQL Server data files can only grow in multiples of 64K
b. You must pay for all editions of SQL Server
c. Server-side networking for SQL Server is configured at the Database level
d. It is best practice to set Auto_Update_Statistics & Auto_Create_Statistics to FALSE
e. A data page in SQL Server can only hold one object (e.g. a specific table, index, etc.)
f. SQL Server pages can be any size between 8K and 64K
g. You can have multiple versions of SQL Server installed on the same virtual server
5. Which of the following SQL Statements that will provide a list of all tables in the 'AdventureWorks2014" database and nothing else?
Group of answer choices
a. use AdventureWorks2014; Select * from sys.objects where type='TABLE'
b. use AdventureWorks2014; SELECT * FROM INFORMATION_SCHEMA.Tables WHERE TABLE_TYPE = 'BASE TABLE'
c. use AdventureWorks2014; Select * from INFORMATION_SCHEMA.TABLES
d. use AdventureWorks2014; Select * from system.tables
Dear Student ,
As per the requirement submitted above , kindly find the below solution.
Question 2:
Answer :c. SQL Server 2017 Enterprise Edition
Explanation : SQL Server 2008 SP4 Enterprise Edition can be upgraded to SQL Server 2017 Enterprise Edition.
***************************
Question 3:
Answer :b. SQL Server 2005
Explanation :SQL Server 2017 supports compatibility mode for SQL Server 2005.
***************************
Question 4:
Answer :
c.Server-side networking for SQL Server is configured at the Database level
g. You can have multiple versions of SQL Server installed on the same virtual server
***************************
Question 5:
Answer :b. use AdventureWorks2014; SELECT * FROM INFORMATION_SCHEMA.Tables WHERE TABLE_TYPE = 'BASE TABLE'
Explanation :use AdventureWorks2014; SELECT * FROM INFORMATION_SCHEMA.Tables WHERE TABLE_TYPE = 'BASE TABLE' command will lists all the tables in AdventureWorks2014.
***************************
NOTE : PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.