# SqlServerReplCommand

- 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/artifacts/obj/Aspire.Hosting.SqlServer/Release/net10.0/System.Text.RegularExpressions.Generator/System.Text.RegularExpressions.Generator.RegexGenerator/SqlServerReplCommand.cs)

Provides well-known sqlcmd executable paths for the SQL Server REPL.

## Definition

```csharp
namespace Aspire.Hosting;

public static class SqlServerReplCommand
{
    // ...
}
```

## Remarks

Use these values with [SqlServerReplOptions.Command](/reference/api/csharp/aspire.hosting.sqlserver/sqlserverreploptions/properties.md#command) to select the client installed in the SQL Server container, or specify a custom executable path.

## Fields

- [Version17](/reference/api/csharp/aspire.hosting.sqlserver/sqlserverreplcommand/fields.md#version17) : `string` `static` -- The sqlcmd executable path for SQL Server client tools version 17.
- [Version18](/reference/api/csharp/aspire.hosting.sqlserver/sqlserverreplcommand/fields.md#version18) : `string` `static` -- The sqlcmd executable path for SQL Server client tools version 18.
