Financial Information Management Changing data in a DB Stefano Grazioli.

Slides:



Advertisements
Similar presentations
Introduction to Database Processing with ADO.NET.
Advertisements

ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Financial Information Management FIM: Databases Stefano Grazioli.
Financial Information Management How do I talk to a DBMS? SQL In one hour.
C# programming with database Basic guideline. First step Install SQL Server 2008/2010 (Professional edition if possible) Install Visual Studio 2008/2010.
Chapter 9 Using the SqlDataSource Control. References aspx.
ADO.NET – part II August 2004 [ Marmagna Desai]. CONTENTS ADO vs ADO.NET ADO.NET – Managed providers Connecting to Database SqlConnection Selecting Database.
ODBC, OLE DB, and ADO Introduction Dr. Ron Eaglin.
Financial Information Management DBMS and Operations, BI, and Analytics Stefano Grazioli.
ADO.NET A2 Teacher Up skilling LECTURE 3. What’s to come today? ADO.NET What is ADO.NET? ADO.NET Objects SqlConnection SqlCommand SqlDataReader DataSet.
A Simple Introduction. What is ADO.net? First the word ADO stands for ActiveX Data Objects And it is an integral part of.Net Framework of Microsoft hence.
.NET Data Access and Manipulation ADO.NET. Overview What is ADO.NET? Disconnected vs. connected data access models ADO.NET Architecture ADO.NET Core Objects.
Objectives In this lesson, you will learn to: *Identify the need for ADO.NET *Identify the features of ADO.NET *Identify the components of the ADO.NET.
Financial Information Management Putting VB & SQL To Work Stefano Grazioli.
Financial Information Management Portfolio-level Delta Hedging Stefano Grazioli.
1 Introduction to Database Systems CSE 444 Lecture 06 SQL in C#, Project October 5, 2007.
Financial Information Management Operations, BI, and Analytics Stefano Grazioli.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Introduction to ADO.NET ADO.NET - Lesson 01  Training time: 10 minutes  Author:
ADO.NET Objects – Data Providers Dr. Ron Eaglin. Requirements Visual Studio 2005 Microsoft SQL Server 2000 or 2005 –Adventure Works Database Installed.
ADO.NET connections1 Connecting to SQL Server and Oracle.
C# Programming in Depth Prof. Dr. Bertrand Meyer March 2007 – May 2007 Chair of Software Engineering Lecture 10: Database Lisa (Ling) Liu.
© Stefano Grazioli - Ask for permission for using/quoting:
© Stefano Grazioli - Ask for permission for using/quoting:
© Stefano Grazioli - Ask for permission for using/quoting:
ASP.NET - insert - delete -update DataTables (disconnected datasets) Shopping Basket.
ADO.NET FUNDAMENTALS BEGINNING ASP.NET 3.5 IN C#.
Module 4 Introduction ADO.NET.
1 Database Programming with ADO.NET Kashef Mughal.
Active Data Objects Using.Net ADO.Net Farooq Ahmed Amna Umber Summayya Shehzad.
Financial Information Management FIM: Databases Stefano Grazioli.
Financial Information Management Business Intelligence Putting VBA & SQL To Work.
© Stefano Grazioli - Ask for permission for using/quoting: Putting VBA & SQL To Work.
Querying Information in a Database. CONTENTS Relational Database Systems Creating Database with SQL Server Reading Data with LINQ Requirements to Get.
Financial Information Management Modifying data in a DB Stefano Grazioli.
© Stefano Grazioli - Ask for permission for using/quoting: Stefano Grazioli.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 The SqlCommand Object ADO.NET - Lesson 03  Training time: 15 minutes  Author:
Financial Information Management Operations, BI, and Analytics Stefano Grazioli.
© Stefano Grazioli - Ask for permission for using/quoting: Stefano Grazioli.
ADO .NET from. ADO .NET from “ADO .Net” Evolution/History of ADO.NET MICROSOFT .NET “ADO .Net” Evolution/History of ADO.NET History: Most applications.
.NET Data Access and Manipulation
C# 1 CSC 298 ADO.NET. C# 2 ADO.NET  A data access technology that maps very well to the world of the web (disconnected architecture)  data is retrieved.
1 Lecture 07 Project Wednesday, October 11, 2006.
Databases Stefano Grazioli.
Common SQL keywords. Building and using CASE Tools Data Base with Microsoft SQL-Server and C#
ASP.NET Programming with C# and SQL Server First Edition
Operations, BI, and Analytics
Process Automation The Technology
Process Automation The Technology
Business Intelligence
Relational Model.
BI tools: Excel’s Pivot table
Programming the Web Using ASP.Net
Dynamic SQL Queries Stefano Grazioli.
Tonga Institute of Higher Education
An Introduction to Entity Framework
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
Dynamic SQL Queries Stefano Grazioli.
BI: Accessing Enterprise Data
BI: Accessing Enterprise Data
PROG Advanced Web Apps 4/13/2019 Programming Data Pages Wendi Jollymore, ACES.
Dynamic SQL Queries Stefano Grazioli.
Trading Stock and Options in Athens
Dynamic SQL Queries Stefano Grazioli.
BI tools: Excel’s Pivot table
Operations, BI, and Analytics
Trading Stock and Options in Athens
Hedging Strategies Stefano Grazioli.
Power BI/Excel Dashboards for Managerial Analysis and decision making
Operations, BI, and Analytics
Hedging Strategies Stefano Grazioli.
Presentation transcript:

Financial Information Management Changing data in a DB Stefano Grazioli

Critical Thinking  Easy meter

Financial Information Management Ado.net Inserts, Deletes, and Updates: ‘non-queries’

ADO.NET architecture Remote DataBase Client (your program on your machine) SQL Query string Connection string SqlConnection SqlAdapter Your objects (e.g. ListObject) DataSet DataTable s DataRow s DB Server SqlCommand

ADO.NET for non-queries Remote DataBase Client (your program on your machine) SQL Query string Connection string SqlConnection DB Server SqlCommand Execution Feedback

String.Format -- insert into Customer2 (C_id, F_name, L_name, City, State) -- values ('C0992','Max', 'Plank', 'Roanoke', 'VA') newCId = Range("K2").Value newFName = Range("K3").Value newLName = Range("K4").Value newCity = Range("K5").Value newState = Range("K6").Value sqlString As String = String.Format( "insert into Customer2 (C_id, F_name, L_name, City, State) values ('{0}','{1}','{2}','{3}','{4}')", newCId, newFName, newLName, newCity, newState)

Financial Information Management Demo

You do the talking  Name, Major  Learning objectives  Things you like about the class  Things that can be improved  Strengths / Attitude towards the Tournament

Financial Information Management Homework

 Make sure that you understand the ADO architecture diagrams before coding.

Financial Information Management WINIT What Is New In Technology?

Financial Information Management Best Practices Try/Catch

Example try-catch Try myConnection.Open() ‘… there might be more statements Catch MessageBox.Show("Ouch! I have just crashed. “, MessageBoxButtons.OK, MessageBoxIcon.Exclamation) End Try This will be tried This will run only if something goes wrong while trying

A Mixed Blessing  While developing an algorithm, crashes are often very informative  Bad idea to use try/catches as part of an algorithm  Put the try/catches in as a last step, after testing