# SqlServerReplOptions

- Kind: `class`
- Package: [Aspire.Hosting.SqlServer](/reference/api/csharp/aspire.hosting.sqlserver.md)
- Version: `17.0.0`
- Namespace: `Aspire.Hosting`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.SqlServer/SqlServerReplOptions.cs)

Options for configuring the SQL Server REPL.

## Definition

```csharp
namespace Aspire.Hosting;

public sealed class SqlServerReplOptions
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.SqlServer/SqlServerReplOptions`

## Remarks

The selected sqlcmd client must already be installed in the SQL Server container. These options do not install a client or change the container image.

## Constructors

- [SqlServerReplOptions](/reference/api/csharp/aspire.hosting.sqlserver/sqlserverreploptions/constructors.md#constructor)

## Properties

- [Command](/reference/api/csharp/aspire.hosting.sqlserver/sqlserverreploptions/properties.md#command) : `string` `get; set` `ats export` -- Gets or sets the sqlcmd executable path inside the SQL Server container. Defaults to [SqlServerReplCommand.Version18](/reference/api/csharp/aspire.hosting.sqlserver/sqlserverreplcommand/fields.md#version18), matching the integration's default SQL Server image.

## Examples

Select the legacy sqlcmd client when using an older SQL Server image:

```csharp
builder.AddSqlServer("sql")
    .WithRepl(options => options.Command = SqlServerReplCommand.Version17);
```
