-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
Dynamic SQL Query for the things that arent SMO #885
Comments
@ClaudioESSilva @shaneis any ideas here ? |
Yeah, that works for me. Will we have to check for the existence of properties in the Not an issue either way, I suppose 🤷 |
I think that will work |
Yes maybe when we convert into object we validate that e have the properties? Or is that over kill/too much/ not necessary? |
As far as I know, in case of any kind of error on the sql side (syntax, not existing object, etc) the whole query will fail so we won't have a recordset. Maybe checking if we have 1 record is enough. Then we can go down the road. |
that doesnt sound so good. Unless the reason that the query fails is that hte instance is not contactable |
Agree. But, assuming that we are using the T-SQL queries that dbatools does, that should cover us from things like 'this dmv only appeared on SQL XXXX' and therefore return errors. |
Oh yeah, I was more thinking do we want to be very defensive and go "yes, I know we're in this code block but we should double-check if the returned object has the MemoryDump property" Either way, I think Claudio has the best option |
How can we make one SQL query to gather information that we are not getting from SMO when the information that we need is dynamic dependant on the tags chosen (checks being run)?
Think memory dumps
The text was updated successfully, but these errors were encountered: