ADO.NET (Active Data Objects)

Size: px
Start display at page:

Download "ADO.NET (Active Data Objects)"

Transcription

1 CSC Rapid Application Development ADO.NET (Active Data Objects) Department of Statistics and Computer Science Faculty of Applied Science University of Sri Jayewardanepura

2 How it Works DBMS (SQL Server) SQLConnection SQLCommand UI (DataGrid) DataSet Like a cache of the DB SQLDataAdapter Responsible for updates Kasun@sjp.ac.lk 2

3 SqlConnection Imports System.Data.SqlClient Dim CN As SqlConnection CN = New SqlConnection( "Data Source=LCSServer\SQL2005Server; Initial Catalog=RADdb; User ID=user1;Password=pw1")

4 The Connection Class Imports System.Data.SqlClient Dim CN As New SqlConnection("Data Source = localhost;" & "Initial Catalog = Northwind; uid = user_name;" & "password = user_password") Data Source = \\PowerServer Data Source = " ; Initial Catalog = BooksDB; uid = xxx; password= xxx" Kasun@sjp.ac.lk 4

5 Try CN.Open() SqlConnection.. If CN.State = ConnectionState.Open Then MsgBox("Workstation " & CN.WorkstationId & " connected to database " & CN.Database & " on the " & CN.DataSource & " server") End If Catch ex As Exception MsgBox("FAILED TO OPEN CONNECTION TO DATABASE DUE TO THE FOLLOWING ERROR" & vbcrlf & ex.message) End Try If CN.State = ConnectionState.Open Then CN.Close()

6 SqlDataAdapter Dim DA As New SqlDataAdapter

7 SqlCommand - Select Dim sqlcmdselect As New SqlCommand DA.SelectCommand = sqlcmdselect DA.SelectCommand.CommandText = "select * from stu where no= " & 123 & DA.SelectCommand.Connection = CN DA.Fill(DS, Student") DataGridView1.DataSource = DS.Tables( Student")

