For #tsql2sday, sometimes the best dynamic SQL code you can write is the code that was dynamically generated for you from your tables or views. The dynamic SQL stored procedure named dbo.PersonSearch below was generated with the free open-source stored procedure named sp_CRUDgen.…
Kevin MartinOctober 11, 2022