# Aspire.Hosting.SqlServer

- Module: `Aspire.Hosting.SqlServer`
- Version: `13.4.0`
- Source: [GitHub](https://github.com/microsoft/aspire)
- Functions: `7`
- Types: `2`

## Types

- [SqlServerDatabaseResource](/reference/api/typescript/aspire.hosting.sqlserver/sqlserverdatabaseresource.md) -- `handle` - 6 members -- A resource that represents a SQL Server database that is a child of a SQL Server container resource.
- [SqlServerServerResource](/reference/api/typescript/aspire.hosting.sqlserver/sqlserverserverresource.md) -- `handle` - 15 members -- A resource that represents a SQL Server container.

## Functions

- [addDatabase](/reference/api/typescript/aspire.hosting.sqlserver/adddatabase.md) -- `method` -- Adds a SQL Server database resource
- [addSqlServer](/reference/api/typescript/aspire.hosting.sqlserver/addsqlserver.md) -- `method` -- Adds a SQL Server resource to the application model. A container is used for local development.
- [withCreationScript](/reference/api/typescript/aspire.hosting.sqlserver/withcreationscript.md) -- `method` -- Defines the SQL script used to create the database.
- [withDataBindMount](/reference/api/typescript/aspire.hosting.sqlserver/withdatabindmount.md) -- `method` -- Adds a bind mount for the data folder to a SQL Server resource.
- [withDataVolume](/reference/api/typescript/aspire.hosting.sqlserver/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to a SQL Server resource.
- [withHostPort](/reference/api/typescript/aspire.hosting.sqlserver/withhostport.md) -- `method` -- Configures the host port that the SqlServer resource is exposed on instead of using randomly assigned port.
- [withPassword](/reference/api/typescript/aspire.hosting.sqlserver/withpassword.md) -- `method` -- Configures the password that the SqlServer resource is used.
