Real Use Case of Dynamic SQL Query | When and How to use Dynamic SQL | Application of Dynamic SQL

preview_player
Показать описание
Real Use Case of Dynamic SQL Query | When and How to use Dynamic SQL | Application of Dynamic SQL


Agenda:
-------------
Q01. How can you return the matching records of passed CSV values from the stored procedure?
Q02. How can you return the Dynamic Alias Name passed by the user for the column names from the stored procedure?
Q03. How can you return the Dynamic Output column lists passed by the user from the stored procedure?
Q04. How can you write a stored procedure that accepts the name as an input parameter and will create a table or database?
Q05. How can you write a stored procedure that accepts the table name as an input parameter and returns data from that table?
Q06. How can you write a stored procedure that accepts the database name as an input parameter and returns data from that database table?
Q07. How can you write a stored procedure that accepts column name as input parameter and returns data order by the provided column?
Q08. How can you write a stored procedure that accepts multiple input parameters and returns data filtered by the provided parameters?
Q09. How can you write a stored procedure that accepts schema name as input parameters and returns data from the provided schema name?
Q10. How can you write a stored procedure that accepts the linked server name as an input parameter and returns data from that server database table?


Recommended Videos Playlists:
============================================================

Recommended C# Interview Questions Videos:
============================================================

Recommended SQL Videos:
============================================================

Recommended C# Fundamentals Videos:
============================================================

Recommended C# Videos:
============================================================

Follow Us on Social Media Platforms:
============================================================

#techpointfundamentals #techpointfunda #techpoint #interviewquestions #sqlinterviewquestions #dynamicsql #sqlvideos #dynamicsqluse
Рекомендации по теме
Комментарии
Автор

I have to admit that I didn't watch the whole thing but your first example is a classic reason why SQL Injection is still one of the most prevalent attack vectors there is. You also really need to get a better splitter function, as well. They have one built in as of 2016 which would work.

jeffmoden
Автор


You can reverse engineer the stored procedure generated by sp_CRUDGen to get some dynamic SQL best practices.

kevinmartintech