{"id":1585,"date":"2017-12-18T09:20:03","date_gmt":"2017-12-18T09:20:03","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=1585"},"modified":"2024-03-05T12:50:35","modified_gmt":"2024-03-05T11:50:35","slug":"mssql-query-local","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/mssql-query-local\/","title":{"rendered":"MSSQL Query (Local)"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<div class=\"maint-error\">\n  <img decoding=\"async\" src=\"http:\/\/pandorafms.com\/library\/wp-content\/uploads\/2024\/02\/Plugin-out-of-maintenance-alt.png\"><\/p>\n<p><strong>Important Notice:<\/strong> This plugin is no longer actively maintained or updated. We strongly advise you to explore alternative plugins available in our library for the latest features and support.<\/p>\n<\/div>\n<p><\/p>\n<p>This script can monitoring a SqlServer using MSSQL Querys.\u00a0<\/p>\n<p>Example:\u00a0<\/p>\n<pre>\"&lt;PowershellPATH&gt;powershell.exe\" querysql.ps1 -H hostname(optional) -U username(optional) -P password(optional) -Q 'MSSQL Query'\u00a0<\/pre>\n<p>If you run as Administrator the script, and your sql account has permissions too, this is the execution:\u00a0<\/p>\n<pre>\"&lt;PowershellPATH&gt;powershell.exe\" querysql.ps1 -Q 'MSSQL Query'\u00a0<\/pre>\n<h2>Module data<\/h2>\n<pre>module_begin\u00a0\r\nmodule_name SQL Query\u00a0\r\nmodule_type generic_data or generic_data_string\u00a0\r\nmodule_exec \"&lt;PowershellPATH&gt;powershell.exe\" querysql.ps1 -H hostname(optional) -U username(optional) -P password(optional) -Q 'MSSQL Query'\u00a0\r\nmodule_end<\/pre>\n<h2>Files:<\/h2>\n<p><a href=\"\/library\/files_repository\/1378139138.mario_pulido.querysql.ps1\" rel=\"nofollow\">querysql.ps1<\/a>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Important Notice: This plugin is no longer actively maintained or updated. We strongly advise you to explore alternative plugins available in our library for the latest features and support. This script can monitoring a SqlServer using MSSQL Querys.\u00a0 Example:\u00a0 &#8220;&lt;PowershellPATH&gt;powershell.exe&#8221; querysql.ps1 -H hostname(optional) -U username(optional) -P password(optional) -Q &#8216;MSSQL Query&#8217;\u00a0 If you run as Administrator [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"<div class=\"maint-error\">\r\n  <img src=\"http:\/\/pandorafms.com\/library\/wp-content\/uploads\/2024\/02\/Plugin-out-of-maintenance-alt.png\">\r\n  <p><strong>Important Notice:<\/strong> This plugin is no longer actively maintained or updated. We strongly advise you to explore alternative plugins available in our library for the latest features and support.<p>\r\n<\/div>\r\n\r\n<br>\r\n\r\nThis script can monitoring a SqlServer using MSSQL Querys.\u00a0\r\n\r\nExample:\u00a0\r\n<pre>\"<PowershellPATH>powershell.exe\" querysql.ps1 -H hostname(optional) -U username(optional) -P password(optional) -Q 'MSSQL Query'\u00a0<\/pre>\r\n\r\nIf you run as Administrator the script, and your sql account has permissions too, this is the execution:\u00a0\r\n\r\n<pre>\"<PowershellPATH>powershell.exe\" querysql.ps1 -Q 'MSSQL Query'\u00a0<\/pre>\r\n\r\n\r\n\r\n<h2>Module data<\/h2>\r\n<pre>module_begin\u00a0\r\nmodule_name SQL Query\u00a0\r\nmodule_type generic_data or generic_data_string\u00a0\r\nmodule_exec \"<PowershellPATH>powershell.exe\" querysql.ps1 -H hostname(optional) -U username(optional) -P password(optional) -Q 'MSSQL Query'\u00a0\r\nmodule_end<\/pre>\r\n<h2>Files:<\/h2>\r\n<a href=\"\/library\/files_repository\/1378139138.mario_pulido.querysql.ps1\" rel=\"nofollow\">querysql.ps1<\/a>","_et_gb_content_width":"","footnotes":""},"categories":[24],"tags":[199,559],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1585"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=1585"}],"version-history":[{"count":2,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1585\/revisions"}],"predecessor-version":[{"id":8414,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1585\/revisions\/8414"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=1585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=1585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=1585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}