Top 20 tips to optimize your T-SQL code (Part-2) Author: Basit A. Farooq In this second of the two part article series, I will share the last 10 tips that you can follow to optimize T-SQL code. Tip#11: Avoid overindexing tables Indexes are the solution to many performance problems, but too many indexes on tables affect the performance of INSERT, […]
Author: Basit Aalishan Masood-Al-Farooq
Top 20 tips to optimize your T-SQL code (Part-1)
Top 20 tips to optimize your T-SQL code (Part-1) Author: Basit A. Farooq Troubleshooting the database performance bottlenecks is not an easy task, since it can be influenced by a lot of different factors. However, common symptoms of SQL Server database performance bottlenecks are related to bad Transact-SQL (T-SQL) code. This is because, the core database application logic is done...
Top 20 tips to optimize your T-SQL code (Part-1)
Top 20 tips to optimize your T-SQL code (Part-1) Author: Basit A. Farooq Troubleshooting the database performance bottlenecks is not an easy task, since it can be influenced by a lot of different factors. However, common symptoms of SQL Server database performance bottlenecks are related to bad Transact-SQL (T-SQL) code. This is because, the core database application logic is done […]
SQL Server Interview Questions and Answers for DBAs and Developers – (Part-4)
SQL Server Interview Questions and Answers for DBAs and Developers – (Part-4) Author: Basit A. Farooq This article outlines the interview questions that you should ask to SQL Server DBA. These questions will help you to assess the candidate’s knowledge in relation to SQL Server instance-wide properties, settings and databases. Question Difficulty = Moderate Question 1: In the Server Properties...
Implementing Reliable ETL Processes with SQL Server Integration Services
Implementing Reliable ETL Processes with SQL Server Integration Services Author: Basit A. Farooq In our previous three-part article series “Incorporating logging, error handling, and reliability into your SQL Server Integration Services (SSIS) package design”, we have focused on logging and error handling both vital considerations to ensure long-term reliability of your SQL Server Integration Services packages. However, there are other...
SQL Server Interview Questions and Answers for DBAs and Developers – (Part-3)
SQL Server Interview Questions and Answers for DBAs and Developers – (Part-3) Author: Basit A. Farooq This article outlines the interview questions that you should ask to SQL Server DBA. These questions will help you to assess the candidate’s knowledge in relation to SQL Server instance-wide properties and settings. Question Difficulty = Moderate Question 1: How you can view the...
SQL Server Interview Questions and Answers for DBAs and Developers – (Part-2)
SQL Server Interview Questions and Answers for DBAs and Developers – (Part-2) Author: Basit A. Farooq In this second part, we will focus on interview questions, which you should ask to SQL Server DBA. These questions will help you to assess the basic knowledge and skills of the candidates in relation to SQL Server product and features. Question Difficulty =...
SQL Server Interview Questions and Answers for DBAs and Developers; (Part-1)
SQL Server Interview Questions and Answers for DBAs and Developers – (Part-1) Author: Basit A. Farooq In this article, I will outline interview questions you should ask to Junior SQL Server DBA or developer. These question will help you to assess the basic knowledge and skills of the candidates in relation to SQL Server product and database design. Question Difficulty...
Transact-SQL Subqueries
Transact-SQL Subqueries You use subqueries to break a query into logical steps. By using subqueries, you can often solve a complex data retrieval or modification problem with a single statement. You use subqueries in situations in which a query depends on the results of another query. Subqueries typically aren’t the most efficient way to retrieve data. Whenever possible, it is...
SQL Server — Importing and exporting flat file data
Importing and Exporting Flat File Data Author: Basit A. Farooq File export Many companies have periodic requirements for flat files generated from database sources. You can use the SQL Server Import and Export Wizard to define the export SQL Server Integration Services package once and reuse the file as long as the export parameters don’t change any time. This means...