You create a project in SQL Server Management Studio by installing the modern SSMS (version 21 or newer), opening the File menu, choosing New, then Project, and picking a template such as SQL Server Database Project or SQL Server Script Project. The key condition is that classic SSMS 18.x and earlier have no project system at all—projects arrived with the Visual Studio Shell–based SSMS 21, so the menu option simply won't exist on older installs. Everything below assumes you're on SSMS 21 or later and that the SQL Server Database Project workload is available in your installation. If you only need ad-hoc queries, a script project is lighter; if you want schema versioning and deployment, the database project is the right template.
What a "project" means in SSMS versus Visual Studio
Before clicking anything, it helps to know what you're creating, because the word "project" means different things depending on which Microsoft tool you're in.
In SSMS 21+, a project is a container that groups related scripts, connection definitions, and (for database projects) schema objects. It's built on the same project system Visual Studio uses, but trimmed for database work: you get Solution Explorer, file management, source control integration hooks, and build/deploy support for database projects, without the full IDE.
This matters because most tutorials and older forum answers describe Visual Studio, not SSMS. In Visual Studio, a SQL Server Database Project has existed for years through SQL Server Data Tools (SSDT). In SSMS 21, Microsoft brought a compatible project experience into the database tool itself, so you don't need Visual Studio installed to manage schema as code. If you follow a Visual Studio tutorial inside SSMS 21, most concepts transfer—but menu locations and template names differ, and SSMS doesn't include every SSDT feature, such as all the newer SDK-style project options and some deployment contributors.
A practical distinction: use an SSMS project when you want to keep a set of scripts and database objects together with version control and a repeatable deploy step, but you want to stay in the tool you already use for querying. Use Visual Studio or the SqlPackage command-line tooling when you need the full SSDT feature set, CI/CD pipeline integration, or advanced publish profiles. Both ultimately produce the same kind of .sqlproj database project file.
Prerequisites before you start
Get these in place first; skipping them is the most common reason the New Project dialog looks empty or fails to load a template.
SSMS 21 or later installed. You can confirm the version from Help > About in SSMS (or the splash screen at launch). If you see version 18.x or 19.x, you have the classic build without a project system, and no amount of menu hunting will reveal New Project. Install SSMS 21 from Microsoft's download page. It installs side by side with older versions if you want to keep them.
The project templates present. SSMS 21 installs with project templates included, but if your organization deploys SSMS through a customized installer or a package manager that strips optional components, the templates may be missing. Reinstalling with defaults restores them. In the New Project dialog, if the template list is blank, this is the usual cause.
A target SQL Server instance for database projects. You don't need a live connection to create a project, but you do need one to build against a specific platform version and to deploy. Have the server name, authentication method, and permissions ready if you plan to publish. For local work, SQL Server Developer or Express edition is enough.
Write access to a folder for the solution. By default, SSMS proposes a path under your user profile. If you'll use source control, decide the repository location and clone it before creating the project inside it, not after—moving a project after creation is possible but easy to get wrong.
Optional: Git installed. SSMS 21 integrates with Git for source control. If you plan to commit, install Git and configure your name and email first, because the first commit otherwise fails with an identity error.
One more check: if you're on a locked-down machine, the New Project dialog's location field may point to a network path you can't write to. Change it to a local folder before proceeding.
Create the project: ordered steps
The procedure below is the direct path for a script project first, because it's the fastest way to confirm the project system works, followed by the database project variant.
1: Launch SSMS 21 and dismiss the connect-to-server dialog if it appears. You don't need an active query connection to create a project, though having one is handy for testing afterward.
2: Open the New Project dialog with File > New > Project, or press Ctrl+Shift+N. A dialog appears with a template list on the left, a name and location section on the right, and a solution name field at the bottom.
3: Pick a template. For a lightweight container of scripts, choose SQL Server Script Project (sometimes labeled Script Project depending on build). For schema-as-code work, choose SQL Server Database Project. Select the template so the description pane on the right confirms what you're getting.
4: Name the project in the Name field. Use a name that identifies the database or purpose, since this becomes the .sqlproj filename and the default assembly or DACPAC name. Avoid spaces if the project will be built in CI, where quoting quirks cause avoidable friction.
5: Set the location. Browse to the folder that will hold the solution. If you're using Git, this should be inside your cloned repository. Note that SSMS creates a solution folder containing the project folder, so the final path is Location\SolutionName\ProjectName.
6: Decide on the solution name. The dialog auto-fills it with the project name. Keep it if this is your only project; for a solution that will hold several projects, give the solution a broader name and leave Create directory for solution checked.
7: Choose the framework or platform if prompted. Database projects target a specific SQL Server version—SQL Server 2016, 2019, 2022, or Azure SQL Database, for example. Pick the version that matches your production server. Choosing a newer platform than your server supports can let you write syntax that fails at deploy time, and choosing an older one hides newer features from IntelliSense.
8: Click Create. SSMS builds the folder structure, opens the project in Solution Explorer, and shows the project's properties in the main pane. Expect a few seconds of loading on first creation while the project system initializes.
9: Add your first item. Right-click the project in Solution Explorer, choose Add > New Item, and select a script or object type—a SQL query file for script projects, or a table, view, or stored procedure for database projects. The template generates a skeleton file with the correct syntax for the chosen object.
10: Build to verify. Use Build > Build Solution (or right-click the project and choose Build). A clean build with no errors confirms the project and template are working. For database projects, this also produces the DACPAC artifact in the output folder.
11: Connect and test. Open a query window against your target server and run a script from the project to confirm the files are usable. Then save with Ctrl+S. If you're using Git, commit the solution folder now, before adding more content—the first commit is much easier to review when it's just the skeleton.
How to check success: Solution Explorer shows the project with its name and a tree of folders (Scripts, or Schema Objects subfolders for database projects), Build reports zero errors, and the .sqlproj file exists on disk in the location you chose. If Solution Explorer is empty after creation, the template failed to load—see the troubleshooting section.
Creating a SQL Server Database Project and what it gives you
A database project is the more valuable of the two templates, and it's worth understanding what it actually does before you invest in one.
When you create a database project, SSMS gives you a declarative model: you add CREATE TABLE, CREATE VIEW, and similar files to the project, and the build validates them and produces a DACPAC—a compiled package describing the target schema. At deploy time, the publish process compares the DACPAC's model to the live database and generates a change script. You can preview that script, which is the point: you review the exact ALTER and CREATE statements before they run, rather than hoping a hand-written migration is correct.
This inverts the usual workflow. Instead of scripting changes against a live server and trying to remember what you ran, you edit the project files, build, and publish. The project is the source of truth; the database is a deployment target. For teams, that means schema changes go through code review like application code, and a fresh environment can be built from the repository alone.
Implementation steps, once the project exists:
Set the target platform in project properties under the Database Settings or Project Settings tab. This controls validation rules and which features are legal. Import an existing schema if you're adopting the project for a live database. Right-click the project, choose Import > Import Database (the exact label varies by build; look for Schema Compare in the same menu as an alternative). This reverse-engineers the current objects into project files, giving you a starting point instead of hand-writing tables. Use Schema Compare to diff the project against a database. It shows drift in both directions—objects in the database but not the project, and vice versa—which is the fastest way to find out whether your project still matches production. Publish via right-click Publish on the project, which opens a dialog similar to SSDT's publish profile: target connection, database name, and options like "always re-create" versus incremental. For the first deployment to an empty database, incremental is fine; for a database that already has objects, review the generated script carefully.
One realistic limitation: the SSMS 21 project system covers the common database project workflow but not every SSDT feature. If you need composite projects, SQL CLR objects with complex build steps, or specific deployment contributors used in enterprise pipelines, verify support in your SSMS build or fall back to Visual Studio. Also, a database project doesn't include server-level objects like logins and agent jobs by default; those need separate handling.
Choosing the right template for your situation
Same criteria, different answers—here's how the main options compare on the things that actually matter.
| Criterion | SQL Server Script Project | SQL Server Database Project | Visual Studio SSDT project |
|---|---|---|---|
| Best for | Grouping queries, snippets, runbooks | Schema as code, reviewed deploys | Full-featured database DevOps, CI/CD |
| Build produces | Nothing compiled | DACPAC | DACPAC (plus SDK-style variants) |
| Schema Compare | No | Yes | Yes |
| Deploy/publish step | No | Yes | Yes |
| Requires Visual Studio | No | No | Yes (or Build Tools) |
| Platform targeting | Not applicable | Yes | Yes |
| CI pipeline friendliness | Low | Moderate (DACPAC + SqlPackage) | High |
| Typical user | Analyst, DBA with ad-hoc scripts | DBA or developer managing one or a few databases | Team with automated releases |
Read the table as a decision aid, not a ranking. The script project wins when the goal is organization without process—say, a DBA keeping monthly maintenance scripts and diagnostic queries together, versioned in Git. The database project wins as soon as schema changes need review and repeatable deployment. The Visual Studio route wins when the database is part of an application release pipeline with automated tests and multi-environment promotion, because SSDT integrates with MSBuild and the broader .NET tooling in ways the SSMS project system doesn't fully replicate.
The mismatch worth flagging: many comparisons online pit "SSMS projects" against "SSDT projects" as if they're rivals, but SSMS 21's project system is derived from the same lineage. The honest distinction is scope and host tool, not a fundamentally different model. If your team already lives in Visual Studio, there's little reason to move database projects into SSMS; if your team lives in SSMS, a database project there beats no project system at all.
Adding files, folders, and multiple projects to the solution
A single project rarely stays single. Two structural decisions come up quickly.
Organizing files into folders. Right-click the project and choose Add > New Folder, then drag existing files in or add new items to the folder. A workable convention for database projects is one folder per object type—Tables, Views, Stored Procedures, Functions—mirroring the schema's own organization. For script projects, organize by task or by database, whichever matches how you'll search later. Folder structure is cosmetic to the build but decisive for maintainability, so pick a scheme on day one rather than reorganizing at file two hundred.
Adding a second project to the solution. Right-click the solution node (not the project) and choose Add > New Project. This is the reason to keep solution and project names distinct: a solution named after the application can hold a database project, a script project for operational tasks, and a second database project for a related database. Each project builds independently, which keeps a broken script in the ops project from blocking a schema deploy.
Referencing between database projects. If one database's objects reference another's—cross-database queries, synonyms, or views that join across databases—database projects support project references. Add the reference through the project's References node, and the build validates cross-database object names. This catches broken cross-database dependencies at build time instead of at 2 a.m. after a deploy.
Solution-level items. Scripts that span projects, like environment setup or a deployment checklist, can live as solution items: right-click the solution, choose Add > New Item, and the file sits alongside the projects without belonging to any one of them.
Troubleshooting common failures
These are the failures people actually hit, with the likely cause and the first check to try. Start with the reversible ones.
Symptom: File > New > Project is missing entirely. Cause: you're on SSMS 18.x or 19.x, which have no project system. Check Help > About. Fix: install SSMS 21 or later, which installs side by side.
Symptom: The New Project dialog opens but the template list is empty. Cause: templates weren't installed, usually from a customized or trimmed installation. First check: close and reopen SSMS once, in case template discovery stalled on first launch. If still empty, repair or reinstall SSMS with default components.
Symptom: Project creation fails with an access-denied error on the location. Cause: the default location is unwritable—a network path, a protected folder, or a redirected profile. Fix: change the location to a folder you own, such as a subfolder of your documents or a local repository path, then retry.
Symptom: Build fails immediately with template or SDK errors on a brand-new project. Cause: the project targets a platform or SDK component not present. First check: project properties' target platform. Set it to a version your installed tooling supports, then rebuild. If the error names a missing SDK, the installation is incomplete.
Symptom: Publish generates a script that drops and recreates objects you expected to alter. Cause: publish options or a schema mismatch, often when the project was imported from a different database. Fix: in the publish dialog, review the generated script before executing, and enable options that block destructive changes (the "block incremental deployment if data loss" style setting) so the deploy stops instead of proceeding.
Symptom: Git commit fails with an author identity error. Cause: Git isn't configured with a name and email. Fix: set both in Git configuration, then commit. This is reversible and safe to do at any point.
Stop condition: if builds fail with errors pointing to missing assemblies, corrupted project files, or installation components, and a repair install of SSMS doesn't clear them, stop editing the project. Export or copy your files out, and involve your IT or Microsoft support before reinstalling further—repeated reinstall attempts on a managed machine can leave the environment in a worse state and may violate organizational policy.
Practical notes for teams and version control
A few habits separate projects that age well from ones abandoned after a month.
Commit the solution, not just the project folder. The .sln file and the project file both belong in source control. Committing only the project folder means a colleague can't open the solution and has to reconstruct it manually.
Exclude build output. The bin and obj folders, and any generated DACPAC, should be ignored via .gitignore. They're reproducible from source and cause noisy diffs otherwise.
Keep one project per deployable database. Resist the urge to pack unrelated databases into one project for convenience. Deployment targets are per-project, and mixing them means every publish touches more than intended.
Review the generated deploy script every time. The whole value of a database project is that you can see the change script before it runs. Treating Publish as a one-click button throws that away. For production, save the script and have it reviewed like any other change.
Version the target platform deliberately. When production upgrades to a newer SQL Server, update the project's target platform in the same change cycle. Otherwise IntelliSense and build validation drift behind reality, and new syntax gets flagged as an error on a server that supports it.
Expect minor label differences across SSMS 21 builds. The project system has been refined since its introduction, so menu labels like "Import Database" versus "Schema Compare" entry points, and option names in the publish dialog, can shift between updates. If a menu item named here isn't where described, look in the adjacent submenu and check the build's release notes rather than assuming the feature is gone.
Finally, keep expectations calibrated. The SSMS project system handles the common cases—script organization, schema as code, reviewed deploys—well enough for many teams, but it isn't a full replacement for SSDT in heavily automated environments. Deciding which side of that line you're on early saves a migration later.
FAQ
Can I open an existing Visual Studio database project in SSMS 21? In many cases yes, since both use the .sqlproj format, but projects built on newer SDK-style project files or depending on SSDT-specific build features may not load or build correctly. Try opening it and building; if the build fails on unresolved features, keep it in Visual Studio and use SSMS only for querying.
Do I need a live SQL Server connection to create a project? No. Project creation and building work offline. You need a connection only to import a schema from an existing database or to publish. Connection attempts aren't required at creation time, which is convenient on a laptop in transit.
Where are projects stored on disk? Inside the solution folder at the location you chose during creation: Location\SolutionName\ProjectName, with the project file at the project folder's root and source files in subfolders. Backing up means copying the solution folder; there's no hidden database behind it.
What happens to my project if I upgrade SSMS? Project files persist on disk and are not tied to a single SSMS installation. A later build may prompt to update the project format, which is generally safe but worth committing first so you can compare the change. If a team uses mixed SSMS versions, standardize on one build to avoid format churn.