150 likes | 248 Views
Putting VB & SQL To work. Stefano Grazioli. Debriefing. Easy meter. Accessing Enterprise Data. Using Excel & ADO. Where is my Data? . In memory DATASET. Database file on a DBMS. In a file. slow. slow. fast. Your local machine. Server. ADO. ActiveX Data Object
E N D
Putting VB & SQLTo work Stefano Grazioli
Debriefing • Easy meter
AccessingEnterprise Data Using Excel & ADO
Where is my Data? In memoryDATASET Databasefile on a DBMS In a file slow slow fast Your local machine Server
ADO • ActiveX Data Object • MS Technology to manage enterprise data • Use ADO to run SQL queries on remote servers, collect the results, and present them to the user.
Database Plumbing • Standard parts,put together in standard ways are called architectures
Software Objects • An object is a bundle of data and ‘methods’ • Object Classes and Object Instances Class = code to build an instance Instance = physical item running on your machine • Instances are built with the keywordnew Dim myDeskClock As DeskClock = new DeskClock() Name, a variable Class name (type) keyword Method that creates the deskclock
ADO architecture Client (your program on your machine) DB Server SqlConnection Connectionstring RemoteDataBase (financial data) SqlCommand SqlAdapter SQL Querystring DataSetDataTablesDataRows On yourSpreadsheet ListObject
WINIT What Is NewIn Technology?
You do the talking • Name, Major • Learning objectives • Things you like about the class • Things that can be improved • Attitude towards the Tournament
Homework Using ADO to Retrieve Financial Data
Suggestions • Make sure that you understand the ADO architecture diagram before coding.