Skip to main content

Working with Databases

SenseTalk can access numerous database types using Microsoft Open Database Connectivity (ODBC), and can also refer to Excel files as databases. For information on connecting to either of these database types, see the topics below:

note

ODBC Only: If you want to use SQL instead of SenseTalk to manipulate your data, see Executing SQL Directly.

Topics in This Section

On this Page: Database Basics

Database Connections: To work with a database first requires establishing a connection to communicate with the database server. This section covers how to define database connections and more for the following:

Database Tables: Information on accessing tables within a database in order to manipulate their data. Includes information on:

Reading from a Database: Learn how to pull data from a database. Covers use of:

Writing to a Database: Learn how to store information in a database, update that information, and otherwise manipulate it. This includes:

Variations and Additional Information: These less-common approaches to accessing database information may be useful in specific situations. Read this information to understand these other techniques.

Database Basics

A database is a repository for storing information in a structured fashion. In a traditional relational database data is stored in tables. The information in each table is organized in rows and columns with each row holding one record. The columns in the table identify the different fields of information that are contained in each record.

For example, in a table for information about the members of a club, the columns might be called "first name", "last name", "member number", "birth date", and so on. The table would contain one row (referred to as a "record") for each club member.

firstNamelastNamememberNumberbirthDatememberSinceexpirationDate
EricaGrayson1021982-07-0220032014-08-05
CarolWeinhart481967-10-1419992011-12-31
TedHanover1861974-03-2220102013-09-18
JustinFallcourt1711991-11-3020092014-01-31
..................

A database often contains many different tables holding different types of information. Typically a database is managed by a database server, which may be a process on the local computer, but is more often a central server available somewhere on the network.

In many cases, a single database server will hold many different databases, sometimes also called a schema. Each database schema defines a number of different tables.