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

#293 Support for @OutputServerName in sp_Blitz #391

Merged
merged 4 commits into from
Aug 6, 2016

Conversation

hariscodes
Copy link
Contributor

@hariscodes hariscodes commented Jul 20, 2016

Adding support for outputting results of sp_Blitz to table on Linked server along with some error checking for @OutputDatabaseName.

I have tested on all supported instances of SQL Server except 2014 and 2016. Help with testing would be appreciated.

Haris Khan added 4 commits July 19, 2016 15:24
QueryPlan is dumped as NVARCHAR
Removed my code from the global temp tables output block. Can only be
done locally for now.
Added error checking for people trying to output to a Global Temp Table
(##) on a linked server. NO. BAD.
Some cleanup and renaming things to be more clear. I couldn't get rid of
the output from the linked server DB check without dumping the results
to a temp table and reading them from there. It's only a single cell
with a 1, but I felt kinda dirty doing it. I tried everything though;
dynamic linked server queries don't play nice with local variables or
OUTPUT.
@BrentOzar
Copy link
Member

Works beautifully! Nice job.

@BrentOzar BrentOzar added this to the 2016-08 milestone Aug 6, 2016
@BrentOzar BrentOzar merged commit 78a72b2 into BrentOzarULTD:dev Aug 6, 2016
@hariscodes hariscodes deleted the feature_293/Haris branch August 8, 2016 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants