# Aspire.Hosting.SqlServer

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

## Types

- [SqlServerDatabaseResource](/reference/api/typescript/aspire.hosting.sqlserver/sqlserverdatabaseresource.md) -- `handle` - 7 members
- [SqlServerServerResource](/reference/api/typescript/aspire.hosting.sqlserver/sqlserverserverresource.md) -- `handle` - 20 members

## 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 container resource
- [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 SQL Server data folder
- [withDataVolume](/reference/api/typescript/aspire.hosting.sqlserver/withdatavolume.md) -- `method` -- Adds a named volume for the SQL Server data folder
- [withHostPort](/reference/api/typescript/aspire.hosting.sqlserver/withhostport.md) -- `method` -- Sets the host port for the SQL Server resource
- [withPassword](/reference/api/typescript/aspire.hosting.sqlserver/withpassword.md) -- `method` -- Configures the password for the SQL Server resource
