Apologies for the late invitation. A minor snafu has me hosting again.
This is the monthly blog party where someone hosts and you all write a response. I’d like to think this is one where lots of you have a story or a situation that worked out. Write a post on 11 Oct and post a comment here.
The Invitation
I saw a post recently where someone noted they used Excel to help build dynamic SQL for their job. I thought that was a) creative, and b) similar to something I’ve done. In fact, that will be my post for this month.
However, while many of the experts decry dynamic SQL as a poor way of solving problems, it is not going away. In fact, it works really well for many situations and problems, albeit not necessarily a high volumes of data. There also are security concerns.
My invitation this month is to write about producing SQL dynamically in some way. Let us know about any of these things:
- a problem you solved
- a creative use of technology to build SQL
- security concerns
- a place where dynamic SQL failed you
- a way to convert dynamic SQL to something cleaner
- anything else that relates to code producing code
The Rules
Only a few rules.
- publish on 11 Oct 2022 sometime.
- use the logo above and link back to this post
- leave a comment or trackback/pingback here
- Use the #tsql2sday hashtag to tag your post on Twitter, LinkedIn, etc.
- Encourage others to blog
That’s it. Have fun and I look forward to reading your responses.
If you want to host, ping me on twitter (@way0utwest) or LinkedIn or email or anything really.
Pingback: T-SQL Tuesday #155 – The Dynamic Code Invitation – T-SQL Tuesday
Thanks for hosting, Steve. Mine’s over at https://lobsterpot.com.au/blog/2022/10/11/the-dangers-of-dynamic-sql-and-how-to-avoid-them/
LikeLike
First, as always. Thanks Rob
LikeLike
Well, my time zone means I’m awake when it becomes midnight GMT.
LikeLiked by 1 person
Pingback: T-SQL Tuesday #155 – The Dynamic Code Invitation – Andy Brownsword
Hi Steve!
I wrote something too 🙂
https://www.madeiradata.com/post/t-sql-tuesday-155-too-many-single-use-plans-issue
LikeLike
nice, thanks for participating.
LikeLike
Hey Steve, thanks for hosting this month – my contribution’s at https://richardswinbank.net/blog/metadata-driven-sql-code-generation. Richard
LikeLike
My pleasure and thanks for the post
LikeLike
Pingback: T-SQL Tuesday: Dynamic SQL, The Data Type – Erik Darling Data
Pingback: Get Core SQLServer Health Metrics using Dynamic SQL - Ajay Dwivedi's SQL Server Blog
Pingback: T-SQL Tuesday #155–Using Dynamic SQL for SQLCMD | Voice of the DBA
Hi Steve! This is how I am using dynamic sql to collect remote SQL Server Health Metrics.
https://ajaydwivedi.com/performance-tuning/get-core-sqlserver-health-metrics-using-dynamic-sql/?swcfpc=1
LikeLike
Thanks
LikeLike
Pingback: T-SQL Tuesday #155 –The Dynamic Code Invitation – SQLDoubleG
Thanks Steve for hosting, this is my addition
https://www.sqldoubleg.com/2022/10/11/t-sql-tuesday-155-the-dynamic-code-invitation/
LikeLike
Thanks Steve!
LikeLike
Pingback: T-SQL Tuesday 155, Dynamic SQL – Reitse's blog
Thanks for hosting Steve! https://sqlreitse.com/2022/10/11/t-sql-tuesday-155-dynamic-sql/
LikeLike
Thanks for hosting Steve!
https://sqlreitse.com/2022/10/11/t-sql-tuesday-155-dynamic-sql/
LikeLike
Thanks for hosting: I clearly had something to get out of my system…
https://accitentionaldba.com/posts/2022/10/tsqltuesday155/
LikeLike
Pingback: T-SQL Tuesday #155 – Write to Read, Not to Run – No Column Name
What a wonderful topic for telling stories… https://sqlrebel.blogspot.com/2022/10/show-me-everything.html
LikeLike
Thanks for hosting, here’s mine: https://nocolumnname.blog/2022/10/11/t-sql-tuesday-155-write-to-read-not-to-run/
LikeLike
Pingback: Generating Code to Run Across All Databases via Dynamic SQL – Curated SQL
Thanks for hosting – the time difference in Wales is getting worse! https://www.nigeldba.com/t-sql-tuesday-155-the-dynamic-code-invitation
LikeLike
Pingback: T-SQL Tuesday #155 –The Dynamic Code Invitation – nigelDBA
Pingback: #tsql2sday: Dynamic SQL You Don’t Have to Write – Kevin Martin
Pingback: #tsql2sday: Dynamic SQL You Don’t Have to Write – Kevin Martin