Computer Knowledge
Database Management Systems
5,344 Questions
Database Management Systems (DBMS) form the core framework for data storage, retrieval, and security in modern software applications. Concepts such as the E-R model, backup planning, SQL integration, and big data architecture are essential for computer knowledge sections. This hub offers a comprehensive set of practice questions to master DBMS fundamentals and advanced database operations.
E-R Model ConceptsBackup and RecoverySQL Server UpgradesJDBC and ODBCBig Data CharacteristicsData VirtualizationOracle Database
Database Management Systems Questions
-
(a) Reporting Services
-
(b) Integration Services
-
(c) Analysis Services
-
(d) Database Engine
-
(e) Mobile Engine
A,B,C,D
Correct answer
Explanation
SQL Server 2005 is a comprehensive platform with four main service components. Database Engine is the core for data storage and processing, Analysis Services provides OLAP and data mining, Integration Services handles ETL operations, and Reporting Services enables report generation and delivery. Mobile Engine is not a SQL Server 2005 component.
-
(a) Data Migration
-
(b) Improved analytical capabilities
-
(c) Smaller Data engine
-
(d) Superior Integration properties
A,B,D
Correct answer
Explanation
SQL Server 2005 enhanced Business Intelligence through key capabilities. Data Migration via Integration Services (SSIS) enables ETL operations. Improved analytical capabilities come from Analysis Services (SSAS) with enhanced OLAP and data mining. Superior Integration properties refer to better integration with other applications and Office. A smaller data engine is not a BI feature.
-
(a) SQL Server 2005 Developer Edition
-
(b) SQL Server 2005 Enterprise Edition
-
(c) SQL Server 2005 Standard Edition
-
(d) SQL Server 2005 Express Edition
B,C
Correct answer
Explanation
SQL Server 7.0 Standard Edition can upgrade to SQL Server 2005 Standard Edition (same tier) and Enterprise Edition (upgrade path). Developer and Express editions are lateral moves or downgrades - Microsoft doesn't support direct in-place upgrades from Standard to these editions. You would need to migrate data instead.
-
(a) Database Mirroring
-
(b) Integration Services
-
(c) Notification Services
-
(d) All of the above
C
Correct answer
Explanation
SQL Server 2005 Notification Services is a platform for developing and deploying applications that generate and send notifications to subscribers. It's specifically designed for sending personalized messages to large audiences. Database Mirroring is for high availability, Integration Services is for ETL - neither handles messaging.
-
(a) Configuring Services
-
(b) Detecting slow running queries
-
(c) Troubleshooting
-
(d) All of the above
B,C
Correct answer
Explanation
SQL Profiler is primarily a diagnostic and performance monitoring tool. It's used to detect slow-running queries by capturing trace events, and for troubleshooting database issues by analyzing query patterns, deadlocks, and performance bottlenecks. It doesn't configure services directly - that's done through Configuration Manager or Surface Area Configuration.
A
Correct answer
Explanation
SQL Server 2005 supports renaming databases and database objects through the sp_rename system stored procedure. This procedure can rename tables, views, stored procedures, indexes, columns, and other user-created objects. However, some system objects and certain object types have restrictions on renaming.
-
(a) DTUTIL
-
(b) BCP
-
(c) Object Explorer
-
(d) None of the above
D
Correct answer
Explanation
SQL Server 2005 provides sqlcmd (the successor to osql) for running T-SQL queries from the command prompt. DTUTIL is for SSIS packages, BCP is for bulk data import/export, and Object Explorer is a GUI component in SSMS. Since sqlcmd isn't listed, 'None of the above' is technically correct given the options.
-
(a) Model database
-
(b) Master Database
-
(c) msdb
-
(d) Temporary database
A,B,C
Correct answer
Explanation
SQL Server 2005 has four system databases that are essential for server operation. Master is the core database with system metadata, Model serves as a template for new databases, msdb stores SQL Agent jobs and SSIS packages, and tempdb is for temporary objects. The option 'Temporary database' is misleading - the actual name is 'tempdb'.
-
(a) Desktop Applications
-
(b) Encrypted Stored procedures
-
(c) Stored procedures
-
(d) Trace files
-
(e) Triggers
C,D,E
Correct answer
Explanation
Upgrade Advisor analyzes SQL Server 2000 objects to identify potential issues before upgrading to 2005. It can examine Stored procedures, DDL triggers, and Trace files for deprecated features or breaking changes. It cannot analyze desktop applications or encrypted stored procedures (encryption prevents analysis).
-
(a) Distributed Queries
-
(b) OPENROWSET function
-
(c) Remote Stored Procedures
-
(d) Execute Statement
-
(e) All of the above
A,C,D
Correct answer
Explanation
SQL Server 2005 provides three main methods to access a Linked Server: Distributed Queries using four-part naming convention (LinkedServer.Database.Schema.Table), Remote Stored Procedures that execute directly on the linked server, and the EXECUTE statement with the AT Linked Server clause for pass-through queries. OPENROWSET is an ad-hoc method that doesn't require a predefined linked server, making it distinct from these linked server-specific access methods.
-
(a) Allows fast and flexible indexing for keyword based query
-
(b) Provides a message based communication platform
-
(c) Supports sending Email from the database
-
(d) None of the above
A
Correct answer
Explanation
Full-Text Search in SQL Server 2005 provides specialized indexing for fast keyword-based queries on text data. Unlike standard SELECT with LIKE patterns which scan entire tables, Full-Text Search builds inverted indexes allowing efficient searches for words, phrases (even with proximity), and inflectional forms. Option B incorrectly describes Service Broker (message-based communication), and Option C describes Database Mail, both unrelated to Full-Text Search.
-
(a) Add SQL 2 as linked server to SQL 1
-
(b) Add SQL 2 as remote Server to SQL 1
-
(c) Reference SQL 2 by an alias
-
(d) None of the above
A
Correct answer
Explanation
The OPENQUERY function requires a linked server to be configured first. The error occurs because SQL 1 doesn't have SQL 2 registered as a linked server. Adding SQL 2 as a linked server (option A) creates the necessary connection object that OPENQUERY can then reference. A remote server (option B) is an older SQL Server concept mainly for remote stored procedures, not for OPENQUERY queries. Aliases (option C) are for local naming, not for cross-server connections.
-
(a) Add SQL 2 as linked server to SQL 1
-
(b) Add SQL 2 as remote Server to SQL 1
-
(c) Reference SQL 2 by an alias
-
(d) None of the above
A
Correct answer
Explanation
This is an exact duplicate of question 143704. The OPENQUERY function requires a linked server to be configured first. The error occurs because SQL 1 doesn't have SQL 2 registered as a linked server. Adding SQL 2 as a linked server (option A) creates the necessary connection object that OPENQUERY can then reference. A remote server (option B) is an older SQL Server concept mainly for remote stored procedures, not for OPENQUERY queries. Aliases (option C) are for local naming, not for cross-server connections.
-
(a) In the Bulk-Logged recovery model, all transactions are logged
-
(b) In the Simple recovery model, all transactions are logged.
-
(c) In the Full recovery model, most transactions are minimally logged
-
(d) In the Simple recovery model, most transactions are minimally logged
D
Correct answer
Explanation
SQL Server recovery models control logging behavior. In Simple recovery, bulk operations like BULK INSERT are minimally logged for performance - only page allocations are logged, not individual row changes. Full recovery logs all operations completely. Bulk-Logged recovery minimally logs bulk operations but fully logs other transactions. Option D is correct because Simple recovery specifically uses minimal logging for bulk operations to reduce log space and improve performance.
-
(a) It defines the database catalog
-
(b) It defines the table catalog
-
(c) It groups database objects
-
(d) It groups databases
C
Correct answer
Explanation
A database schema functions as a logical namespace to group related database objects (such as tables, views, and indexes) under a common owner or organization. It does not group separate databases or define catalogs.