<h1>POST api/reportserver/v3/data/sql/preview</h1>
<div>
<p>
Returns the preview data for the specified data connection.
</p>

<h2>Request Information</h2>

<h3>URI Parameters</h3>
<p>None.</p>

<h3>Body Parameters</h3>

<p>Data preview with parameters model.</p>

<a href="/dotnet-docs/rest-api/v3/previewdatainfowithparameters">PreviewDataInfoWithParameters</a>

<table class="help-page-table">
<thead>
<tr><th>Name</th><th>Description</th><th>Type</th><th>Additional information</th></tr>
</thead>
<tbody>
<tr>
<td class="parameter-name">PreviewDataInfo</td>
<td class="parameter-documentation">
<p>No documentation available.</p>
</td>
<td class="parameter-type">
<a href="/dotnet-docs/rest-api/v3/previewdatainfo">PreviewDataInfo</a>

</td>
<td class="parameter-annotations">
<p>Required</p>
</td>
</tr>
<tr>
<td class="parameter-name">Parameters</td>
<td class="parameter-documentation">
<p>No documentation available.</p>
</td>
<td class="parameter-type">
Collection of <a href="/dotnet-docs/rest-api/v3/queryinfoparameter">QueryInfoParameter</a>

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
</tbody>
</table>
<h3>Request body formats</h3>
<div>
<h4 class="sample-header">application/json, text/json, application/*+json</h4>
<div class="sample-content">

```json
{
  "PreviewDataInfo": {
    "MaxRows": 517,
    "SelectCommandType": "Text",
    "SelectCommand": "SELECT * FROM Orders",
    "CommandTimeout": 519,
    "Name": "Northwind SQL Connection",
    "Provider": "System.Data.SqlClient",
    "ConnectionString": "Data Source=.;Initial Catalog=Northwind;Integrated Security=True"
  },
  "Parameters": [
    {
      "Name": "Region",
      "Value": "North America",
      "DbType": "String"
    },
    {
      "Name": "CustomerId",
      "Value": 12345,
      "DbType": "Int32"
    }
  ]
}
```

</div>
</div>

<h2>Response Information</h2>

<h3>Resource Description</h3>

<p></p>

<p>None.</p>

</div>
