Knowledge of SQL Server 2008 Skills Test
A local temporary stored procedure name can contain a maximum of __________ characters.
All MDX, DMX and XML/A errors are displayed in the Error List window of the SQL Server 2008. Management Studio.
An identifier denoting a global temporary object in SQL Server 2008 starts with a ______ sign.
Analyze the following code snippet for creating a stored procedure in SQL Server 2008: CREATE PROCEDURE Person.GetEmployees @LastName nvarchar(50), @FirstName nvarchar(50) AS SET NOCOUNT ON SELECT...
Analyze the following code snippet: DECLARE @myDate DATETIME2 SELECT @myDate = '2009/10/08 12:35:29.2348 +12:15' SELECT @myDate AS '@myDate' What is the output of the above code?
Analyze the following code snippet: DECLARE @myTime TIME(4) = '02:02:02.234567 +01:01' SELECT @myTime AS '@myTime' What is the output of the above code?
Analyze the following code used to update a Common Table Expression: USE demodb GO DECLARE @a TABLE (ID int, Value int); DECLARE @b TABLE (ID int, Value int); INSERT @a VALUES (1, 10), (2, 20); IN...
Analyze the following code using wild card characters of SQL Server 2008: SELECT Name FROM person.employees WHERE Name LIKE '[_]n' GO Which of the following values will be returned by the above c...
Analyze the following code which uses the TOP clause of SQL Server 2008: USE Person GO DECLARE @p AS int SELECT @p=10 SELECT TOP(@p) FROM Employee GO What Will be the output of the above code?
Analyze the following command: -o "C:Folder<file_name>" Which of the following statements is true if a file with the file name specified in the above command already exists?
Analyze the following data types and schemas: 1.The SQL Server system data type. 2.The default schema of the current user in the current database. 3.The dbo schema in the current database. In whi...
Analyze the following permissions: 1.ALTER permission on the database. 2.CONTROL permission in the database. 3.ALTER ANY SCHEMA permission and CREATE XML SCHEMA COLLECTION permission in the databa...
Columns marked with which of the following constraints/properties allow null values to be inserted in them?
Each table in SQL Server 2008 can have up to ______ nonclustered indexes.
For which of the following data types can a COLLATE clause be applied?
How many audit action groups are available for a server in SQL Server 2008 to perform different actions on audit data?
How many groupings are generated when CUBE is used with the GROUP BY clause of SQL Server 2008?
In which of the following statements can TOP clause be used in SQL Server 2008?
Multiple CHECK constraints can be applied to a single column and a single CHECK constraint can be applied to multiple columns in SQL Server 2008.
PRIMARY KEY constraint defaults to __________ index.
Starting from the lowest, arrange the following operators in the order in which they produce results in an SQL WHERE query. 1. >, >=, <, <= 2. <> 3. = 4. LIKE
Suppose e1 and e2 denote two decimal expressions with precisions p1 and p2 and scales s1 and s2, respectively. What is the result precision of the following operation on the two expressions? Opera...
Suppose you create a stored procedure and save it in the database with "sp_" prefix. Which of the following statements is true regarding the execution of the stored procedure?
The login timeout when you try to connect to a server must be a number between __________.
The output of a Transact SQL query using the GROUPING function of SQL Server 2008 is of __________ return type.
The regular identifiers of SQL Server 2008 may contain a range of _____________ characters.
The Server Audit object and the Server Audit Specification object of SQL Server 2008 share a __________ relationship.
User defined data type columns can be designated with ROWGUIDCOL.
What amount of storage is required by a date variable in SQL Server 2008?
What exactly is Full-Text Catalog in SQL Server 2008?
What happens to the audit records if a failure to write the Audit event does NOT trigger the SQL Server instance to shut down?
What is returned by NULLIF if the two expressions that it compares are NOT equal?
What is the data type of the parameter "Audit_file_offset" of function "fn_get_audit_file()" in SQL Server 2008?
What is the default maximum precision of decimal data type in SQL Server 2008?
What is the default precision of the date data type in SQL Server 2008?
What is the default precision of the TIME data type in SQL Server 2008?
What is the default timeout for login to sqlcmd while you try to connect to a server?
What is the default value of the SORT_IN_TEMPDB clause of the relational_index_option specified at the time of creation of an index on a table in SQL Server 2008?
What is the function of DBCC CHECKDB command in SQL Server 2008?
What is the maximum number of columns that can be combined into a single composite index key?
What is the maximum number of processors that can be used in parallel plan execution using the MAXDOP option in SQL Server 2008?
What is the maximum value for the sum of the values of MIN_CPU_PERCENT and MIN_MEMORY_PERCENT for all the resource pools of SQL Server?
What is the name of the default instance installed by SQL Server 2008 Express in your computer?
What is the return type of the value returned by @@DATEFIRST in SQL Server 2008?
What range is supported by the TIME data type in SQL Server 2008?
What should a computed column be marked as so that SQL Server Database Engine can physically store values in a table?
Which data type of SQL Server 2008 converts itself into the type of data that is inserted into it?
Which function/functions are performed by the following statement? DBCC CHECKIDENT ('table_name', RESEED, new_reseed_value)
Which of the following are valid DATETIME functions in SQL Server 2008?
Which of the following arguments of the fn_get_audit_file() function of SQL Server 2008 specifies the directory indicating the location and audit file set to be read?
Which of the following Audit objects primarily describes the destination where the audit data of SQL Server 2008 gets stored?
Which of the following clauses of SQL Server 2008 avoids enforcing a constraint when repeated inserts are performed?
Which of the following code snippets causes only partition number 1 to be rebuilt while changing the compression of a partitioned table?
Which of the following commands is used to connect to a named instance of SQL Server using the sqlcmd utility of SQL Server?
Which of the following commands is used to run a Transact-SQL script file by using sqlcmd?
Which of the following commands is used to save the output to a text file after you run a Transact-SQL script using sqlcmd?
Which of the following commands is used to start the Resource Governor in SQL Server 2008?
Which of the following compression features have been introduced in SQL Server 2008 that were NOT supported by SQL Server 2005?
Which of the following counters are used to monitor compression of the whole instance of SQL Server?
Which of the following data types are supported by SQL Server 2008?
Which of the following data types can be specified as SPARSE?
Which of the following default passwords is used by sqlcmd if -P option is used at the end of the command prompt without a password?
Which of the following encryption algorithms are used by the Transparent Data Encryption security mechanism of SQL Server 2008?
Which of the following evaluation modes of Policy-Based Management CANNOT be automated in SQL Server 2008?
Which of the following features is used by SQL Server Audit to create and manage audits in SQL Server 2008?
Which of the following features of SQL Server 2008 enables you to limit the memory used by incoming application requests?
Which of the following features of SQL Server 2008 evaluates servers for compliance with a set of predefined conditions and prevents making undesirable changes to servers?
Which of the following formats are supported by the language_term argument while altering a full-text stoplist in SQL Server 2008?
Which of the following is a valid code to change the index created on a column of a table to page compression?
Which of the following is a valid code to delete a clustered index with a PRIMARY KEY constraint in SQL Server 2008?
Which of the following is a valid code to remove the key used to encrypt a database using Transparent Data Encryption algorithm?
Which of the following is a valid syntax of the ALTER SERVER AUDIT statement used to enable a server audit?
Which of the following is the correct order of steps to be followed while using the Transparent Data Encryption security feature of SQL Server 2008?
Which of the following is the correct precedence order of the data types in SQL Server 2008? 1.xml 2.text 3.bigint 4.image 5.float 6.datetime
Which of the following is the default authentication mode for sqlcmd in SQL Server 2008?
Which of the following is used by SQL Server 2008 Management Studio to execute scripts in regular mode in the Query Editor?
Which of the following is used to comment a portion of an SQL Server 2008 script?
Which of the following methods can be specified for the lock escalation of a table in SQL Server 2008?
Which of the following namespaces is used to manage the audit configuration programmatically in SQL Server 2008?
Which of the following options are available for the DATA_COMPRESSION clause specified for a table in SQL Server 2008?
Which of the following options is NOT supported by the ON DELETE clause of a FOREIGN KEY constraint of SQL Server 2008?
Which of the following options is used to change the value of the password variable and exit using sqlcmd?
Which of the following permissions are required to create a view in SQL Server 2008?
Which of the following permissions is required to drop a stored procedure in SQL Server 2008?
Which of the following queries is used to rename a database in SQL Server 2008?
Which of the following roles is required to connect to a Central Management Server?
Which of the following rules must be followed for combining the result sets of two queries by using UNION?
Which of the following scripting options are available while creating a script using the shortcut menu from the Object Explorer in SQL Server 2008 Management Studio?
Which of the following security features have been introduced in SQL Server 2008?
Which of the following spatial data types are used in SQL Server 2008?
Which of the following statements are true about FILESTREAM storage in SQL Server 2008?
Which of the following statements are true about the FILESTREAM argument of SQL Server 2008?
Which of the following statements are true regarding row and page compression in SQL Server 2008?
Which of the following statements are true?
Which of the following statements is NOT true about the UNIQUE constraint of SQL Server 2008?
Which of the following statements is true if you create a global temporary table in SQL Server 2008 and specify a FOREIGN KEY with the CREATE TABLE command?
Which of the following statements is true regarding indexes in SQL Server 2008?
Which of the following statements using GROUP BY clause are allowed in SQL Server 2008?
Which of the following stored procedures is used to delete data from the management data warehouse of a Data Collector?
Which of the following values specifies that each instance of the XML data type in column_name can contain multiple top-level elements?
Windows Security log can be specified as a target for Audit in SQL Server 2008.