# C1.AdoNet.Salesforce.C1SalesforceCommand.ExecutePrimitiveSqlAsync

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_AdoNet_Salesforce_C1SalesforceCommand_ExecutePrimitiveSqlAsync_" data-uid="C1.AdoNet.Salesforce.C1SalesforceCommand.ExecutePrimitiveSqlAsync*">ExecutePrimitiveSqlAsync Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_AdoNet_Salesforce_C1SalesforceCommand_ExecutePrimitiveSqlAsync_" data-uid="C1.AdoNet.Salesforce.C1SalesforceCommand.ExecutePrimitiveSqlAsync*"></a>
<h4 id="C1_AdoNet_Salesforce_C1SalesforceCommand_ExecutePrimitiveSqlAsync_C1_DataConnector_SelectStatement_System_Threading_CancellationToken_System_Boolean_" data-uid="C1.AdoNet.Salesforce.C1SalesforceCommand.ExecutePrimitiveSqlAsync(C1.DataConnector.SelectStatement,System.Threading.CancellationToken,System.Boolean)">ExecutePrimitiveSqlAsync(SelectStatement, CancellationToken, bool)</h4>
<div class="markdown level1 summary"><p>Execute <code class="paramref">select</code> directly in the Salesforce server.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override Task&lt;SourceTable&gt; ExecutePrimitiveSqlAsync(SelectStatement select, CancellationToken token, bool needFullData)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Function ExecutePrimitiveSqlAsync([select] As SelectStatement, token As CancellationToken, needFullData As Boolean) As Task(Of SourceTable)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="../C1.DataConnector/C1.DataConnector.SelectStatement.html">SelectStatement</a></td>
      <td><span class="parametername">select</span></td>
      <td><p>The <a class="xref" href="../C1.DataConnector/C1.DataConnector.SelectStatement.html">SelectStatement</a> to be executed on the Salesforce server.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></td>
      <td><span class="parametername">token</span></td>
      <td><p>The cancellation token to abort the query execution at any moment.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">needFullData</span></td>
      <td><p>A boolean indication if all the rows from
the referred tables in <code class="paramref">select</code> needs to be retrieved from the Salesforce server.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="../C1.DataConnector/C1.DataConnector.SourceTable.html">SourceTable</a>&gt;</td>
      <td><p>A source table containing the query execution result.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1CommandBase.ExecutePrimitiveSqlAsync.html#C1_DataConnector_AdoNet_C1CommandBase_ExecutePrimitiveSqlAsync_C1_DataConnector_SelectStatement_System_Threading_CancellationToken_System_Boolean_">C1CommandBase.ExecutePrimitiveSqlAsync(SelectStatement, CancellationToken, bool)</a></div>
</div>
