SQL Script to search stored procedures containing a given textBy Vivek Johari / January 20, 2015 Sometimes we need to find out how many stored procedures contains a given text. Below SQL query can be used to find out the list of all the stored procedures which contains a particular given text as input. SELECT OBJECT_NAME(object_id), OBJECT_DEFINITION(object_id) FROM sys.procedures WHERE OBJECT_DEFINITION(object_id) LIKE ‘%Given text%’ Share this: Click to email a link to a friend (Opens in new window) Email Click to print (Opens in new window) Print Click to share on Threads (Opens in new window) Threads TweetPocket Click to share on Telegram (Opens in new window) Telegram Click to share on WhatsApp (Opens in new window) WhatsApp Share on TumblrMore Click to share on Reddit (Opens in new window) Reddit Like this:Like Loading... Related Discover more from Technology with Vivek Johari Subscribe to get the latest posts sent to your email. Type your email… Subscribe
Difference between Subquery, Nested Subquery and Correlated Subquery 59 Comments / Interview Questions, Most Imp SQL Concepts, SQL Queries Sub-queries, SQL Server / By Vivek Johari Query Query can be defined as a way to inquire the data from the database. It is used to extract […]
Difference between Primary key and Unique key 7 Comments / Imp SQL Difference, Interview Questions, SQL Primary Key Constraint, SQL Server / By Vivek Johari var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”); document.write(unescape(“%3Cscript src='” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”)); try { var […]
Different ways to create a table and insert data into the table 2 Comments / SQL Basic Concepts, SQL Server / By Vivek Johari Introduction Tables can be defined as the structure which contains the data in the database. This article discuss about the […]
How to make database offline or online 2 Comments / SQL Basic Concepts, SQL Server / By Vivek Johari Database is made offline to move its physical files. There can be many ways to make a database offline. But […]