# Insert Statement Generation

Transforms can automatically generate an MSSQL insert statement from an input file. This is handy when you can't directly load data in, or only have a query window to work from. You can find the under the "PREPARE" tab -> Utils menu.

<figure><img src="/files/yb56obySj58TaXwdZObG" alt=""><figcaption><p>Insert Generator</p></figcaption></figure>

### Utils Menu

To generate an insert statement, head over to the Utils section. You'll find the file upload, and generation methods there.&#x20;

The NVarchar option will generate all strings as `N''` -  Enabling NVarchar type inserts.&#x20;

Once a file has been supplied, simply click "Get Script" to download the `.sql` file.&#x20;

{% hint style="warning" %}
Don't forget to change the insert table name, as it's assumed by the filename (not known at generation time!)
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.perigee.software/transforms/utilities/insert-statement-generation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