8 DataSet Dim DS As New DataSet TextBox1.Text = DS.Tables( Student").Rows(0)("No")

9 Multiple tables in Dataset CN.Open() CMD = New SqlCommand( Select * from stu, CN) DA.SelectCommand = CMD DA.Fill( DS, "Table1") DA.SelectCommand.CommandText = Select * from exam DA.Fill( DS, "Table2") adapter.dispose() CMD.Dispose() CN.Close() Kasun@sjp.ac.lk 9

10 SqlDataReader Dim DR As SqlDataReader DR = DA.SelectCommand.ExecuteReader() Do While DR.Read() Loop ListBox1.Items.Add(DR("name")) DR.Close() Kasun@sjp.ac.lk 10

11 SqlDataReader.. 11

12 SqlCommand - AddNew Dim sqlcmdaddnew As New SqlCommand DA.InsertCommand = sqlcmdaddnew DA.InsertCommand.CommandText = "insert into stu(no, Name) values('as ','kamal' )" DA.InsertCommand.Connection = CN DA.InsertCommand.ExecuteNonQuery()

13 SqlCommand - Update Dim sqlcmdupdate As New SqlCommand DA.UpdateCommand = sqlcmdupdate DA.UpdateCommand.CommandText = "update stu set name= Saman' where no = '300 " DA.UpdateCommand.Connection = CN DA.UpdateCommand.ExecuteNonQuery()

14 SqlCommand - Delete Dim sqlcmddalete As New SqlCommand DA.DeleteCommand = sqlcmddalete DA.DeleteCommand.CommandText = "Delete from stu where no = " & 300 & DA.DeleteCommand.Connection = CN DA.DeleteCommand.ExecuteNonQuery()

15 Sorting the Rows with ORDER BY USE Northwind SELECT CompanyName, ContactName, Country, City FROM Customers ORDER BY Country, City 15

16 Working with Calculated Fields USE Northwind SELECT Orders.OrderID, [Order Details].ProductID, [Order Details].[Order Details].UnitPrice * [Order Details].Quantity * (1 - [Order Details].Discount) AS SubTotal FROM Orders INNER JOIN [Order Details] ON Orders.OrderID = [Order Details].OrderID Kasun@sjp.ac.lk 16

17 Calculating Aggregates USE Northwind SELECT COUNT(CustomerID) FROM Customers WHERE Country = Germany Kasun@sjp.ac.lk 17

18 SQL s common aggregate functions Function Returns COUNT() SUM() AVG() MIN() MAX() The number (count) of values in a specified column The sum of values in a specified column The average of the values in a specified column The smallest value in a specified column The largest value in a specified column Kasun@sjp.ac.lk 18

19 USE Northwind SELECT COUNT(*) FROM Customers USE Northwind SELECT SUM(Quantity) FROM [Order Details] WHERE ProductID = 11 Kasun@sjp.ac.lk 19

20 USE Northwind SELECT SUM(Quantity * UnitPrice * (1 - Discount)) FROM [Order Details] WHERE ProductID = 11 USE Northwind SELECT SUM(Quantity), SUM(Quantity * UnitPrice * (1 - Discount)) FROM [Order Details] WHERE ProductID = 11 Kasun@sjp.ac.lk 20

21 Using SQL Joins Left outer, or left, join Right outer, or right, join Full outer, or full, join Inner join 21

22 Left Joins USE pubs SELECT title, pub_name FROM titles LEFT JOIN publishers ON titles.pub_id = publishers.pub_id Kasun@sjp.ac.lk 22

23 Right Joins USE pubs SELECT title, pub_name FROM titles RIGHT JOIN publishers ON titles.pub_id = publishers.pub_id Kasun@sjp.ac.lk 23

24 Full Joins USE pubs SELECT title, pub_name FROM titles FULL JOIN publishers ON titles.pub_id = publishers.pub_id Kasun@sjp.ac.lk 24

25 Inner Joins USE pubs SELECT titles.title, publishers.pub_name FROM titles, publishers WHERE titles.pub_id = publishers.pub_id Kasun@sjp.ac.lk 25

26 Grouping Rows USE Northwind SELECT ProductID, SUM(Quantity * UnitPrice *(1 - Discount)) AS [Total Revenues] FROM [Order Details] GROUP BY ProductID ORDER BY ProductID Kasun@sjp.ac.lk 26

27 Limiting Groups with HAVING USE NORTHWIND SELECT ProductID, SUM(Quantity) FROM [Order Details] GROUP BY ProductID HAVING SUM(Quantity) >

28 ACTION QUERIES 28

29 Deleting Rows DELETE table_name WHERE criteria DELETE Orders WHERE OrderDate < 1/1/1998 USE Northwind DELETE [Order Details] WHERE (OrderID IN ( SELECT OrderID FROM Orders WHERE (OrderDate < 1/1/1998 ))) DELETE Orders WHERE OrderDate < 1/1/1998 Kasun@sjp.ac.lk 29

30 Inserting New Rows INSERT table_name (column_names) VALUES (values) INSERT Customers (CustomerID, CompanyName) VALUES ( FRYOG, Fruit & Yogurt ) INSERT INTO SelectedProducts SELECT * FROM Products WHERE CategoryID = 4 Kasun@sjp.ac.lk 30

31 Editing Existing Rows UPDATE table_name SET field1 = value1, field2 = value2,... WHERE criteria UPDATE Customers SET Country= United Kingdom WHERE Country = UK Kasun@sjp.ac.lk 31

32 SHA1 Hashing Dim pwd As String = "your password" Dim bt() As Byte = System.Text.Encoding.Unicode.GetBytes(pwd) Dim sha1 As SHA1 = sha1.create() Dim hashedpassword As Byte() = sha1.computehash( bt ) Console.WriteLine( System.Text.Encoding.ASCII.GetString ( hashedpassword ) ) Kasun@sjp.ac.lk 32

33 Reference Mastering VB.NET 2010 ebook WWW 33

SQL SELECT Query: Intermediate

SQL SELECT Query: Intermediate SQL SELECT Query: Intermediate IT 4153 Advanced Database J.G. Zheng Spring 2012 Overview SQL Select Expression Alias revisit Aggregate functions - complete Table join - complete Sub-query in where Limiting

More information

Database Query 1: SQL Basics

Database Query 1: SQL Basics Database Query 1: SQL Basics CIS 3730 Designing and Managing Data J.G. Zheng Fall 2010 1 Overview Using Structured Query Language (SQL) to get the data you want from relational databases Learning basic

More information

How To Create A Database In Araba

How To Create A Database In Araba create database ARABA use ARABA create table arac ( plaka varchar(15), marka varchar(15), model varchar(4)) create table musteri ( tck varchar(11), ad varchar(15), soy varchar(15)) drop table kiralama

More information

ASP.NET Programming with C# and SQL Server

ASP.NET Programming with C# and SQL Server ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET Objectives In this chapter, you will: Connect to SQL Server from ASP.NET Learn how to handle

More information

VB.NET - DATABASE ACCESS

VB.NET - DATABASE ACCESS VB.NET - DATABASE ACCESS http://www.tutorialspoint.com/vb.net/vb.net_database_access.htm Copyright tutorialspoint.com Applications communicate with a database, firstly, to retrieve the data stored there

More information

Joining Tables in Queries

Joining Tables in Queries Joining Tables in Queries 1 Objectives You will be able to Write SQL queries that use Join operations to retrieve information from multiple tables. 2 Retrieving from Multiple Tables We often need to retrieve

More information

1.Tüm Kayıtları Getirme - Arama Yapma

1.Tüm Kayıtları Getirme - Arama Yapma 1.Tüm Kayıtları Getirme - Arama Yapma using System.Data.SqlClient; namespace Uygulama1 Burs public partial class Form1 : Form public Form1() InitializeComponent(); string sorgu; private void button1_click(object

More information

How To: Create a Crystal Report from ADO.NET Dataset using Visual Basic.NET

How To: Create a Crystal Report from ADO.NET Dataset using Visual Basic.NET How To: Create a Crystal Report from ADO.NET Dataset using Visual Basic.NET See also: http://support.businessobjects.com/communitycs/technicalpapers/rtm_reporting offadonetdatasets.pdf http://www.businessobjects.com/products/dev_zone/net_walkthroughs.asp

More information

QWT Business Intelligence Project Plan

QWT Business Intelligence Project Plan QWT Business Intelligence Project Plan Date: 4/28/05 Version: 1.0.7.0 Author: qwt Table of Contents 1 QWT Business Intelligence Project Requirements... 3 1.1 Key Measures...4 1.2 Key Performance Indicators...5

More information

Database Administration with MySQL

Database Administration with MySQL Database Administration with MySQL Suitable For: Database administrators and system administrators who need to manage MySQL based services. Prerequisites: Practical knowledge of SQL Some knowledge of relational

More information

In-Depth Guide Advanced Database Concepts

In-Depth Guide Advanced Database Concepts In-Depth Guide Advanced Database Concepts Learning Objectives By reading and completing the activities in this chapter, you will be able to: Retrieve specified records from a database using Query by Example

More information

VBScript Database Tutorial Part 1

VBScript Database Tutorial Part 1 VBScript Part 1 Probably the most popular use for ASP scripting is connections to databases. It's incredibly useful and surprisingly easy to do. The first thing you need is the database, of course. A variety

More information

Beginning C# 5.0. Databases. Vidya Vrat Agarwal. Second Edition

Beginning C# 5.0. Databases. Vidya Vrat Agarwal. Second Edition Beginning C# 5.0 Databases Second Edition Vidya Vrat Agarwal Contents J About the Author About the Technical Reviewer Acknowledgments Introduction xviii xix xx xxi Part I: Understanding Tools and Fundamentals

More information

1 Structured Query Language: Again. 2 Joining Tables

1 Structured Query Language: Again. 2 Joining Tables 1 Structured Query Language: Again So far we ve only seen the basic features of SQL. More often than not, you can get away with just using the basic SELECT, INSERT, UPDATE, or DELETE statements. Sometimes

More information

Hi, processing. Code of the vb.net version. Imports System.Data Imports System.Data.SqlClient

Hi, processing. Code of the vb.net version. Imports System.Data Imports System.Data.SqlClient Hi, I m looking for someone with knowledge in ASP.net or (PHP?). I represent a nonprofit organization that named Ateljee (http://www.uwkringwinkel.be). We have a small application we use for registration

More information

AD A O.N. ET E Access Data Object

AD A O.N. ET E Access Data Object ADO.NET Access Data Object ADO.NET Conjunto de classes que permitem o acesso à base de dados. Dois cenários: Connected Os dados provenientes da base de dados são obtidos a partir de uma ligação que se

More information

Global Search Developers Guide. Rev 2.7.5

Global Search Developers Guide. Rev 2.7.5 Rev 2.7.5 20 th October 2005 Introduction The goal of the IntraNomic Global Search module is to allow you to retrieve information from anywhere within your organization (e.g. a true organization wide search).

More information

Relational Database: Additional Operations on Relations; SQL

Relational Database: Additional Operations on Relations; SQL Relational Database: Additional Operations on Relations; SQL Greg Plaxton Theory in Programming Practice, Fall 2005 Department of Computer Science University of Texas at Austin Overview The course packet

More information

Aplicação ASP.NET MVC 4 Usando Banco de Dados

Aplicação ASP.NET MVC 4 Usando Banco de Dados Aplicação ASP.NET MVC 4 Usando Banco de Dados Neste exemplo simples, vamos desenvolver uma aplicação ASP.NET MVC para acessar o banco de dados Northwind, que está armazenado no servidor SQL Server e, listar

More information

A Tutorial on SQL Server 2005. CMPT 354 Fall 2007

A Tutorial on SQL Server 2005. CMPT 354 Fall 2007 A Tutorial on SQL Server 2005 CMPT 354 Fall 2007 Road Map Create Database Objects Create a database Create a table Set a constraint Create a view Create a user Query Manage the Data Import data Export

More information

SQL - QUICK GUIDE. Allows users to access data in relational database management systems.

SQL - QUICK GUIDE. Allows users to access data in relational database management systems. http://www.tutorialspoint.com/sql/sql-quick-guide.htm SQL - QUICK GUIDE Copyright tutorialspoint.com What is SQL? SQL is Structured Query Language, which is a computer language for storing, manipulating

More information

5 Airport. Chapter 5: Airport 49. Right-click on Data Connections, then select Add Connection.

5 Airport. Chapter 5: Airport 49. Right-click on Data Connections, then select Add Connection. Chapter 5: Airport 49 5 Airport Most practical applications in C# require data to be stored in a database and accessed by the program. We will examine how this is done by setting up a small database of

More information

SQL injection attacks SQL injection user input SQL injection SQL Command parameters Database account. SQL injection attacks Data Code

SQL injection attacks SQL injection user input SQL injection SQL Command parameters Database account. SQL injection attacks Data Code SQL Injection Attack SQL injection attacks SQL injection user input SQL injection SQL Command parameters Database account Login page application database over-privileged account database Attacker SQL injection

More information

Conexión SQL Server C#

Conexión SQL Server C# Conexión SQL Server C# Form1.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

More information

SQL. by Steven Holzner, Ph.D. ALPHA. A member of Penguin Group (USA) Inc.

SQL. by Steven Holzner, Ph.D. ALPHA. A member of Penguin Group (USA) Inc. SQL by Steven Holzner, Ph.D. A ALPHA A member of Penguin Group (USA) Inc. Contents Part 1: Mastering the SQL Basics 1 1 Getting into SQL 3 Understanding Databases 4 Creating Tables Creating Rows and Columns

More information

Module 9: Implementing Stored Procedures

Module 9: Implementing Stored Procedures Module 9: Implementing Stored Procedures Overview Introduction to Stored Procedures Creating Executing Modifying Dropping Using Parameters in Stored Procedures Executing Extended Stored Procedures Handling

More information

Efficient Data Access and Data Integration Using Information Objects Mica J. Block

Efficient Data Access and Data Integration Using Information Objects Mica J. Block Efficient Data Access and Data Integration Using Information Objects Mica J. Block Director, ACES Actuate Corporation mblock@actuate.com Agenda Information Objects Overview Best practices Modeling Security

More information

Database Communica/on in Visual Studio/C# using Web Services. Hans- Pe=er Halvorsen, M.Sc.

Database Communica/on in Visual Studio/C# using Web Services. Hans- Pe=er Halvorsen, M.Sc. Database Communica/on in Visual Studio/C# using Web Services Hans- Pe=er Halvorsen, M.Sc. Background We will use Web Services because we assume that the the App should be used on Internet outside the Firewall).

More information

ENHANCEMENTS TO SQL SERVER COLUMN STORES. Anuhya Mallempati #2610771

ENHANCEMENTS TO SQL SERVER COLUMN STORES. Anuhya Mallempati #2610771 ENHANCEMENTS TO SQL SERVER COLUMN STORES Anuhya Mallempati #2610771 CONTENTS Abstract Introduction Column store indexes Batch mode processing Other Enhancements Conclusion ABSTRACT SQL server introduced

More information

Mastering Visual Basic.NET Database Programming Evangelos Petroutsos; Asli Bilgin

Mastering Visual Basic.NET Database Programming Evangelos Petroutsos; Asli Bilgin SYBEX Sample Chapter Mastering Visual Basic.NET Database Programming Evangelos Petroutsos; Asli Bilgin Chapter 6: A First Look at ADO.NET Copyright 2002 SYBEX Inc., 1151 Marina Village Parkway, Alameda,

More information

Oracle Application Express - Application Migration Workshop

Oracle Application Express - Application Migration Workshop Oracle Application Express - Application Migration Workshop Microsoft Access Northwind Traders Migration to Oracle Application Express An Oracle White Paper May 2007 Oracle Application Express Application

More information

Advantage Database Server

Advantage Database Server whitepaper Advantage Database Server Scalability Technical Brief A whitepaper from Sybase ianywhere TABLE OF CONTENTS 1 Introduction 2 Specifications 2 Tables 2 Server Machine 2 Client Machine 2 Development

More information

P_Id LastName FirstName Address City 1 Kumari Mounitha VPura Bangalore 2 Kumar Pranav Yelhanka Bangalore 3 Gubbi Sharan Hebbal Tumkur

P_Id LastName FirstName Address City 1 Kumari Mounitha VPura Bangalore 2 Kumar Pranav Yelhanka Bangalore 3 Gubbi Sharan Hebbal Tumkur SQL is a standard language for accessing and manipulating databases. What is SQL? SQL stands for Structured Query Language SQL lets you access and manipulate databases SQL is an ANSI (American National

More information

Database Communica/on in Visual Studio/C# using ASP.NET Web Forms. Hans- PeBer Halvorsen, M.Sc.

Database Communica/on in Visual Studio/C# using ASP.NET Web Forms. Hans- PeBer Halvorsen, M.Sc. Database Communica/on in Visual Studio/C# using ASP.NET Web Forms Hans- PeBer Halvorsen, M.Sc. Web Programming Hans- PeBer Halvorsen, M.Sc. Web is the Present and the Future 3 History of the Web Internet

More information

T-SQL STANDARD ELEMENTS

T-SQL STANDARD ELEMENTS T-SQL STANDARD ELEMENTS SLIDE Overview Types of commands and statement elements Basic SELECT statements Categories of T-SQL statements Data Manipulation Language (DML*) Statements for querying and modifying

More information

SQL 2: GETTING INFORMATION INTO A DATABASE. MIS2502 Data Analytics

SQL 2: GETTING INFORMATION INTO A DATABASE. MIS2502 Data Analytics SQL 2: GETTING INFORMATION INTO A DATABASE MIS2502 Data Analytics Our relational database A series of tables Linked together through primary/foreign key relationships To create a database We need to define

More information

Introduction to SAS ETL Studio

Introduction to SAS ETL Studio Introduction to SAS ETL Studio Krzysztof Dembczyński Institute of Computing Science Laboratory of Intelligent Decision Support Systems Politechnika Poznańska (Poznań University of Technology) Software

More information

Oracle Database: SQL and PL/SQL Fundamentals

Oracle Database: SQL and PL/SQL Fundamentals Oracle University Contact Us: 1.800.529.0165 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This course is designed to deliver the fundamentals of SQL and PL/SQL along

More information

In this session, we use the table ZZTELE with approx. 115,000 records for the examples. The primary key is defined on the columns NAME,VORNAME,STR

In this session, we use the table ZZTELE with approx. 115,000 records for the examples. The primary key is defined on the columns NAME,VORNAME,STR 1 2 2 3 In this session, we use the table ZZTELE with approx. 115,000 records for the examples. The primary key is defined on the columns NAME,VORNAME,STR The uniqueness of the primary key ensures that

More information

Evaluation of Expressions

Evaluation of Expressions Query Optimization Evaluation of Expressions Materialization: one operation at a time, materialize intermediate results for subsequent use Good for all situations Sum of costs of individual operations

More information

Business Intelligence. 11. SSIS, ETL January 2014.

Business Intelligence. 11. SSIS, ETL January 2014. Business Intelligence 11. SSIS, ETL January 2014. SQL Server Integration Services Poslovna inteligencija SQL Server Integration Services New project Integra on Services Project Data Sources new data source

More information

Talking to Databases: SQL for Designers

Talking to Databases: SQL for Designers Biography Sean Hedenskog Talking to Databases: SQL for Designers Sean Hedenskog Agent Instructor Macromedia Certified Master Instructor Macromedia Certified Developer ColdFusion / Dreamweaver Reside in

More information

Visual COBOL ASP.NET Shopping Cart Demonstration

Visual COBOL ASP.NET Shopping Cart Demonstration Visual COBOL ASP.NET Shopping Cart Demonstration Overview: The original application that was used as the model for this demonstration was the ASP.NET Commerce Starter Kit (CSVS) demo from Microsoft. The

More information

Execution Plans: The Secret to Query Tuning Success. MagicPASS January 2015

Execution Plans: The Secret to Query Tuning Success. MagicPASS January 2015 Execution Plans: The Secret to Query Tuning Success MagicPASS January 2015 Jes Schultz Borland plan? The following steps are being taken Parsing Compiling Optimizing In the optimizing phase An execution

More information

MS Enterprise Library 5.0 (Logging Application Block)

MS Enterprise Library 5.0 (Logging Application Block) International Journal of Scientific and Research Publications, Volume 4, Issue 8, August 2014 1 MS Enterprise Library 5.0 (Logging Application Block) Anubhav Tiwari * R&D Dept., Syscom Corporation Ltd.

More information

Oracle Database: SQL and PL/SQL Fundamentals NEW

Oracle Database: SQL and PL/SQL Fundamentals NEW Oracle University Contact Us: + 38516306373 Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training delivers the

More information

ICAB4136B Use structured query language to create database structures and manipulate data

ICAB4136B Use structured query language to create database structures and manipulate data ICAB4136B Use structured query language to create database structures and manipulate data Release: 1 ICAB4136B Use structured query language to create database structures and manipulate data Modification

More information

SQL INJECTION ATTACKS

SQL INJECTION ATTACKS 6 SQL INJECTION ATTACKS INFORMATION IN THIS CHAPTER What Is an SQL Injection Attack? Why Are SQL Injection Attacks So Successful? How to Protect Yourself from an SQL Injection Attack Cleaning Up the Database

More information

Expanded contents. Section 1. Chapter 2. The essence off ASP.NET web programming. An introduction to ASP.NET web programming

Expanded contents. Section 1. Chapter 2. The essence off ASP.NET web programming. An introduction to ASP.NET web programming TRAINING & REFERENCE murach's web programming with C# 2010 Anne Boehm Joel Murach Va. Mike Murach & Associates, Inc. I J) 1-800-221-5528 (559) 440-9071 Fax: (559) 44(M)963 murachbooks@murach.com www.murach.com

More information

Oracle Database: SQL and PL/SQL Fundamentals

Oracle Database: SQL and PL/SQL Fundamentals Oracle University Contact Us: +966 12 739 894 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training is designed to

More information

Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff

Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff D80198GC10 Oracle Database 12c SQL and Fundamentals Summary Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff Level Professional Delivery Method Instructor-led

More information

Server side scripting and databases

Server side scripting and databases Three components used in typical web application Server side scripting and databases How Web Applications interact with server side databases Browser Web server Database server Web server Web server Apache

More information

Access Queries (Office 2003)

Access Queries (Office 2003) Access Queries (Office 2003) Technical Support Services Office of Information Technology, West Virginia University OIT Help Desk 293-4444 x 1 oit.wvu.edu/support/training/classmat/db/ Instructor: Kathy

More information

QlikView 11.2 SR5 DIRECT DISCOVERY

QlikView 11.2 SR5 DIRECT DISCOVERY QlikView 11.2 SR5 DIRECT DISCOVERY FAQ and What s New Published: November, 2012 Version: 5.0 Last Updated: December, 2013 www.qlikview.com 1 What s New in Direct Discovery 11.2 SR5? Direct discovery in

More information

SYSMAC SCS V2.2 DATABASE

SYSMAC SCS V2.2 DATABASE SYSMAC SCS V2.2 DATABASE OMRON ETC - UK Cx-Supervisor www.infoplc.net Technical Note Reference Number: 514-TN-002 Prepared by: Phil Carroll Issue: 1 Date: 8 th July 1999 Distribution: Internal External

More information

SIMIAN systems. Sitellite LDAP Administrator Guide. Sitellite Enterprise Edition

SIMIAN systems. Sitellite LDAP Administrator Guide. Sitellite Enterprise Edition Sitellite LDAP Administrator Guide Sitellite Enterprise Edition Environment In order for the Sitellite LDAP driver to work, PHP must be compiled with its LDAP extension enabled. Instructions on installing

More information

Access Data Object (cont.)

Access Data Object (cont.) ADO.NET Access Data Object (cont.) What is a Dataset? DataTable DataSet DataTable DataTable SqlDataAdapter SqlConnection OleDbDataAdapter Web server memory Physical storage SQL Server 2000 OleDbConnection

More information

Web Application Disassembly with ODBC Error Messages By David Litchfield Director of Security Architecture @stake http://www.atstake.

Web Application Disassembly with ODBC Error Messages By David Litchfield Director of Security Architecture @stake http://www.atstake. Web Application Disassembly with ODBC Error Messages By David Litchfield Director of Security Architecture @stake http://www.atstake.com Introduction This document describes how to subvert the security

More information

White Paper. PiLab Technology Performance Test, Deep Queries. pilab.pl

White Paper. PiLab Technology Performance Test, Deep Queries. pilab.pl White Paper PiLab Technology Performance Test, Deep Queries pilab.pl Table of Content Forward... 3 Summary of Results... 3 Technical Introduction... 3 Hardware... 4 Disk read/write speed... 4 Network speed

More information

ADOBE READER AND ACROBAT

ADOBE READER AND ACROBAT ADOBE READER AND ACROBAT IFILTER CONFIGURATION Table of Contents Table of Contents... 1 Overview of PDF ifilter 11 for 64-bit platforms... 3 Installation... 3 Installing Adobe PDF IFilter... 3 Setting

More information

Essentials of SQL. Essential SQL 11/06/2010. NWeHealth, The University of Manchester

Essentials of SQL. Essential SQL 11/06/2010. NWeHealth, The University of Manchester NWeHealth, The University of Manchester Essentials of SQL Exercise Booklet WITH ANSWERS Queries modified from various internet resources including SQLZoo.net Dr. Georgina Moulton Education and Development

More information

CHAPTER 2 DATABASE MANAGEMENT SYSTEM AND SECURITY

CHAPTER 2 DATABASE MANAGEMENT SYSTEM AND SECURITY CHAPTER 2 DATABASE MANAGEMENT SYSTEM AND SECURITY 2.1 Introduction In this chapter, I am going to introduce Database Management Systems (DBMS) and the Structured Query Language (SQL), its syntax and usage.

More information

Creating Reports Using Crystal Reports

Creating Reports Using Crystal Reports Creating Reports Using Crystal Reports Creating Reports Using Crystal Reports Objectives Learn how to create reports for Visual Studio.NET applications. Use the Crystal Reports designer to lay out report

More information

TrendWorX32 SQL Query Engine V9.2 Beta III

TrendWorX32 SQL Query Engine V9.2 Beta III TrendWorX32 SQL Query Engine V9.2 Beta III Documentation (Preliminary November 2009) OPC Automation at your fingertips 1. Introduction TrendWorX32 Logger logs data to a database. You can use the TrendWorX32

More information

Using IRDB in a Dot Net Project

Using IRDB in a Dot Net Project Note: In this document we will be using the term IRDB as a short alias for InMemory.Net. Using IRDB in a Dot Net Project ODBC Driver A 32-bit odbc driver is installed as part of the server installation.

More information

Fundamentals of Database System

Fundamentals of Database System Fundamentals of Database System Chapter 4 Normalization Fundamentals of Database Systems (Chapter 4) Page 1 Introduction To Normalization In general, the goal of a relational database design is to generate

More information

Advanced Query for Query Developers

Advanced Query for Query Developers for Developers This is a training guide to step you through the advanced functions of in NUFinancials. is an ad-hoc reporting tool that allows you to retrieve data that is stored in the NUFinancials application.

More information

SQL Injection. The ability to inject SQL commands into the database engine through an existing application

SQL Injection. The ability to inject SQL commands into the database engine through an existing application SQL Injection The ability to inject SQL commands into the database engine through an existing application 1 What is SQL? SQL stands for Structured Query Language Allows us to access a database ANSI and

More information

Getting Started with SandStorm NoSQL Benchmark

Getting Started with SandStorm NoSQL Benchmark Getting Started with SandStorm NoSQL Benchmark SandStorm is an enterprise performance testing tool for web, mobile, cloud and big data applications. It provides a framework for benchmarking NoSQL, Hadoop,

More information

Introduction to Microsoft Jet SQL

Introduction to Microsoft Jet SQL Introduction to Microsoft Jet SQL Microsoft Jet SQL is a relational database language based on the SQL 1989 standard of the American Standards Institute (ANSI). Microsoft Jet SQL contains two kinds of

More information

CSI 2132 Lab 3. Outline 09/02/2012. More on SQL. Destroying and Altering Relations. Exercise: DROP TABLE ALTER TABLE SELECT

CSI 2132 Lab 3. Outline 09/02/2012. More on SQL. Destroying and Altering Relations. Exercise: DROP TABLE ALTER TABLE SELECT CSI 2132 Lab 3 More on SQL 1 Outline Destroying and Altering Relations DROP TABLE ALTER TABLE SELECT Exercise: Inserting more data into previous tables Single-table queries Multiple-table queries 2 1 Destroying

More information

Financial Data Access with SQL, Excel & VBA

Financial Data Access with SQL, Excel & VBA Computational Finance and Risk Management Financial Data Access with SQL, Excel & VBA Guy Yollin Instructor, Applied Mathematics University of Washington Guy Yollin (Copyright 2012) Data Access with SQL,

More information

Title. Syntax. stata.com. odbc Load, write, or view data from ODBC sources. List ODBC sources to which Stata can connect odbc list

Title. Syntax. stata.com. odbc Load, write, or view data from ODBC sources. List ODBC sources to which Stata can connect odbc list Title stata.com odbc Load, write, or view data from ODBC sources Syntax Menu Description Options Remarks and examples Also see Syntax List ODBC sources to which Stata can connect odbc list Retrieve available

More information

SQL. Short introduction

SQL. Short introduction SQL Short introduction 1 Overview SQL, which stands for Structured Query Language, is used to communicate with a database. Through SQL one can create, manipulate, query and delete tables and contents.

More information

Course ID#: 1401-801-14-W 35 Hrs. Course Content

Course ID#: 1401-801-14-W 35 Hrs. Course Content Course Content Course Description: This 5-day instructor led course provides students with the technical skills required to write basic Transact- SQL queries for Microsoft SQL Server 2014. This course

More information

Virtuoso Replication and Synchronization Services

Virtuoso Replication and Synchronization Services Virtuoso Replication and Synchronization Services Abstract Database Replication and Synchronization are often considered arcane subjects, and the sole province of the DBA (database administrator). However,

More information

One method for batch DHI data import into SQL-Server. A batch data import technique for DateSet based on.net Liang Shi and Wenxing Bao

One method for batch DHI data import into SQL-Server. A batch data import technique for DateSet based on.net Liang Shi and Wenxing Bao One method for batch DHI data import into SQL-Server A batch data import technique for DateSet based on.net Liang Shi and Wenxing Bao School of Computer Science and Engineering, Beifang University for

More information

Introduction to SQL and SQL in R. LISA Short Courses Xinran Hu

Introduction to SQL and SQL in R. LISA Short Courses Xinran Hu Introduction to SQL and SQL in R LISA Short Courses Xinran Hu 1 Laboratory for Interdisciplinary Statistical Analysis LISA helps VT researchers benefit from the use of Statistics Collaboration: Visit our

More information

Deleting A Record... 26 Updating the Database... 27 Binding Data Tables to Controls... 27 Binding the Data Table to the Data Grid View...

Deleting A Record... 26 Updating the Database... 27 Binding Data Tables to Controls... 27 Binding the Data Table to the Data Grid View... 1 Table of Contents Chapter 9...4 Database and ADO.NET...4 9.1 Introduction to Database...4 Table Definitions...4 DDL and DML...5 Indexes, the Primary Key, and the Foreign Key...5 Index Uniqueness...5

More information

Oracle SQL. Course Summary. Duration. Objectives

Oracle SQL. Course Summary. Duration. Objectives Oracle SQL Course Summary Identify the major structural components of the Oracle Database 11g Create reports of aggregated data Write SELECT statements that include queries Retrieve row and column data

More information

Course 20461C: Querying Microsoft SQL Server Duration: 35 hours

Course 20461C: Querying Microsoft SQL Server Duration: 35 hours Course 20461C: Querying Microsoft SQL Server Duration: 35 hours About this Course This course is the foundation for all SQL Server-related disciplines; namely, Database Administration, Database Development

More information

DBMS / Business Intelligence, SQL Server

DBMS / Business Intelligence, SQL Server DBMS / Business Intelligence, SQL Server Orsys, with 30 years of experience, is providing high quality, independant State of the Art seminars and hands-on courses corresponding to the needs of IT professionals.

More information

Towards Fast SQL Query Processing in DB2 BLU Using GPUs A Technology Demonstration. Sina Meraji sinamera@ca.ibm.com

Towards Fast SQL Query Processing in DB2 BLU Using GPUs A Technology Demonstration. Sina Meraji sinamera@ca.ibm.com Towards Fast SQL Query Processing in DB2 BLU Using GPUs A Technology Demonstration Sina Meraji sinamera@ca.ibm.com Please Note IBM s statements regarding its plans, directions, and intent are subject to

More information

AUTHENTICATION... 2 Step 1:Set up your LDAP server... 2 Step 2: Set up your username... 4 WRITEBACK REPORT... 8 Step 1: Table structures...

AUTHENTICATION... 2 Step 1:Set up your LDAP server... 2 Step 2: Set up your username... 4 WRITEBACK REPORT... 8 Step 1: Table structures... AUTHENTICATION... 2 Step 1:Set up your LDAP server... 2 Step 2: Set up your username... 4 WRITEBACK REPORT... 8 Step 1: Table structures... 8 Step 2: Import Tables into BI Admin.... 9 Step 3: Creating

More information

How to Connect to CDL SQL Server Database via Internet

How to Connect to CDL SQL Server Database via Internet How to Connect to CDL SQL Server Database via Internet There are several different methods available for connecting to the CDL SQL Server. Microsoft Windows has built in tools that are very easy to implement

More information

Structured Query Language (SQL)

Structured Query Language (SQL) Objectives of SQL Structured Query Language (SQL) o Ideally, database language should allow user to: create the database and relation structures; perform insertion, modification, deletion of data from

More information

Database: SQL, MySQL

Database: SQL, MySQL Database: SQL, MySQL Outline 8.1 Introduction 8.2 Relational Database Model 8.3 Relational Database Overview: Books.mdb Database 8.4 SQL (Structured Query Language) 8.4.1 Basic SELECT Query 8.4.2 WHERE

More information

Querying Microsoft SQL Server

Querying Microsoft SQL Server Course 20461C: Querying Microsoft SQL Server Module 1: Introduction to Microsoft SQL Server 2014 This module introduces the SQL Server platform and major tools. It discusses editions, versions, tools used

More information

Lab # 5. Retreiving Data from Multiple Tables. Eng. Alaa O Shama

Lab # 5. Retreiving Data from Multiple Tables. Eng. Alaa O Shama The Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4113: Database Lab Lab # 5 Retreiving Data from Multiple Tables Eng. Alaa O Shama November, 2015 Objectives:

More information

Creating QBE Queries in Microsoft SQL Server

Creating QBE Queries in Microsoft SQL Server Creating QBE Queries in Microsoft SQL Server When you ask SQL Server or any other DBMS (including Access) a question about the data in a database, the question is called a query. A query is simply a question

More information

SQL Server. 2012 for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach

SQL Server. 2012 for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach TRAINING & REFERENCE murach's SQL Server 2012 for developers Bryan Syverson Joel Murach Mike Murach & Associates, Inc. 4340 N. Knoll Ave. Fresno, CA 93722 www.murach.com murachbooks@murach.com Expanded

More information

Advanced Transact-SQL for SQL Server 2000 Practical T-SQL solutions (with code) to common problems

Advanced Transact-SQL for SQL Server 2000 Practical T-SQL solutions (with code) to common problems Apress Books for Professionals by Professionals Sample Chapter: "Tips and Tricks" (pre-production "galley" stage) Advanced Transact-SQL for SQL Server 2000 Practical T-SQL solutions (with code) to common

More information

Using AND in a Query: Step 1: Open Query Design

Using AND in a Query: Step 1: Open Query Design Using AND in a Query: Step 1: Open Query Design From the Database window, choose Query on the Objects bar. The list of saved queries is displayed, as shown in this figure. Click the Design button. The

More information

Kaseya 2. Quick Start Guide. for VSA 6.3

Kaseya 2. Quick Start Guide. for VSA 6.3 Kaseya 2 Custom Reports Quick Start Guide for VSA 6.3 December 9, 2013 Agreement The purchase and use of all Software and Services is subject to the Agreement as defined in Kaseya s Click-Accept EULA as

More information

Database Linker Tutorial

Database Linker Tutorial Database Linker Tutorial 1 Overview 1.1 Utility to Connect MindManager 8 to Data Sources MindManager 8 introduces the built-in ability to automatically map data contained in a database, allowing you to

More information

Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification

Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5 Outline More Complex SQL Retrieval Queries

More information

Chapter 22 Database: SQL, MySQL,

Chapter 22 Database: SQL, MySQL, Chapter 22 Database: SQL, MySQL, DBI and ADO.NET Outline 22.1 Introduction 22.2 Relational Database Model 22.3 Relational Database Overview: Books.mdb Database 22.4 SQL (Structured Query Language) 22.4.1

More information

Data Mining Commonly Used SQL Statements

Data Mining Commonly Used SQL Statements Description: Guide to some commonly used SQL OS Requirement: Win 2000 Pro/Server, XP Pro, Server 2003 General Requirement: You will need a Relational Database (SQL server, MSDE, Access, Oracle, etc), Installation

More information

DIPLOMA IN WEBDEVELOPMENT

DIPLOMA IN WEBDEVELOPMENT DIPLOMA IN WEBDEVELOPMENT Prerequisite skills Basic programming knowledge on C Language or Core Java is must. # Module 1 Basics and introduction to HTML Basic HTML training. Different HTML elements, tags

More information

Database 10g Edition: All possible 10g features, either bundled or available at additional cost.

Database 10g Edition: All possible 10g features, either bundled or available at additional cost. Concepts Oracle Corporation offers a wide variety of products. The Oracle Database 10g, the product this exam focuses on, is the centerpiece of the Oracle product set. The "g" in "10g" stands for the Grid

More information