4
 What are the steps to take to improve performance of a poor performing query?  Steps to take to improve performance of queries:  Use indexes efficiently  Create all primary and foreign keys and relationships among tables.  Avoid using cursors  Avoid using Select*, rather mention the need ed columns and narrow the resultset as needed.  Denormalize  Use partitioned views  Use temporary tables and table variables  Reduce joins and heavy clauses like GROUP BY if not needed  Implement queries as stored procedures.  Have a WHERE Clause in all S ELECT queries.  Use data types wisely  Instead of NULLS use string values such as N/A Explain the different types of BACKUPs available in SQL Server. Types of backups available in SQL Server:  Complete:  This creates a complete stand alone image of the database. This backup is self dependent and can be restored to either the same or a new database on same or other server.  Differential:  This backs up only the modified contents since t he last backup. They do not provide much flexibility.  Transaction log: This backs up all transaction logs since the previous transaction log backup or the complete transaction log backup if there has not been one in past.  Files and Filegroups backup: This option is suitable when time constraints are high and one cannot afford to perform a complete database backup. It also needs transaction logs backup to take place to make it worth choosing this option. After restoring file backup, apply transaction logs to roll the file contents forward to make it consistent with the database.. 3. What third party database tools are your favorites? If somebody’s been doing database administration long enough to claim the titl e Senior DBA, they’ve built up a little wish list of database management tools they’ve seen along the wa y. Tool types might include:

SQL DBA Question

Embed Size (px)

Citation preview

Page 1: SQL DBA Question

8/11/2019 SQL DBA Question

http://slidepdf.com/reader/full/sql-dba-question 1/4

Page 2: SQL DBA Question

8/11/2019 SQL DBA Question

http://slidepdf.com/reader/full/sql-dba-question 2/4

Page 3: SQL DBA Question

8/11/2019 SQL DBA Question

http://slidepdf.com/reader/full/sql-dba-question 3/4

Page 4: SQL DBA Question

8/11/2019 SQL DBA Question

http://slidepdf.com/reader/full/sql-dba-question 4/4