Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command - Find-DBATrigger and Find-DBAView #1498

Closed
1 task
SQLDBAWithABeard opened this issue Jun 27, 2017 · 4 comments
Closed
1 task

New command - Find-DBATrigger and Find-DBAView #1498

SQLDBAWithABeard opened this issue Jun 27, 2017 · 4 comments

Comments

@SQLDBAWithABeard
Copy link
Contributor

Is this:

Just place "x" to indicate selection (e.g. "[x]")

  • [ x] feature
  • bug:

Request from James Anderson @databaseavenger

Please can you do the same magic for views and triggers as find-dbastoredprocedure please

@potatoqualitee
Copy link
Member

ouuuu i dig. @ClaudioESSilva or @Staggerlee011

@SQLDBAWithABeard
Copy link
Contributor Author

So this came about because of a conversation with James. He needed to find the Stored Procedures, Triggers and Views that referenced a specific column in a specific table in a specific way in a database.

He had to script out the entire database and use RegEx to do this. He asked if dbatools would do so and I said yes Find-DbaStoredProcedure could have done the Stored Procedures but not the triggers or the views.

Therefore the feature request is for Find- commands for Triggers and Views that will enable user to search them both using wildcard and regex in the same way as Find-DbaStoredProcedure

@ClaudioESSilva
Copy link
Collaborator

ClaudioESSilva commented Jun 29, 2017

Done: #1521 😄

So for triggers I took into account the 3 levels (Server, Database and Object)
image

@potatoqualitee
Copy link
Member

rock on, yall!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants