microsoft / microsoft/vscode-mssql

[Task]: Add support to exclude non‑schema .sql scripts from build

Open
#21,031 0 comments 0 reactions 1 assignee Claimed by @ssreerama View on GitHub
Area - SQL Project Enhancement User-filed
Dominant language
TypeScript
Stars
1.9k
Forks
610
Avg merge
2d 3h
Merged PRs (30d)
97

Description

### Feature Description

Provide an option to automatically exclude files from the build during creation.

### Problem and Motivation

Today, standalone T‑SQL statement .sql files are treated as part of the build unless they are correctly referenced through pre‑ or post‑deployment scripts. This causes:

- Unexpected build errors when a script is accidentally included
- Confusion for users adding ad‑hoc, debugging, or operational scripts
- Extra manual steps to mark or reference files correctly

### Related Area

- [ ] Connection dialog (SQL Server | Azure browse/Fabric browse)
- [ ] Query editor
- [ ] Query results panel
- [ ] Object Explorer
- [ ] GitHub Copilot integration
- [ ] Preview/Edit data
- [ ] Table Designer
- [ ] Schema Designer
- [ ] Schema Compare
- [ ] Local SQL Server Container provisioning
- [ ] SQL database in Fabric provisioning
- [ ] DACPAC/BACPAC export/import
- [x] SQL Database projects
- [ ] Query Plan Visualizer
- [ ] Other (please describe below)

### If you selected "Other", please describe the area

_No response_

### Confirmation

- [x] I have searched existing feature requests and couldn't find a match
- [x] I want to help implement this feature

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.