How to connect to a Database in Visual Studio Using ODBC?

How to connect to a Database in Visual Studio Using ODBC?

book

Article ID: KB0137813

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization All supported versions
TIBCO Data Virtualization All supported versions

Description

ODBC (Open Database Connectivity) allows Visual Studio to interface with various database systems using defined Data Source Names (DSNs). 


Prerequisites:

  • An existing ODBC System DSN configured on your machine

  • Valid database credentials

  • Visual Studio installed

Resolution

Follow the steps below to connect to the database via ODBC in Visual Studio:

  1. Open Visual Studio

  2. Navigate to:
    Tools → Connect to Database

  3. In the Choose Data Source dialog:

    • Select Microsoft ODBC Data Source (.NET Framework)

    • Click Continue

  4. In the Add Connection window:

    • Under Use user or system data source name, select the appropriate System DSN from the list

    • Enter the required username and password for your database connection

  5. Click Test Connection to verify the setup.

    Please check the below screenshot for reference:
    image.png

Issue/Introduction

This article outlines the steps required to connect to a database in Microsoft Visual Studio using an existing ODBC data source. This is useful for testing connectivity, browsing schema, or integrating database operations into your application or development workflow.