Skip to content

Commit 1d7030f

Browse files
committed
Merge branch 'msignite-25' of https://github.com/github-samples/pets-workshop into msignite-25
2 parents 43a00af + 765353f commit 1d7030f

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
File renamed without changes.

content/ignite/6a-infra-as-code.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Working with Infrastructure as Code (IaC) using GitHub Copilot
2+
3+
GitHub Copilot for the MSSQL extension brings AI-powered assistance directly into your SQL development workflow within Visual Studio Code. This integration enables developers to work more efficiently with SQL Server, Azure SQL, and Microsoft Fabric databases by:
4+
5+
- **Writing and optimizing queries** - Generate SQL queries from natural language descriptions and receive AI-recommended improvements for performance
6+
- **Exploring and designing schemas** - Understand, design, and evolve database schemas using intelligent, code-first guidance with contextual suggestions for relationships and constraints
7+
- **Understanding existing code** - Get natural language explanations of stored procedures, views, and functions to help you understand business logic quickly
8+
- **Generating test data** - Create realistic, schema-aware sample data to support testing and development environments
9+
- **Analyzing security** - Receive recommendations to avoid SQL injection, excessive permissions, and other security vulnerabilities
10+
- **Accelerating development** - Scaffold backend components and data access layers based on your database context
11+
12+
This powerful combination allows you to focus on solving problems rather than memorizing SQL syntax, making database development more intuitive and productive.
13+
14+
## Scenario
15+
16+
Now that your application supports multiple database systems including SQL Server, you want to explore how GitHub Copilot can help you interact with your SQL Server database directly from VS Code. You'll use the GitHub Copilot for MSSQL extension to generate queries and explore your data using natural language.
17+
18+
## Prerequisites
19+
20+
Good news! We've already set up everything you need for this exercise:
21+
22+
- SQL Server Express is installed and running locally
23+
- With pets database populated with data
24+
- The **GitHub Copilot for MSSQL** extension is installed in VS Code
25+
- A SQL Server connection has been pre-registered in your environment
26+
27+
You're ready to connect and start querying right away!
28+
29+
## Understanding GitHub Copilot for MSSQL
30+
31+
The GitHub Copilot for MSSQL extension brings AI-powered assistance to your database work. It can:
32+
33+
- Generate SQL queries from natural language descriptions
34+
- Explain existing queries in plain English
35+
- Suggest query optimizations and best practices
36+
- Help explore database schemas and relationships
37+
- Convert natural language questions into executable SQL
38+
39+
This integration makes working with databases more intuitive, especially when you're exploring unfamiliar schemas or need to write complex queries

0 commit comments

Comments
 (0)