# getDatabaseCreationScript

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

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)
