What Is .ncb
Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.
Last updated: April 12, 2026
Key Facts
- .NCB stands for 'No Compile Browse' or 'No Compile Browser File'
- Used exclusively by Microsoft Visual Studio for C++ and Visual C++ projects
- Stores symbol information, parsed code data, and metadata for IntelliSense features
- Automatically recreated by Visual Studio on demand and is safe to delete without data loss
- Replaced by .SDF (SQL Server Compact database) files in Visual Studio 2005 and later versions
Overview
.NCB is a file extension that represents a specialized database file used by Microsoft Visual Studio, one of the most popular integrated development environments (IDEs) for software developers. The file stores parsed information and symbol data extracted from C++ and Visual C++ source code projects. These files are essential for powering the IntelliSense feature, which provides intelligent code completion suggestions, and the ClassView navigation tool that helps developers quickly locate and navigate between classes and functions in their codebase.
.NCB stands for No Compile Browse, reflecting its purpose as a non-compilable database that exists solely to support browsing and navigation features within the Visual Studio IDE. The file is automatically generated and maintained by Visual Studio as developers write and modify their code. Because it is a derived file that can be recreated on demand, developers can safely delete .NCB files without losing any source code or project data. Understanding what .NCB files are and how they function is important for developers using older versions of Visual Studio, as these files directly impact the development experience and IDE responsiveness.
How It Works
.NCB files function as an intelligent symbol database that Visual Studio creates behind the scenes while you work on your projects. The IDE parses your C++ source code and extracts important information about classes, functions, variables, and other code elements, storing this metadata in the .NCB database file. This pre-parsed information allows Visual Studio to instantly provide code completion suggestions, navigate to definitions, and display class hierarchies without needing to recompile your entire project.
- Symbol Extraction: Visual Studio parses C++ source code to identify and extract symbols such as class names, method signatures, variable declarations, and namespace information, storing this data in the .NCB database for rapid retrieval.
- IntelliSense Support: The .NCB file powers IntelliSense, allowing the IDE to display intelligent code completion suggestions, parameter information, and function overloads as developers type, significantly improving coding speed and accuracy.
- ClassView Integration: The database file provides data for the ClassView panel in Visual Studio, enabling developers to browse the hierarchical structure of classes, methods, and members in their project through a graphical tree interface.
- WizardBar Navigation: .NCB files support the WizardBar feature, which displays the current class and function context, allowing quick navigation between different parts of the codebase without manual searching.
- Automatic Recreation: If a .NCB file is deleted or becomes corrupted, Visual Studio automatically recreates it the next time the project is opened or modified, ensuring that no data is permanently lost from this auxiliary file.
- No Compilation Required: Unlike object files (.obj) that result from compilation, .NCB files are created through parsing alone, which is why they are called "No Compile Browse" files—they exist independently of the compilation process.
Key Details
| Aspect | Details | Purpose | File Type |
|---|---|---|---|
| Full Name | No Compile Browse File | Identifier for Visual Studio symbol database | Binary Database |
| Associated Software | Microsoft Visual Studio (versions prior to 2005) | IDE integration for C++ development | Project Support |
| Primary Function | Stores parsed code symbols and metadata | Powers IntelliSense and code navigation | Auxiliary File |
| Modern Replacement | .SDF (SQL Server Compact database) | Same functionality in newer Visual Studio versions | Database File |
| File Safety | Safe to delete; automatically recreated by IDE | No impact on source code or projects | Temporary Cache |
The .NCB file format was standard in Visual Studio until version 2005, when Microsoft introduced a new approach using .SDF (SQL Server Compact Edition) database files. This transition reflected the evolution of Visual Studio's architecture and improved performance capabilities. However, many developers working with legacy projects or older Visual Studio installations still encounter .NCB files in their project directories. The file size of .NCB files can vary significantly depending on project complexity, ranging from a few kilobytes for small projects to many megabytes for large enterprise applications. When .NCB files become corrupted or cause IntelliSense to malfunction, deleting the file and allowing Visual Studio to regenerate it is a standard troubleshooting technique.
Why It Matters
- Developer Productivity: .NCB files enable IntelliSense and code navigation features that significantly accelerate development by providing intelligent code completion, reducing typing, and minimizing navigation time to find specific functions or classes.
- Legacy Project Support: Understanding .NCB files is essential for developers maintaining or upgrading legacy projects built with older Visual Studio versions, as these projects may still contain and depend on these database files.
- Troubleshooting Tool: When IntelliSense malfunctions or ClassView displays incorrect information, deleting and regenerating the .NCB file is a proven troubleshooting solution that requires no project reconfiguration or loss of source code.
- IDE Performance: .NCB files contribute to overall IDE responsiveness by allowing Visual Studio to quickly access symbol information without recompiling or re-parsing the entire codebase during routine editing tasks.
- Project Management: Knowledge of .NCB files helps developers understand version control workflows, as these files are typically excluded from source control repositories since they are automatically regenerated by each developer's local IDE installation.
.NCB files represent an important piece of Visual Studio's architecture history and continue to be relevant for developers working with C++ projects in older IDE versions. While modern versions of Visual Studio have moved to more advanced symbol database formats, the fundamental purpose remains the same: providing developers with intelligent tools to write code more efficiently. For anyone working with Visual C++ or maintaining legacy codebases, understanding what .NCB files are, how they function, and how to troubleshoot issues related to them is valuable knowledge that can resolve IDE problems and improve overall development efficiency.
More What Is in Daily Life
Also in Daily Life
More "What Is" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
Missing an answer?
Suggest a question and we'll generate an answer for it.