SQL Server Administration and Query Fundamentals
Test your knowledge of SQL Server administration features including mirroring, clustering, indexes, authentication, recovery models, and fundamental SQL query syntax
Questions
We cannot decide if a server is a linked server by using sys.servers catalog view. True or False?
- True
- False
In the Table employee_Details there are two columns: Employee_Id-Integer[10] and Employee_Name-Char[10],The following select query Select distinct(Employee_Name) from employee_Details where Employee_Id='1232' fails due to:
- The field mentioned in the where clause should be one of the columns selected
- The distinct function can not be used on a field of type Char
- The Integer value mentioned in the where clause should not be enclosed by quotes since it is of integer type.
- none of the above.
The ORDER BY keyword sort the records in descending order by default.
- True
- False
fill up:A LEFT JOIN Return all rows from the _________ table, even if there are no matches in the __________ table
- left,right
- right,left
- left,left
- right,right
Fill Up: The UNION operator selects only distinct values by default. To allow duplicate values, use __________
- UNION ENTIRE
- FULL UNION
- UNION ALL
- none of the above
The following query fails. Select employee_name,employee_id,count() from employee_Details group by employee_id where count()>2; The right format is:
- Select employee_name,count() from employee_Details group by employee_id where count()>2;
- Select employee_name,employee_id,count() from employee_Details group by employee_id having count()>2;
- Select employee_name,employee_id,count() from employee_Details order by employee_id where count()>2;
- NONE of THE ABOVE
Select * from employee_Details with ur; in the follwoing query UR stands for:
- Under Read
- neither a,c or d
- Uncommitted Read
- Uncommitted Ride
An application program containing query with UR
- can read data that has been changed and committed.
- can read data that has been changed but is not yet committed.
- both a and b
- neither a or b
Select the right syntax to delete all the rows from the table employee_Details but retain the table :
- delete * from employee_Details
- delete from employee_Details
- truncate table employee_Details
- drop table employee_Details
What command(s) you have to execute to know the processes running inside SQL server.
- Sp_helpdb
- sp_helpprocess
- sp_who2
- select * from sys.sysprocesses
On which port does SQL server runs.
- 1433
- 1434
- 1432
- 1435
Wchich recovery model should database be in for database mirroring to be configured on it
- Bulk logged
- Half
- Full
- Simple
What are the modes of authentication in SQL server database.
- Builtin/Administrator
- Windows authentication
- Mixed mode
- SQL authentication
What is process to truncate a transaction log in SQL server
- Fire truncate command
- Backup the transaction log
- Backup the database
- Logs cannot be truncated in SQL Server
Mark all the indexes which are their in SQL server
- Bit Map
- clustered
- Non clustered
- filter
- covering
- Composite
How many types of system database are therand which database stores information about jobs running on the SQL server
- 4,Model
- 4,MSDB
- 5,MSDB
- 5,Master
Waht is page size and Extent size in SQL server
- 8,64 MB
- 8,64 KB
- 16,64 KB
- 10,86 MB
What is view in sql server database
- Logical form of table
- Physical view of table
- Logical view of table
- View are thoes which are created on Stored procedure
What are HA Options in SQL server 2005 database.
- Data Guard
- Clustering
- Mirroring
- Transaction log shipping
- RAC
Which edition of SQL server supports Asynchronous mirroring.
- Workgroup
- Express
- Standard
- Enterprise