SQL Server 2017 Interview Questions with Answers
Here we come with latest SQL Server interview questions which is related to latest SQL Server 2017 thats why all questions are also latest if you are looking for latest then this is the place. :)
Lets check your knowledge..
What do you understand by Adapative query processing launched in SQL Server 2017?
SQL Server 2017 and Azure SQL Database introduce a new generation of query processing improvements that will adapt optimization strategies to your application workload’s runtime conditions.
Name all three Adaptive query processing features?
In SQL Server 2017 and Azure SQL Database there are three adaptive query processing features by which you can improve your query performance:
Batch mode memory grant feedback.
Batch mode adaptive join.
Interleaved execution.
Write T-SQL statement to enable adaptive query processing?
You can make workloads automatically eligible for adaptive query processing by enabling compatibility level 140 for the database. You can set this using Transact-SQL. For example:
ALTER DATABASE [WideWorldImportersDW] SET COMPATIBILITY_LEVEL = 140;
Name the new string function which is very useful to generate csv file from a table?
CONCAT_WS is new function launched in SQL Server 2017 its takes a variable number of arguments and concatenates them into a single string using the first argument as separator. It requires a separator and a minimum of two arguments.
It is very helpful in generate comma or pipe seprated csv file content.
Example:
What do you understand by TRANSLATE in SQL Sever 2017?
TRANSLATE is a new string function launched in SQL Server 2017, It is very helpful to replace multiple character with multiple character respectively. It will return an error if characters and translations have different lengths.
In below example we are using traditional REPLACE function, and for same task we will use TRANSLATE function lets see the difference.
What is the use of new TRIM function?
It Removes the space character char(32) or other specified characters from the start or end of a string.
Is SQL Server 2017 support Python?
Yes
Lets check your knowledge..
What do you understand by Adapative query processing launched in SQL Server 2017?
SQL Server 2017 and Azure SQL Database introduce a new generation of query processing improvements that will adapt optimization strategies to your application workload’s runtime conditions.
Name all three Adaptive query processing features?
In SQL Server 2017 and Azure SQL Database there are three adaptive query processing features by which you can improve your query performance:
Batch mode memory grant feedback.
Batch mode adaptive join.
Interleaved execution.
Write T-SQL statement to enable adaptive query processing?
You can make workloads automatically eligible for adaptive query processing by enabling compatibility level 140 for the database. You can set this using Transact-SQL. For example:
ALTER DATABASE [WideWorldImportersDW] SET COMPATIBILITY_LEVEL = 140;
Name the new string function which is very useful to generate csv file from a table?
CONCAT_WS is new function launched in SQL Server 2017 its takes a variable number of arguments and concatenates them into a single string using the first argument as separator. It requires a separator and a minimum of two arguments.
It is very helpful in generate comma or pipe seprated csv file content.
Example:
What do you understand by TRANSLATE in SQL Sever 2017?
TRANSLATE is a new string function launched in SQL Server 2017, It is very helpful to replace multiple character with multiple character respectively. It will return an error if characters and translations have different lengths.
In below example we are using traditional REPLACE function, and for same task we will use TRANSLATE function lets see the difference.
What is the use of new TRIM function?
It Removes the space character char(32) or other specified characters from the start or end of a string.
Is SQL Server 2017 support Python?
Yes
Comments