Financial Information Management Modifying data in a DB Stefano Grazioli.

Slides:



Advertisements
Similar presentations
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Advertisements

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.
Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc.
Financial Information Management DBMS and Operations, BI, and Analytics Stefano Grazioli.
Software Engineering 2003 Jyrki Nummenmaa 1 CASE Tools CASE = Computer-Aided Software Engineering A set of tools to (optimally) assist in each.
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.
FEN Data connection DataReader DataSet Bonus info: Concurrency and Database Transactions Embedded SQL.
.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.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
Financial Information Management Putting VB & SQL To Work Stefano Grazioli.
1 Introduction to Database Systems CSE 444 Lecture 06 SQL in C#, Project October 5, 2007.
Module 7: Accessing Data by Using ADO.NET
Financial Information Management Changing data in a DB Stefano Grazioli.
Financial Information Management Operations, BI, and Analytics Stefano Grazioli.
ADO.NET Objects – Data Providers Dr. Ron Eaglin. Requirements Visual Studio 2005 Microsoft SQL Server 2000 or 2005 –Adventure Works Database Installed.
© Stefano Grazioli - Ask for permission for using/quoting:
© Stefano Grazioli - Ask for permission for using/quoting:
© Stefano Grazioli - Ask for permission for using/quoting:
Creating and Populating a MS SQLServer Database Presented By: Dr. Adam P. Anthony.
8/4/2004 Mobile Clemson Football Information Retrieval Jason Mikell Cpsc 463 Summer 2004.
ADO.NET FUNDAMENTALS BEGINNING ASP.NET 3.5 IN C#.
ODBC : Open Database Connectivity SNU OOPSLA Lab. October 2005.
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.
PHP AND SQL SERVER: QUERIES IST 210: Organization of Data IST210 1.
© Stefano Grazioli - Ask for permission for using/quoting: Stefano Grazioli.
Java Object-Relational Layer Sharon Diskin GUS 3.0 Workshop June 18-21, 2002.
Financial Information Management Operations, BI, and Analytics Stefano Grazioli.
© Stefano Grazioli - Ask for permission for using/quoting: Stefano Grazioli.
© Stefano Grazioli - Ask for permission for using/quoting: Source: Excel VBA Programming by John Walkenbach.
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
PHP and SQL Server: Connection IST 210: Organization of Data IST2101.
1 Lecture 07 Project Wednesday, October 11, 2006.
Databases Stefano Grazioli.
Control Structures (part II)
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
Managing, Storing, and Executing DTS Packages
Y.-H. Chen International College Ming-Chuan University Fall, 2004
Process Automation The Technology
Unit 9.1 Learning Objectives Data Access in Code
Process Automation The Technology
Business Intelligence
BI tools: Excel’s Pivot table
Programming the Web Using ASP.Net
Lecture 6 VB.Net SQL Server.
Dynamic SQL Queries Stefano Grazioli.
Unit 9.2 Database access from code Database Cycle Review
Tonga Institute of Higher Education
An Introduction to Entity Framework
Dynamic SQL Queries Stefano Grazioli.
BI: Accessing Enterprise Data
BI: Accessing Enterprise Data
These slides are for reference only. They are not "lecture notes"
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
Operations, BI, and Analytics
Lecture 06 SQL in C#, Project
M S COLLEGE OF ART’S, COMM., SCI. & BMS Advance Web Programming
Presentation transcript:

Financial Information Management Modifying data in a DB Stefano Grazioli

Critical Thinking  More thinking on your own and yet still strong  Clear all errors before submitting  Easy meter

Connecting to the DB from home 1.Connect to the VPN 2.From the command window type: runas /netonly /user:”mcintire\[your McIntire id]” "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe“ note that your path to visual studio might be different 3.Enter your pswd when prompted

ADO architecture for retrieving data Remote DataBase (financial data) Remote DataBase (financial data) Client (your machine) SQL Query string Connection string SqlConnection SqlAdapter ListObject DataSet DataTable s DataRow s DB Server SqlCommand On your Spreadsheet

ADO architecture for modifying data Remote DataBase (financial data) Remote DataBase (financial data) Client (your machine) SQL Query string Connection string SqlConnection DB Server SqlCommand Execution Feedback

‘Canned’ vs ‘Dynamic’ Queries ‘ 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

Financial Information Management WINIT What Is New In Technology?

Financial Information Management Homework

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

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 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