SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Use the SAP HANA Database Explorer Extension

Learn how the SAP HANA database explorer for Visual Studio Code extension can be used to connect to both SAP HANA Cloud and on-premise databases, about related general Visual Studio Code features, how to use the catalog browser, and how to execute SQL queries. The SAP HANA database explorer for Visual Studio Code extension contains similar functionality to that in the web-based SAP HANA database explorer although not all functionality is available.

Overview

🎓 beginner 10 min. SAP HANA CloudBeginnerSAP HANA Cloud SAP HANA DatabaseSAP HANASAP HANA Express Edition

You will learn

  • How to setup the Visual Studio Code SAP HANA database explorer extension
  • How to connect to an SAP HANA Cloud database, SAP HANA database and SAP HANA User store (to retrieve connection details)
  • How to explore and examine objects in an SAP HANA database

Prerequisites

Prerequisites

  • An SAP HANA database such as SAP HANA Cloud free tier or an on-premise SAP HANA database such as the SAP HANA, express edition
  • You have completed the first 3 tutorials in this group

Steps

Step 1 Set up

  1. If needed, download Visual Studio Code for your computer.

    Download Visual Studio Code
    Download Visual Studio Code

  2. Open Visual Studio Code and install the SAP HANA database explorer Visual Studio Code extension from Visual Studio Marketplace by navigating to Extensions and searching for SAP HANA Database Explorer.

    For more information about the latest features and version updates to the extension, you can refer to the CHANGELOG tab.

    Install extension
    Install extension

  3. Open the extension from the new icon in the activity bar (left) and navigate to the Database List.

    Open extension
    Open extension

    There are two types of connections you can make with the extension.

    • Local Connections are connections to an SAP HANA database (cloud or on-premise) added via the + icon.

    • SAP HANA Database Explorer Connections are database connections retrieved by logging into Cloud Foundry and querying for the set of connections that the Cloud Foundry, web-based SAP HANA database explorer have created.

Step 2 Add a local database connection
+
Step 3 Using the Database List and Catalog Browser
+
Step 4 Dependency Viewer
+
Step 5 Visual Studio Code features
+
Step 6 Import and export SQL code
+
Step 7 Run SQL code
+
Step 8 Knowledge check
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 8
1. Set up 2. Add a local database connection 3. Using the Database List and Catalog Browser 4. Dependency Viewer 5. Visual Studio Code features 6. Import and export SQL code 7. Run SQL code 8. Knowledge check

Learn more →