Eric

Eric

Code guy.

Find text in any table or any stored procedure

Typically I want to find text somewhere in a table or a stored procedure. There are plugins that exist to help you search — but in a pinch you can search the database manually too. Find text referenced in any…

Search for a column name in any table

Most directly, you can run this in SQL Server to confirm that a column exists — but that alone is only somewhat useful. Really what you want to know is both that the column exists and the table it lives…

Drop a table if it exists before trying to create it

This comes in handy if you need to create an idempotent scripts. For example, a script to create your database’s tables (or other entities) might check for their existence before attempting to create them. Note that the above DROP TABLE…

Welcome to SQL Strong

Welcome to SQLStrong, a site dedicated to the study of databases and database technology, emerging technologies like GraphQL, and, of course, SQL. Here’s a story about why I decided to start this blog. My name is Eric. I’ve worked in…