Skip to content

Commit b0f934e

Browse files
potatoqualiteegithub-actions[bot]
authored andcommitted
refreshing docs pages
1 parent 952ac72 commit b0f934e

File tree

5 files changed

+1474
-702
lines changed

5 files changed

+1474
-702
lines changed

Invoke-DbaQuery.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ <h2 id="syntax">Syntax</h2>
506506
[-InputObject &lt;Database[]&gt;]
507507
[-ReadOnly]
508508
[-NoExec]
509+
[-QuotedIdentifier]
509510
[-AppendConnectionString &lt;String&gt;]
510511
[-EnableException]
511512
[&lt;CommonParameters&gt;]
@@ -524,6 +525,7 @@ <h2 id="syntax">Syntax</h2>
524525
[-InputObject &lt;Database[]&gt;]
525526
[-ReadOnly]
526527
[-NoExec]
528+
[-QuotedIdentifier]
527529
[-AppendConnectionString &lt;String&gt;]
528530
[-EnableException]
529531
[&lt;CommonParameters&gt;]
@@ -542,6 +544,7 @@ <h2 id="syntax">Syntax</h2>
542544
[-InputObject &lt;Database[]&gt;]
543545
[-ReadOnly]
544546
[-NoExec]
547+
[-QuotedIdentifier]
545548
[-AppendConnectionString &lt;String&gt;]
546549
[-EnableException]
547550
[&lt;CommonParameters&gt;]
@@ -628,6 +631,10 @@ <h5 id="example-13">Example: 13</h5>
628631
</code></pre>
629632
<p>Leverages your own parameters, giving you full power, mimicking Connect-DbaInstance's <code>-MultiSubnetFailover -ConnectTimeout 60</code>, to adhere to official guidelines to target FCI or AG listeners.<br>
630633
See <a href="https://learn.microsoft.com/en-us/dotnet/framework/data/adonet/sql/sqlclient-support-for-high-availability-disaster-recovery#connecting-with-multisubnetfailover">https://learn.microsoft.com/en-us/dotnet/framework/data/adonet/sql/sqlclient-support-for-high-availability-disaster-recovery#connecting-with-multisubnetfailover</a><br></p>
634+
<h5 id="example-14">Example: 14</h5>
635+
<pre><code>PS C:\&gt; Invoke-DbaQuery -SqlInstance server1 -Database tempdb -Query &quot;INSERT INTO dbo.TableWithFilteredIndex (Id, Name) VALUES (1, 'Test')&quot; -QuotedIdentifier
636+
</code></pre>
637+
<p>Executes an INSERT statement with QUOTED_IDENTIFIER set to ON. This is required when modifying tables that have filtered indexes, as SQL Server requires this setting for such operations.<br></p>
631638
<h3 id="required-parameters">Required Parameters</h3>
632639
<h5 id="query">-Query</h5>
633640
<p>Contains the T-SQL commands to execute against the target instances. Supports T-SQL statements, XQuery, and SQLCMD commands with GO batch separators.<br />
@@ -1073,6 +1080,36 @@ <h5 id="noexec">-NoExec</h5>
10731080
</tr>
10741081
</tbody>
10751082
</table>
1083+
<h5 id="quotedidentifier">-QuotedIdentifier</h5>
1084+
<p>Prepends SET QUOTED_IDENTIFIER ON to each batch before execution. This is required for INSERT, UPDATE, and DELETE operations on tables with filtered indexes, indexed views, computed columns, or XML<br />
1085+
indexes.<br />
1086+
Use this when modifying tables with filtered indexes and experiencing silent failures, as SMO connections may have QUOTED_IDENTIFIER set to OFF depending on server/database configuration.<br></p>
1087+
<table>
1088+
<thead>
1089+
<tr>
1090+
<th></th>
1091+
<th></th>
1092+
</tr>
1093+
</thead>
1094+
<tbody>
1095+
<tr>
1096+
<td>Alias</td>
1097+
<td></td>
1098+
</tr>
1099+
<tr>
1100+
<td>Required</td>
1101+
<td>False</td>
1102+
</tr>
1103+
<tr>
1104+
<td>Pipeline</td>
1105+
<td>false</td>
1106+
</tr>
1107+
<tr>
1108+
<td>Default Value</td>
1109+
<td>False</td>
1110+
</tr>
1111+
</tbody>
1112+
</table>
10761113
<h5 id="appendconnectionstring">-AppendConnectionString</h5>
10771114
<p>Adds custom connection string parameters for specialized connection requirements like MultiSubnetFailover, encryption settings, or timeout values.<br />
10781115
Use this for Availability Group connections, Always Encrypted scenarios, or when you need connection properties not available through standard parameters. Authentication must still be handled via<br />

0 commit comments

Comments
 (0)