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
-
Using DTS Import
-
Using bcp -out and use bcp -in to insert the data into the new SQL 7 Server
-
Use the DTS Export
-
Using bcp -copy, copy the data from the SQL 6.5 Server to the SQL 7 Server
-
Both A and B
E
Correct answer
Explanation
SQL Server 7.0 introduced DTS (Data Transformation Services), which can import data from SQL 6.5. Alternatively, bcp (bulk copy program) with -out to export from 6.5 and -in to import to 7.0 works across versions. DTS Export is for exporting data OUT, not importing. There is no 'bcp -copy' command - the correct syntax is bcp -out and bcp -in.
-
Rebuild Master database
-
Edit registry
-
Run regrebld.exe
-
Restore registry from backup
C
Correct answer
Explanation
The -f flag starts SQL Server with minimal configuration, which may exclude network libraries. regrebld.exe rebuilds the registry entries for SQL Server, restoring proper network configuration. Rebuilding the master database (A) is extreme and would lose all configuration. Manually editing (B) or restoring (D) the registry is risky and unnecessary when regrebld.exe automates this correctly.
-
DBCC CHECKDB
-
DBCC NEWALLOC
-
DBCC CHECKALLOC
-
DBCC CHECKCATALOG
A
Correct answer
Explanation
DBCC CHECKDB is the primary command used to check the logical and physical integrity of all objects in the database, including verifying that index pages are correctly sorted and that offsets are reasonable. CHECKALLOC focuses specifically on disk space allocation structures.
-
All committed transactions that are in the transaction log
-
All uncommitted transactions that are in the transaction log
-
All committed transactions that are in the transaction log between the last checkpoint and the failure
-
All committed transactions that are in the transaction log between the last two checkpoints
C
Correct answer
Explanation
SQL Server recovery rolls forward committed transactions from the transaction log since the last checkpoint, ensuring durability. Transactions before the last checkpoint were already written to data files. Uncommitted transactions (B) are rolled back, not forward. Option A is incorrect because transactions before the checkpoint are already on disk. Option D is incorrect - recovery uses the last checkpoint, not the interval between two checkpoints.
-
Run the stored procedure set query governor cost limit.
-
Modify the configuration parameter min memory per query.
-
Modify the configuration parameter show advanced options.
-
Modify the configuration parameter query governor cost limit.
-
Both C and D
-
C:MSSQL7LOGERROR.LOG
-
C:MSSQL7ERROR.LOG
-
C:MSSQL7SQLSTP.LOG
-
Windows NT Event Log-Application Log
-
Windows NT Event Log-System Log
D
Correct answer
Explanation
When SQL Server fails to start on a Windows NT/2000 system, the Application Log within the Windows Event Viewer is the primary place to find service-level errors. While SQL's own ERRORLOG is useful, the Event Log captures the initial service startup failure details.
-
When the xp_logevent stored procedure is invoked
-
When sp_addmessage or sp_altermessage define errors to be written to the NT application log
-
When SQL Server errors occur with severity levels between 19 and 25
-
When the RAISEERROR WITH LOG statement is executed
-
All of the above
E
Correct answer
Explanation
SQL Server writes to the Windows NT application log through multiple mechanisms. The xp_logevent extended stored procedure explicitly logs custom messages. System stored procedures sp_addmessage and sp_altermessage can configure error messages to write to the NT log. SQL Server automatically logs errors with severity levels 19-25 (critical errors). The RAISERROR WITH LOG statement also forces logging. Since all four methods are valid, option E is correct.
-
SQL Server Enterprise Manager
-
SQL Server Transact
-
SQL Server Network Client
-
SQL Server Query Analyzer
-
Both A and D
E
Correct answer
Explanation
SQL Server Enterprise Manager is the main administrative console that shows server status and registered servers. SQL Server Query Analyzer allows you to execute test queries against the server; successful queries confirm the server is running. Both tools are valid for verification.
-
Replication management
-
Job execution
-
Notification
-
Alert management
-
All of the above
E
Correct answer
Explanation
SQL Server Agent is a scheduling and automation service that performs job execution (scheduled tasks), alert management (responding to SQL Server events), notification (sending alerts to operators), and replication management (automating replication tasks). All listed functions are performed by the Agent.
B
Correct answer
Explanation
Windows NT Authentication mode requires the client to be part of a Windows NT domain and support integrated security. Windows 98 workstations cannot participate in Windows NT authentication; they must use SQL Server authentication with a username and password.
-
Just upgrade normally to SQL Server 7
-
Use SQL 6.5 Transfer Management Tool to push the data and objects from version 4.2 to 7
-
Upgrade the server to SQL Server 6.5, then upgrade again to SQL Server 7
-
Use the DTS to transfer the data and objects
C
Correct answer
Explanation
SQL Server 7.0 does not support a direct upgrade path from version 4.2. The standard procedure requires upgrading the 4.2 instance to version 6.5 first, and then using the SQL Server Upgrade Wizard to move to version 7.0.
-
SQL Server Agent
-
MS DTC
-
MSSQL Server
-
All of the above
D
Correct answer
Explanation
A Typical installation of SQL Server on NT includes the core database engine (MSSQLServer), the SQL Server Agent for automation, and the Microsoft Distributed Transaction Coordinator (MS DTC) for managing transactions across multiple servers.
-
Increase Min server memory
-
Set working area to 1
-
Set working area to 0
-
Increase memory allocated to the procedure cache option
-
Reduce Min server memory
A
Correct answer
Explanation
The msdb database is used by SQL Server Agent for scheduling alerts and jobs, as well as recording history. Master stores system-level info, tempdb stores temporary objects, and model is the template for new databases.
-
The copy_db command at a command prompt
-
Data Transformation Services
-
The oslp utility
-
Data Transfer System
-
The BULK INSERT statement
B
Correct answer
Explanation
Data Transformation Services (DTS) is the legacy SQL Server 7.0/2000 tool designed specifically for importing, exporting, and transforming data between different formats, such as moving an Access table into a SQL Server database.