Skip to content

Commit fc61bb5

Browse files
authored
Copilot in SSMA for Oracle (#34116)
1 parent 339b941 commit fc61bb5

File tree

5 files changed

+93
-1
lines changed

5 files changed

+93
-1
lines changed
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
title: What Is Microsoft Copilot in SSMA for Oracle?
3+
description: Learn how Copilot in SQL Server Migration Assistant (SSMA) provides intelligent, AI-powered assistance for complex or unsupported objects.
4+
author: nilabjaball
5+
ms.author: niball
6+
ms.reviewer: randolphwest
7+
ms.date: 05/15/2025
8+
ms.service: sql
9+
ms.subservice: ssma
10+
ms.topic: overview
11+
ms.collection:
12+
- ce-skilling-ai-copilot
13+
---
14+
15+
# What is Microsoft Copilot in SSMA for Oracle (Preview)?
16+
17+
Copilot in SQL Server Migration Assistant (SSMA) enhances the code conversion process from Oracle to SQL by providing intelligent, AI-powered assistance for complex or unsupported objects. When the SSMA rule engine encounters conversion challenges, such as syntax differences, proprietary Oracle features, or unsupported data types, Copilot steps in to analyze the issue, explain the root cause, and generate alternative SQL-compatible code.
18+
19+
By integrating with Azure OpenAI, Copilot in SSMA for Oracle (Preview) allows you to review, refine, and validate the suggested code directly within the SSMA interface, streamlining the migration process and reducing manual effort.
20+
21+
## Prerequisites
22+
23+
To use Copilot in SSMA for Oracle (Preview) for code conversion, ensure you have the following Azure OpenAI resource details:
24+
25+
- Azure OpenAI Endpoint URL
26+
- Azure OpenAI Deployment
27+
- Model Name
28+
- Azure OpenAI Key
29+
30+
If you don't have these details, follow the steps in the [How to create Azure OpenAI resource](#modify-azure-openai-settings) section.
31+
32+
## Steps to run Copilot in SSMA for Oracle (Preview)
33+
34+
Once the code conversion is done, the target objects that the SSMA rule engine couldn't convert, display warnings or errors. For those objects, you can launch **Fix with Copilot**.
35+
36+
If the OpenAI resource isn't registered, you need to complete the following fields:
37+
38+
- Azure OpenAI Endpoint URL
39+
- Azure OpenAI Deployment
40+
- Model Name
41+
- Azure OpenAI Key
42+
43+
:::image type="content" source="media/copilot-in-ssma-overview/validate-endpoint.png" alt-text="Screenshot of Validate endpoint dialog.":::
44+
45+
Once the validation is successful, you can view the converted code. It takes a few minutes to generate the converted code. After the code is generated, you can review the suggested changes.
46+
47+
## Code conversion interface
48+
49+
The Code Conversion window has three sections:
50+
51+
| Section | Description |
52+
| --- | --- |
53+
| **Errors to fix** | This section shows the possible issues identified or errors to fix that SSMA rule engine couldn't convert or failed to parse the PL/SQL statement. |
54+
| **Explanation** | Provides root cause of conversion issues, describing the logic behind its suggestions, and offering clear, contextual insights to help you understand and validate the generated Transact-SQL code. |
55+
| **Code review window** | Allows you to view side-by-side differences between SSMA-generated and Copilot-converted code. It highlights changes, enabling you to evaluate improvements, understand modifications, and make informed decisions before accepting suggestions. |
56+
57+
:::image type="content" source="media/copilot-in-ssma-overview/compare-code.png" alt-text="Screenshot of code comparison dialog." lightbox="media/copilot-in-ssma-overview/compare-code.png":::
58+
59+
You can retry or send additional information in the prompt if they aren't satisfied with the conversion. If the converted code is suitable, you can accept the suggestions.
60+
61+
## Manage accepted changes in the IDE
62+
63+
Once you review and accept the Copilot-generated code, you can find the accepted changes in the SSMA IDE. Follow these steps to save and synchronize the changes with your database:
64+
65+
1. Navigate to the SSMA IDE where the accepted changes are displayed.
66+
1. Save the changes to ensure they're stored locally.
67+
1. Use the synchronization feature to replicate the changes to your database.
68+
69+
## Modify Azure OpenAI settings
70+
71+
If you need to change the Azure OpenAI details, go to **Tools** > **Project Settings** > **Copilot** in the SSMA menu. Update the **Azure OpenAI Endpoint**, **Azure OpenAI Deployment**, **Model Name**, and **Azure OpenAI Key** as required.
72+
73+
## Review and validation
74+
75+
As this code is generated by AI, it's crucial to review, validate, and test the changes before accepting or saving them. Ensure that the code meets your requirements, and functions correctly in your environment.
76+
77+
## Limitations
78+
79+
Copilot-generated code for tables and user-defined data types can't be saved directly in SSMA. In such cases, SSMA provides a download option to save the Copilot-generated code locally.
80+
81+
## Related content
82+
83+
- [What's new in SSMA for Oracle (OracleToSQL)](what-s-new-in-ssma-for-oracle-oracletosql.md)
84+
- [Microsoft Copilot in Azure with Azure SQL Database](/azure/azure-sql/copilot/copilot-azure-sql-overview)
240 KB
Loading
56.4 KB
Loading

docs/ssma/oracle/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
- name: Overview
22
href: sql-server-migration-assistant-for-oracle-oracletosql.md
3+
- name: Copilot in SSMA for Oracle (Preview)
4+
href: copilot-in-ssma-overview.md
35
- name: What's new
46
items:
57
- name: What's new in SSMA

docs/ssma/oracle/what-s-new-in-ssma-for-oracle-oracletosql.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Find out about changes to SQL Server Migration Assistant (SSMA) for
44
author: cpichuka
55
ms.author: cpichuka
66
ms.reviewer: randolphwest
7-
ms.date: 04/01/2025
7+
ms.date: 05/15/2025
88
ms.service: sql
99
ms.subservice: ssma
1010
ms.topic: whats-new
@@ -19,6 +19,12 @@ This article lists SQL Server Migration Assistant (SSMA) for Oracle changes in e
1919

2020
[!INCLUDE [entra-id](../../includes/entra-id-hard-coded.md)]
2121

22+
## SSMA v10.2
23+
24+
The v10.2 release of SSMA for Oracle contains the following changes:
25+
26+
- AI-assisted code code conversion with Microsoft Copilot in SSMA for Oracle (Preview)
27+
2228
## SSMA v10.1
2329

2430
The v10.1 release of SSMA for Oracle contains the following changes:

0 commit comments

Comments
 (0)