![DocumentDB Tutorial](/documentdb/images/documentdb-mini-logo.jpg)
- DocumentDB Tutorial
- DocumentDB - Home
- DocumentDB - Introduction
- DocumentDB - Advantages
- DocumentDB - Environment Setup
- DocumentDB - Create Account
- DocumentDB - Connect Account
- DocumentDB - Create Database
- DocumentDB - List Databases
- DocumentDB - Drop Databases
- DocumentDB - Create Collection
- DocumentDB - Delete Collection
- DocumentDB - Insert Document
- DocumentDB - Query Document
- DocumentDB - Update Document
- DocumentDB - Delete Document
- DocumentDB - Data Modeling
- DocumentDB - Data Types
- DocumentDB - Limiting Records
- DocumentDB - Sorting Records
- DocumentDB - Indexing Records
- DocumentDB - Geospatial Data
- DocumentDB - Partitioning
- DocumentDB - Data Migration
- DocumentDB - Access Control
- DocumentDB - Visualize Data
- DocumentDB Useful Resources
- DocumentDB - Quick Guide
- DocumentDB - Useful Resources
- DocumentDB - Discussion
DocumentDB - Environment Setup
Microsoft provides a free version of Visual Studio which also contains SQL Server and it can be downloaded from https://www.visualstudio.com
Installation
Step 1 − Once downloading is completed, run the installer. The following dialog will be displayed.
![Installer](/documentdb/images/installer.jpg)
Step 2 − Click on the Install button and it will start the installation process.
![Installation Process](/documentdb/images/installation_process.jpg)
Step 3 − Once the installation process is completed successfully, you will see the following dialog.
![Restart Now](/documentdb/images/restart_now.jpg)
Step 4 − Close this dialog and restart your computer if required.
Step 5 − Now open Visual studio from start Menu which will open the below dialog. It will take some time for the first time only for preparation.
![open visual studio](/documentdb/images/visual_studio.jpg)
Once all is done, you will see the main window of Visual Studio.
![Main Window](/documentdb/images/main_window_of_visual_studio.jpg)
Step 6 − Let’s create a new project from File → New → Project.
![Create New Project](/documentdb/images/create_new_project.jpg)
Step 7 − Select Console Application, enter DocumentDBDemo in the Name field and click OK button.
Step 8 − In solution Explorer, right-click on your project.
![Right click on project](/documentdb/images/right_click_on_project.jpg)
Step 9 − Select Manage NuGet Packages which will open the following window in Visual Studio and in the Search Online input box, search for DocumentDB Client Library.
![Manage NuGet Packages](/documentdb/images/select_manage_nuget.jpg)
Step 10 − Install the latest version by clicking the install button.
![License Acceptance](/documentdb/images/license_acceptance.jpg)
Step 11 − Click “I Accept”. Once installation is done you will see the message in your output window.
![Start Application](/documentdb/images/start_application.jpg)
You are now ready to start your application.