# Code Insights

## Get Insight reports

BlackDiamond Studio offers its users a complete object inventory across SnowConvert supported SQL languages. The reporting features allow you to:

* Look at the relationships between various objects and their dependencies.
* Estimate the cost of code changes before deploying
* Analyze the usage of elements such as views, tables, and stored procedures.
* Analyze your source code even before performing a migration to identify current relationships and dependencies.&#x20;

You can pull reports of your code using the Snowflake Scanner, or generate an inventory report of the source code using any of the following applications:

* Oracle Scanner
* SQL Server Scanner
* Teradata Scanner
* Scala Scanner

#### In order to generate Insight reports from BlackDiamond Studio, follow the next steps:

1\.     Select the source code for the analysis (Folder).

![](/files/r2fkydi2NSH5ByU9zv4F)

2\.     Right-click the folder and select **BlackDiamond: Run Code Analyzer**

![](/files/TO8jduxlXjhcm0m6dht8)

3\.     Click the storage option that fits better your needs

![](/files/tGzxPoCz9cTXKbFy1sdj)

4\.     You will get a progress bar indicating that the scanning is happening, and BlackDiamond Studio will notify you when the analysis is complete.&#x20;

![Notification of Scanner started](/files/Mv9KQT5yiRD2HrMyMiJb)

![Notification of Scanner in progress](/files/OcBcMmYhNEDz1fTcgS6n)

![Scanner completed](/files/Mqou2EplOBrUldLIktRO)

5\.     Refer to the ScannerResults folder to see the generated reports (the folder will appear in the parent folder in which the analysis was run. Ex: Source or Target.)

![](/files/jJ8EGW8ig0zyyRL9RlXl)

6\.     To open a report, just click the report and BlackDiamond Studio will open it using an integrated CSV viewer.&#x20;

7\.     Alternatively, you can open the reports in the [Report Explorer](/blackdiamond-studio-or-mobilize.net/blackdiamond-studio-documentation/code-insights/reports-explorer.md) section in BlackDiamond Studio.


---

# 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.gapvelocity.ai/blackdiamond-studio-or-mobilize.net/blackdiamond-studio-documentation/code-insights.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.
