# getDatabaseCreationScript

- Module: [Aspire.Hosting.Azure.Kusto](/reference/api/typescript/aspire.hosting.azure.kusto.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Gets the database creation script from the resource annotation if it exists. If not, creates the default database creation script.

## Definition

```typescript
interface AzureKustoReadWriteDatabaseResource {
  // ... omitted for brevity
  getDatabaseCreationScript(): string
}
```

## Returns

`string`

## Applies to

- [AzureKustoReadWriteDatabaseResource](/reference/api/typescript/aspire.hosting.azure.kusto/azurekustoreadwritedatabaseresource.md)
