> For the complete documentation index, see [llms.txt](https://docs.gapvelocity.ai/blackdiamond-studio-or-mobilize.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gapvelocity.ai/blackdiamond-studio-or-mobilize.net/blackdiamond-studio-documentation/code-insights.md).

# 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).

![](https://3318121499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FltqydcnGV3BWCCC3QkYO%2Fuploads%2FulJ1qRTVQGvPYleMOpow%2FFoldersSelection.png?alt=media\&token=15ab105b-093f-4d3e-a9ff-b30ae5a49c51)

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

![](https://3318121499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FltqydcnGV3BWCCC3QkYO%2Fuploads%2FSAlBannZx9VI6Q5U3Trq%2FRunCodeAnalizer.png?alt=media\&token=9574e1e1-0c24-4bc0-8bb8-07d63f9008f8)

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

![](https://3318121499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FltqydcnGV3BWCCC3QkYO%2Fuploads%2FbSbBvYHcCv08pxYhONSt%2Fstorage.jpg?alt=media\&token=f19b9fe7-3932-431e-86a7-750df76386f6)

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](https://3318121499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FltqydcnGV3BWCCC3QkYO%2Fuploads%2FZMN4ldxlQBnAnvH0u5Ca%2FscannerStarted.png?alt=media\&token=14add9b5-3685-48d9-84d5-e2f34aa81b89)

![Notification of Scanner in progress](https://3318121499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FltqydcnGV3BWCCC3QkYO%2Fuploads%2Fs3b6TGjXpa7ZIDRLM1zm%2FScanningInProgress.png?alt=media\&token=9995e945-760b-4a68-8c9c-bd64549ce8fb)

![Scanner completed](https://3318121499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FltqydcnGV3BWCCC3QkYO%2Fuploads%2FxgFrbmm4vE4ik3qIawGA%2FScannerCompleted.png?alt=media\&token=570a4977-8afd-4d57-8a8d-3a38bdce27d9)

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.)

![](https://3318121499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FltqydcnGV3BWCCC3QkYO%2Fuploads%2FjWwPDRwyualh8uuXkiu2%2FScannerResults.png?alt=media\&token=6c670afb-cfbb-4f13-a873-f90f0833a8f9)

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.
