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
SP_BlitzLock output to table and excel(csv) #2225
Comments
Seems like it makes sense! I'd just go for the same parameters as the other procs - @OutputDatabaseName, @OutputSchemaName, and @OutputTableName. (May need a couple of those last one.) Go for it! That sounds good. |
@DanielSQLDBA are you planning on coding this this month? If not, I'll go ahead and close the issue, and you can leave a comment back in here whenever you're ready to start work on it. |
@BrentOzar got the code working for output to table sorry for not getting back to you should findings also be included if so should they be in a seperate table ? |
No problem! Sure, if you want to include them, they should be in a separate table. |
hey @BrentOzar have got the code to work findings table is defined and output is there. I have commited the code to my fork next is how to merge with dev branch first stab at github so any help would be appreciated |
I got this There isn’t anything to compare. Have tried and followed the guide you sent cloned it down to a seperate branch changed the code pushed googled myself crazy do you have any pointers ? |
OK, no problem, I've looked at the code and I can do a pull request from here. Two small changes: Check the other proc's @output mechanisms - we need columns for ID, ServerName, and CheckDate in each table because a lot of folks schedule this stuff to run every 15 minutes, and then centralize the data in one table. Then on a related note, it needs to be able to run repeatedly w/o errors. I tried calling it with this twice: sp_BlitzLock @OutputDatabaseName = 'DBAtools', @OutputSchemaName = 'dbo', @OutputTableName = 'BlitzLock' The first time it worked, but then the second time I got an error: Results 1 Jan 20 2020 3:41:22:510PM |
@BrentOzar thanks for the feedback and helping a git newbie, fixed the bugs and added servername just pushed up the code to github. |
Awesome, great job! I really appreciate you working with me on this. I've merged the changes into the dev branch, and they'll be in the January release, and I'll credit you in the release notes. Thanks! |
If you do not wish to run extended events and filter out the data from there, outputting the data from BlitzLock would be nice to have to a table so that you may run it from a agentjob.
Describe the solution you'd like
first iteration I would like to have the abality to dump out to a table with the information sp_blitzLock. Moving forward I would like to be able to give the users ability to filter on specific information.
The data is situated in several temptables the solution will collect these and dump to a table chosen by the user, it should check if the table is valid and existing.
Describe alternatives you've considered
for a customer project we did, we set up ExtendedEvents but we would needed a simplier solution to be able to collect data in a multi tenant environment.
Are you ready to build the code for the feature?
I am able to code the feature I am going to pull down the code and start if the issue gets approved I can fork the project and commit my code to fork.
The text was updated successfully, but these errors were encountered: