RAD to Database Connection Glenn Campbell

Slides:



Advertisements
Similar presentations
Basics of Database Programming with VB6
Advertisements

S the of partnership power Evaluation Code Presenter: Dan DeBower Technical Consultant Systems & Computer Technology Corp. Tuesday,
Data Base. Objective Become familiar with database terminology. Create a project to display data for a single database table. Use a DataGrid control.
Connect to Excel Spreadsheet with an OLE DB Connection.
Introduction to ODBC for Business Rules.  What is ODBC?  ODBC – Installing the Drivers  ODBC – Data Sources(BR.INI)  BR Sample Application  BR Context.
Some Introductory Programming 1. Structured Query Language (SQL) - used for queries. - a standard database product. 2. Visual Basic for Applications -
The ADO Data Control. Universal Data Access Open Database Connectivity (ODBC) –standard for accessing data in databases OLE-DB –allows access to data.
4/8/99 C. Edward Chow Page 1 Active Server Page It is a server-side scripting environment for creating dynamic content. ASP are files with.asp extension,
P2-S1 MySQL 2003 SJSU -- CmpE-- M.E. Fayad Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
DT228/3 Web Development Databases. Database Almost all web application on the net access a database e.g. shopping sites, message boards, search engines.
MC365 JDBC in Servlets. Today We Will Cover: DBVisualizer Using JDBC in servlets Using properties files.
Introduction to ADO.Net, VB.Net Database Tools and Data Binding ISYS 512.
ODBC and JDBC What are they – libraries of function calls that support SQL statements Why do we need them –Provide a way for an application to communicate.
Created By: Jeremy Callan Descore Inc ext. 5405
1 Client/Server Database Tutorial. SQL Server Connection through MS Access FACBUSAD1 SQL server MS Access MGD B106 Computer or your own PC Remote SQL.
MBAC 611.  We have been using MS Access to query and modify our databases.  MS Access provides a GUI (Graphical User Interface) that hides much of the.
Tutorial SQL Server and Matlab CIS 526. Build a New Database in SQL server.
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 11. DATABASE CONNECTIVITY IN JAVA JDBC Programming JDBC (Java Database Connectivity) is the specification of a.
Accuplacer & Compass Download Application Bettsie Montero – Imperial Valley College.
How to using MS Access database in Perl/CGI Web Programming Wei Sun.
From VS C# 2010 Programming, John Allwork 1 VS2010 C# Programming - DB intro 1 Topics – Database Relational - linked tables SQL ADO.NET objects Referencing.
ODBC Open DataBase Connectivity a standard database access method developed by Microsoft to access data from any application regardless of which database.
CIS 270—App Dev II Big Java Chapter 22 Relational Databases.
Installation Guide to SOUL 2.0 Demo Version
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
CSCI 6962: Server-side Design and Programming
Session 5: Working with MySQL iNET Academy Open Source Web Development.
ODBC REPORTS How to Use Access to work with MS SQL Server Database.
Introduction to ADO.Net and Visual Studio Database Tools ISYS 512.
Advanced Database Management System Lab no. 11. SQL Commands (for MySQL) –Update –Replace –Delete.
ADO Connect Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Chapter 7 PHP Interacts with Ms. Access (Open DataBase Connectivity (ODBC))
Multiple Cases Access Utilities1 Access & ODBC Managing and Using ODBC Connections P.O. Box 6142 Laguna Niguel, CA
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
ODBC : Open Database Connectivity SNU OOPSLA Lab. October 2005.
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
SQL HW1 Turn in as a hardcopy at the start of next class period. You may work this assignment in groups.
Database Programming in Java Corresponds with Chapter 32, 33.
CIS 270—Application Development II Chapter 25—Accessing Databases with JDBC.
Part 1. Persistent Data Web applications remember your setting by means of a database linked to the site.
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Hands-On Microsoft Windows Server Implementing Microsoft Internet Information Services Microsoft Internet Information Services (IIS) –Software included.
1 Database Systems Introduction to Microsoft Access Part 2.
Proxy Installer for Windows Squid: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response.
Multiple Cases Access Utilities1 Built-in Access Utilities for Developers, Users & Administrators P.O. Box 6142 Laguna Niguel, CA
Introduction to ADO.Net and VS Database Tools and Data Binding ISYS 350.
Presentation On How To Create Connection To A Database.
AVCE ICT – Unit 7 - Programming Session 16 – Database and VB.
PHP Programming. Topics Database Handling (MySQL, MSSQL, ODBC)
Database Connectivity What is ADO. What is ADO? ADO is a Microsoft technology ADO stands for ActiveX Data Objects ADO is a Microsoft Active-X component.
Producing a Mail Merged Letter Step 1 Create an Access database for Names and Addresses you can use the ‘Customers’ template in Group Work. Enter the necessary.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 6 CGI/Perl and databases.
1 Working with MS SQL Server Beginning ASP.NET in C# and VB Chapter 12.
PHP and SQL Server: Connection IST 210: Organization of Data IST2101.
Database Applications – Microsoft Access Lesson 5 Shared Data.
2nd year Computer Science & Engineer
Data Virtualization Demoette… ODBC Clients
, MS-Access, QBE, Access/Oracle
W04 Connecting 3rd Party Application to ODBC
JDBC Database Management Database connectivity
ADO.NET Accessing Databases in VS.NET
07 | Analyzing Big Data with Excel
Software for Eligible Beneficiaries Accession
IS 220 Databases Fundamentals
Aqua Data Studio.
Developing a Model-View-Controller Component for Joomla Part 3
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Ch 1 .Installing and configuring SQL Server 2005
Introduction to ADO.Net and Visual Studio Database Tools.
Presentation transcript:

