SQL Server Text Flashcards
What is Sql server?
SQL - Structured query language is the standard command set used to communicate with the relational database management system.
Sql server - is commonly used as the backend system for websites and corporate CRMs and can support thousands of concurrent users.SQL Server is much more robust and scalable than a desktop database management system such as Microsoft Access.
What are the System Database in Sql server 2005?
■Master - Stores system level information such as user accounts, configuration settings, and info on all other databases.
■Model - database is used as a template for all other databases that are created
■Msdb - Used by the SQL Server Agent for configuring alerts and scheduled jobs etc
■Tempdb - Holds all temporary tables, temporary stored procedures, and any other temporary storage requirements generated by SQL Server.
What is the difference between TRUNCATE and DELETE commands?
TRUNCATE is a DDL command whereas DELETE is a DML command. Hence DELETE operation can be rolled back, but TRUNCATE operation cannot be rolled back. WHERE clause can be used with DELETE and not with TRUNCATE.
What is OLTP?
Online Transaction Processing (OLTP) relational databases are optimal for managing changing data. When several users are performing transactions at the same time, OLTP databases are designed to let transactional applications write only the data needed to handle a single transaction as quickly as possible.
Define Normalisation?
Normalisation is an essential part of database design. A good understanding of the semantic of data helps the designer to built efficient design using the concept of normalization.
What are the difference between clustered and a non-clustered index?
A Clustered index is a special type of index that reorders the way in which each records in the table are physically stored.
A Non clustered index is a special type of index in which the logical order of the index does not match the physical stored order of the rows on disk.
What are the System Database in Sql server 2008?
■Master ■Model ■Msdb ■Tempdb ■Resource
What is denormalization and when would you go for it?
Denormalization is the process of attempting to optimize the performance of a database by adding redundant data or by grouping data.Denormalization is the reverse process of normalization.
What are the different types of Sub-Queries?
■Single row subquery
■Multiple row subquery
■Correralted row subquery
What are constraints? Explain different types of constraints?
Constraints is a rule or restriction concerning a piece of data that is enforced at the data level. A Constraint clause can constrain a single column or group of columns in a table.
There are five types of Constraint namely
■ Null / Not Null ■ Primary Key ■ Unique ■Check or Validation ■Foreign Key or References Key
What are the different types of BACKUPs avaialabe in SQL Server 2005?
In SQL Server 2005 Backup Types are ■Full ■Transaction Log ■Differential ■Partial ■Differential Partial ■File and Filegroup ■Copy Only Database Backups.
What are Data files?
■The primary key is the columns used to uniquely identify each row of a table.
■A table can have only one primary key.
■No primary key value can appear in more than one row in the table.
Define Primary Key?
■The primary key is the columns used to uniquely identify each row of a table.
■A table can have only one primary key.
■No primary key value can appear in more than one row in the table.
What is cursors? and what are the different types of cursor?
Cursor is a database object used by applications to manipulate data in a set on a row-by-row basis, instead of the typical SQL commands that operate on all the rows in the set at one time.
■Implicit cursors
■Explicit cursors
■Paramaeteried cursors
What is SQL Profiler?
SQL Profiler is a graphical tool that allows system administrators to monitor events in an instance of Microsoft SQL Server. You can capture and save data about each event to a file or SQL Server table to analyze later.
Define Unique Key?
■Unique key is a one or more column that must be unique for each row of the table.
■It is similar to primary key. Primary key column will not accept a null. Whereas the unique key column will accept a null values.
Define Joins?
A Join combines columns and data from two or more tables (and in rare cases, of one table with itself).
Define Indexes?
Index is a general term for an Oracle/SQL features used to primarily to speed execution and imposes uniqueness upon certain data.
The most important of an index is to ensure uniqueness of rows and help in speedy retrieval of data.