adhoustonj
Member
- Local time
- Today, 18:13
- Joined
- Sep 23, 2022
- Messages
- 192
Hello AWF,
Does anyone have any experience or code with searching all database objects for a sql string? I've started looking at how to approach this over the last few days and haven't come up with much.. Other than the export to text and then search through text files.
Basically - I've migrated some back end databases to SQL Server, and I'm noticing one query that is an outlier when viewing the top resource consuming queries on the server, but I can not find the query in my front end app! So I've scratched my head a few times, and rather than go one by one searching each object, I was hoping to be able to search all via vba.
Does anyone have any experience or code with searching all database objects for a sql string? I've started looking at how to approach this over the last few days and haven't come up with much.. Other than the export to text and then search through text files.
Basically - I've migrated some back end databases to SQL Server, and I'm noticing one query that is an outlier when viewing the top resource consuming queries on the server, but I can not find the query in my front end app! So I've scratched my head a few times, and rather than go one by one searching each object, I was hoping to be able to search all via vba.