RAD to Database Connection Glenn Campbell

Learning Outcomes After this lesson you will be familiar with: TclODBC Linking RAD application to database Creating an ODBC Data Source Name (DSN) TCL commands Using SQL to query a database

TclODBC Extension to TCL (Tool Command Language) which allows access to databases Uses standard ODBC interface The Rapid Application Developer (RAD) can be configured to link to a database We will use MS Access for creating the database

Initial Steps Before you begin, do the following: 1. Download and install TclODBC from course website 2. Create a database in MS Access called name.mdb e.g. student.mdb We can now create a link between the database and the RAD application

Testing TclODBC Refer to Exercise 20 of Tutorial 12 for information on how to test TclODBC in the CSLUsh window. When you are satisfied that TclODBC is working, you can then create a link between your RAD application and the Database.

The RAD to database connection is achieved using the following steps: Step 1: Create a link between the RAD and the database Step 2: Create an ODBC Data Source Name (DSN) for your database Step 3: Create a database object to open a connection to the database Step 4: Use SQL to query the database RAD to database connection

Step 1: RAD – database link Download TclODBC package into the... \CSLU\Toolkit\2.0\pkg\tclodbc2.2 directory Use the following command to create a link between RAD and the database: package require tclodbc This command loads the TclODBC program which creates a link between RAD and the database This (and any other) TCL command can be inserted into the ‘On Exit’ tab of an Action Object

Step 2: Create an ODBC DSN Select: Start | Control Panel | Administrative Tools | Data Sources (ODBC) | Add Now enter required information. For example, in this example, enter ‘student’ as the Data Source Name (i.e. the name of the database) Remember to select ‘Microsoft Access Driver’ and browse for the database you wish to link to.

Step 3: Create database object Use the command database to create a database object, db which refers to the DSN created in Step 2 To do this use the following command: Database db name where name is the name of the database, e.g. ‘student’

Step 4: Query the database The database can now be queried using SQL Again, the code is entered into the Action object: For example: set getDetails [db "Select Name from StudentRecords where StudentNumber = $value"] where Name and StudentNumber are all fields in the StudentRecords table of the student database

Further Information Paul Mc Kevitt’s course website CSLU Toolkit webpage me: