# AzureKustoReadWriteDatabaseResource.getDatabaseCreationScript

- Module: [Aspire.Hosting.Azure.Kusto](/reference/api/typescript/aspire.hosting.azure.kusto.md)
- Defined on: [AzureKustoReadWriteDatabaseResource](/reference/api/typescript/aspire.hosting.azure.kusto/azurekustoreadwritedatabaseresource.md)
- Version: `13.3.0-preview.1.26254.5`
- Kind: `method`

Gets the KQL script used to create the database.

## Definition

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

## Signature

```typescript
getDatabaseCreationScript(): string
```

## Returns

`string`

## Defined on

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