19.5 ADO.NET Object Models

Size: px
Start display at page:

Download "19.5 ADO.NET Object Models"

Transcription

1 Ordering information: Visual Basic.NET How to Program 2/e The Complete Visual Basic.NET Training Course DEITEL TM on InformIT: Sign up for the DEITEL BUZZ ONLINE newsletter: DEITEL TM instructor-led training at your site: [Authors Note: This article is an excerpt from Chapter 19, Sections 19.5 and 19.6 of Visual Basic.NET How to Program.] 19.5 ADO.NET Object Models The ADO.NET object model provides an API for accessing database systems programmatically. ADO.NET was created for the.net framework and is the next generation of ActiveX Data Objects (ADO), which was implemented with Microsoft s Component Object Model (COM) framework. The primary ADO.NET namespaces are System.Data, System.Data.OleDb and System.Data.SqlClient. These namespaces contain classes for working with databases and other types of data sources (such as, XML files). Namespace System.Data is the root namespace for the ADO.NET API. Namespaces System.Data.OleDb and System.Data.SqlClient contain classes that enable programs to connect with and modify data sources. Namespace System.Data.OleDb contains classes that are designed to work with any data source, whereas the System.Data.SqlClient namespace contains classes that are optimized to work with Microsoft SQL Server 2000 databases. Instances of class System.Data.DataSet, which consist of a set of Data- Tables and relationships among those DataTables, represent a cache of data data that a program stores temporarily in local memory. The structure of a DataSet mimics the structure of a relational database. An advantage of using class DataSet is that it is disconnected the program does not require a persistent connection to the data source to work with data in a DataSet. The program connects to the data source only during the initial population of the DataSet, then reconnects to store any changes made in the DataSet. Hence, the program does not require an active, permanent connection to the data source. An instance of class OleDbConnection of namespace System.Data.OleDb represents a connection to a data source. An instance of class OleDbDataAdapter connects to a data source through an instance of class OleDbConnection. An OleDb- DataAdapter object populates a DataSet with data from a data source. An instance of class OleDbCommand of namespace System.Data.OleDb represents an arbitrary SQL command to be executed on a data source. A program can use instances of class OleDbCommand to manipulate a data source through an OleDbConnection. The programmer must close the active connection to the data source explicitly when no further changes are to be made. Unlike DataSets, OleDbCommand objects do not cache data in local memory Programming with ADO.NET: Extracting Information from a Database This section presents an example that introduces how to connect to a database, query the database and display the results of the query. The database we use in these examples is a Microsoft Access database called Books (described in the appendix to this article). Every program that uses this database must reference the database s location. Before compiling and running this example, readers must change lines to update the database location on their computers, such that the code specifies the correct location for the database file.

2 Chapter 19 Database, SQL and ADO.NET Connecting to and Querying an Access Data Source The example of Fig performs a simple query on the Books database that retrieves the complete contents of the Authors table and displays the data in a DataGrid (a component from namespace System.Windows.Forms that can display a data source in a GUI). The program connects to the database, queries the database and displays the results. The discussion that follows the example presents the key aspects of the program. [Note: We present the complete Microsoft Visual Studio auto-generated code in Fig so that readers can see the database and GUI code Visual Studio creates for this example.] 1 ' Fig : DisplayTable.vb 2 ' Displaying data from a database table. 3 4 Public Class FrmTableDisplay 5 Inherits System.Windows.Forms.Form 6 7 #Region " Windows Form Designer generated code " 8 9 Public Sub New() 10 MyBase.New() ' This call is required by the Windows Form Designer. 13 InitializeComponent() ' Add any initialization after the 16 ' InitializeComponent call ' fill DataSet1 with data 19 OleDbDataAdapter1.Fill(DataSet1, "Authors") ' bind data in Users table in dataset1 to dgdauthors 22 dgdauthors.setdatabinding(dataset1, "Authors") 23 End Sub ' New ' Form overrides dispose to clean up the component list. 26 Protected Overloads Overrides Sub Dispose( _ 27 ByVal disposing As Boolean) If disposing Then 30 If Not (components Is Nothing) Then 31 components.dispose() 32 End If 33 End If 34 MyBase.Dispose(disposing) 35 End Sub ' Dispose Friend WithEvents dgdauthors As System.Windows.Forms.DataGrid 38 Friend WithEvents OleDbSelectCommand1 As _ 39 System.Data.OleDb.OleDbCommand Friend WithEvents OleDbInsertCommand1 As _ 42 System.Data.OleDb.OleDbCommand Fig Database access and information display (part 1 of 7).

3 3 Database, SQL and ADO.NET Chapter Friend WithEvents OleDbUpdateCommand1 As _ 45 System.Data.OleDb.OleDbCommand Friend WithEvents OleDbDeleteCommand1 As _ 48 System.Data.OleDb.OleDbCommand Friend WithEvents OleDbConnection1 As _ 51 System.Data.OleDb.OleDbConnection Friend WithEvents OleDbDataAdapter1 As _ 54 System.Data.OleDb.OleDbDataAdapter Friend WithEvents DataSet1 As System.Data.DataSet ' Required by the Windows Form Designer 59 Private components As System.ComponentModel.Container ' NOTE: The following procedure is required by the 62 ' Windows Form Designer 63 ' It can be modified using the Windows Form Designer. 64 ' Do not modify it using the code editor. 65 <System.Diagnostics.DebuggerStepThrough()> _ 66 Private Sub InitializeComponent() Me.dgdAuthors = New System.Windows.Forms.DataGrid() 69 Me.OleDbSelectCommand1 = _ 70 New System.Data.OleDb.OleDbCommand() Me.OleDbInsertCommand1 = _ 73 New System.Data.OleDb.OleDbCommand() Me.OleDbUpdateCommand1 = _ 76 New System.Data.OleDb.OleDbCommand() Me.OleDbDeleteCommand1 = _ 79 New System.Data.OleDb.OleDbCommand() Me.OleDbConnection1 = _ 82 New System.Data.OleDb.OleDbConnection() Me.OleDbDataAdapter1 = _ 85 New System.Data.OleDb.OleDbDataAdapter() Me.DataSet1 = New System.Data.DataSet() 88 CType(Me.dgdAuthors, _ 89 System.ComponentModel.ISupportInitialize).BeginInit() CType(Me.DataSet1, _ 92 System.ComponentModel.ISupportInitialize).BeginInit() Me.SuspendLayout() 95 Fig Database access and information display (part 2 of 7).

4 Chapter 19 Database, SQL and ADO.NET 4 96 ' 97 ' dgdauthors 98 ' 99 Me.dgdAuthors.DataMember = "" 100 Me.dgdAuthors.Location = New System.Drawing.Point(8, 8) 101 Me.dgdAuthors.Name = "dgdauthors" 102 Me.dgdAuthors.Size = New System.Drawing.Size(304, 256) 103 Me.dgdAuthors.TabIndex = ' 106 ' OleDbSelectCommand1 107 ' 108 Me.OleDbSelectCommand1.CommandText = _ 109 "SELECT authorid, firstname, lastname FROM Authors" Me.OleDbSelectCommand1.Connection = Me.OleDbConnection ' 114 ' OleDbInsertCommand1 115 ' 116 Me.OleDbInsertCommand1.CommandText = _ 117 "INSERT INTO Authors(authorID, firstname, lastname)" & _ 118 "VALUES (?,?,?)" Me.OleDbInsertCommand1.Connection = _ 121 Me.OleDbConnection Me.OleDbInsertCommand1.Parameters.Add _ 124 (New System.Data.OleDb.OleDbParameter("authorID", _ 125 System.Data.OleDb.OleDbType.Numeric, 0, _ 126 System.Data.ParameterDirection.Input, False, _ 127 CType(10, Byte), CType(0, Byte), "authorid", _ 128 System.Data.DataRowVersion.Current, Nothing)) Me.OleDbInsertCommand1.Parameters.Add _ 131 (New System.Data.OleDb.OleDbParameter("firstName", _ 132 System.Data.OleDb.OleDbType.Char, 50, _ 133 System.Data.ParameterDirection.Input, False, _ 134 CType(0, Byte), CType(0, Byte), "firstname", _ 135 System.Data.DataRowVersion.Current, Nothing)) Me.OleDbInsertCommand1.Parameters.Add _ 138 (New System.Data.OleDb.OleDbParameter("lastName", _ 139 System.Data.OleDb.OleDbType.Char, 50, _ 140 System.Data.ParameterDirection.Input, False, _ 141 CType(0, Byte), CType(0, Byte), "lastname", _ 142 System.Data.DataRowVersion.Current, Nothing)) ' 145 ' OleDbUpdateCommand1 146 ' 147 Me.OleDbUpdateCommand1.CommandText = _ 148 "UPDATE Authors SET authorid =?, firstname =?, " & _ Fig Database access and information display (part 3 of 7).

5 5 Database, SQL and ADO.NET Chapter "lastname =? WHERE (authorid =?)" & _ 150 " AND (firstname =?) AND (lastname =?)" Me.OleDbUpdateCommand1.Connection = Me.OleDbConnection1 153 Me.OleDbUpdateCommand1.Parameters.Add ( _ 154 New System.Data.OleDb.OleDbParameter("authorID", _ 155 System.Data.OleDb.OleDbType.Numeric, 0, _ 156 System.Data.ParameterDirection.Input, False, _ 157 CType(10, Byte), CType(0, Byte), "authorid", _ 158 System.Data.DataRowVersion.Current, Nothing)) Me.OleDbUpdateCommand1.Parameters.Add _ 161 (New System.Data.OleDb.OleDbParameter("firstName", _ 162 System.Data.OleDb.OleDbType.Char, 50, _ 163 System.Data.ParameterDirection.Input, False, _ 164 CType(0, Byte), CType(0, Byte), "firstname", _ 165 System.Data.DataRowVersion.Current, Nothing)) Me.OleDbUpdateCommand1.Parameters.Add _ 168 (New System.Data.OleDb.OleDbParameter("lastName", _ 169 System.Data.OleDb.OleDbType.Char, 50, _ 170 System.Data.ParameterDirection.Input, False, _ 171 CType(0, Byte), CType(0, Byte), "lastname", _ 172 System.Data.DataRowVersion.Current, Nothing)) Me.OleDbUpdateCommand1.Parameters.Add _ 175 (New System.Data.OleDb.OleDbParameter _ 176 ("Original_authorID", _ 177 System.Data.OleDb.OleDbType.Numeric, 0, _ 178 System.Data.ParameterDirection.Input, False, _ 179 CType(10, Byte), CType(0, Byte), "authorid", _ 180 System.Data.DataRowVersion.Original, Nothing)) Me.OleDbUpdateCommand1.Parameters.Add _ 183 (New System.Data.OleDb.OleDbParameter _ 184 ("Original_firstName", _ 185 System.Data.OleDb.OleDbType.Char, 50, _ 186 System.Data.ParameterDirection.Input, False, _ 187 CType(0, Byte), CType(0, Byte), "firstname", _ 188 System.Data.DataRowVersion.Original, Nothing)) Me.OleDbUpdateCommand1.Parameters.Add _ 191 (New System.Data.OleDb.OleDbParameter _ 192 ("Original_lastName", _ 193 System.Data.OleDb.OleDbType.Char, 50, _ 194 System.Data.ParameterDirection.Input, False, _ 195 CType(0, Byte), CType(0, Byte), "lastname", _ 196 System.Data.DataRowVersion.Original, Nothing)) ' 199 ' OleDbDeleteCommand1 200 ' 201 Me.OleDbDeleteCommand1.CommandText = _ Fig Database access and information display (part 4 of 7).

6 Chapter 19 Database, SQL and ADO.NET "DELETE FROM Authors WHERE (authorid =?) AND " & _ 203 "(firstname =?) AND (lastname =?)" Me.OleDbDeleteCommand1.Connection = Me.OleDbConnection1 206 Me.OleDbDeleteCommand1.Parameters.Add _ 207 (New System.Data.OleDb.OleDbParameter("authorID", _ 208 System.Data.OleDb.OleDbType.Numeric, 0, _ 209 System.Data.ParameterDirection.Input, False, _ 210 CType(10, Byte), CType(0, Byte), "authorid", _ 211 System.Data.DataRowVersion.Original, Nothing)) Me.OleDbDeleteCommand1.Parameters.Add _ 214 (New System.Data.OleDb.OleDbParameter("firstName", _ 215 System.Data.OleDb.OleDbType.Char, 50, _ 216 System.Data.ParameterDirection.Input, False, _ 217 CType(0, Byte), CType(0, Byte), "firstname", _ 218 System.Data.DataRowVersion.Original, Nothing)) Me.OleDbDeleteCommand1.Parameters.Add _ 221 (New System.Data.OleDb.OleDbParameter("lastName", _ 222 System.Data.OleDb.OleDbType.Char, 50, _ 223 System.Data.ParameterDirection.Input, False, _ 224 CType(0, Byte), CType(0, Byte), "lastname", _ 225 System.Data.DataRowVersion.Original, Nothing)) ' 228 'OleDbConnection1 229 ' 230 Me.OleDbConnection1.ConnectionString = _ 231 "Provider=Microsoft.Jet.OLEDB.4.0;Password="""";" & _ 232 "User ID=Admin;Data Source=C:\Documen" & _ 233 "ts and Settings\thiago\Desktop\vbhtp2e\examples\" & _ 234 "Ch19\Fig19_27\Books.mdb;Mode=Sha" & _ 235 "re Deny None;Extended Properties="""";" & _ 236 "Jet OLEDB:System database="""";jet OLEDB:Regis" & _ 237 "try Path="""";Jet OLEDB:Database Password="""";" & _ 238 "Jet OLEDB:Engine Type=5;Jet OLEDB:Dat" & _ 239 "abase Locking Mode=1;Jet OLEDB:Global Partial " & _ 240 "Bulk Ops=2;Jet OLEDB:Global Bulk T" & _ 241 "ransactions=1;jet OLEDB:New Database " & _ 242 "Password="""";Jet OLEDB:Create System Databas" & _ 243 "e=false;jet OLEDB:Encrypt Database=False;" & _ 244 "Jet OLEDB:Don't Copy Locale on Compact=" & _ 245 "False;Jet OLEDB:Compact Without Replica " & _ 246 "Repair=False;Jet OLEDB:SFP=False" ' 249 ' OleDbDataAdapter1 250 ' 251 Me.OleDbDataAdapter1.DeleteCommand = _ 252 Me.OleDbDeleteCommand1 253 Fig Database access and information display (part 5 of 7).

7 7 Database, SQL and ADO.NET Chapter Me.OleDbDataAdapter1.InsertCommand = _ 255 Me.OleDbInsertCommand Me.OleDbDataAdapter1.SelectCommand = _ 258 Me.OleDbSelectCommand Me.OleDbDataAdapter1.TableMappings.AddRange _ 261 (New System.Data.Common.DataTableMapping() _ 262 {New System.Data.Common.DataTableMapping("Table", _ 263 "Authors", New System.Data.Common.DataColumnMapping() _ 264 {New System.Data.Common.DataColumnMapping("authorID", _ 265 "authorid"), New System.Data.Common.DataColumnMapping _ 266 ("firstname", "firstname"), _ 267 New System.Data.Common.DataColumnMapping("lastName", _ 268 "lastname")})}) Me.OleDbDataAdapter1.UpdateCommand = _ 271 Me.OleDbUpdateCommand ' 274 ' DataSet1 275 ' 276 Me.DataSet1.DataSetName = "NewDataSet" 277 Me.DataSet1.Locale = _ 278 New System.Globalization.CultureInfo("en-US") ' 281 ' FrmTableDisplay 282 ' 283 Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13) 284 Me.ClientSize = New System.Drawing.Size(320, 273) 285 Me.Controls.AddRange(New System.Windows.Forms.Control() _ 286 {Me.dgdAuthors}) Me.Name = "FrmTableDisplay" 289 Me.Text = "Table Display" 290 CType(Me.dgdAuthors, System.ComponentModel. _ 291 ISupportInitialize).EndInit() CType(Me.DataSet1, System.ComponentModel. _ 294 ISupportInitialize).EndInit() Me.ResumeLayout(False) End Sub ' InitializeComponent #End Region End Class ' FrmTableDisplay Fig Database access and information display (part 6 of 7).

8 Chapter 19 Database, SQL and ADO.NET 8 Fig Database access and information display (part 7 of 7). Before compiling the example, the reader must register the Books database as a data source. In Visual Studio, right click the Data Connections node in the Server Explorer then click Add Connection. In the Provider tab of the window that appears, choose Microsoft Jet 4.0 OLE DB Provider the driver for Access databases. In the Connection tab, click the ellipses button ( ) to the right of the database name textbox to open the Select Access Database window. Locate the folder that contains the Books database, select the Books database and click OK. Then, click the Add Connection window s OK button. Now, the database is listed as a connection in the Server Explorer. Drag the Books database node from the Server Explorer onto the Windows Form. This creates an OleDbConnection to the source, which the Windows Form designer shows as OleDbConnection1. Next, drag an OleDbDataAdapter from the Toolbox s Data subheading onto the Windows Form designer. This displays the Data Adapter Configuration Wizard, which configures the OleDbDataAdapter instance with a custom query for populating a DataSet. Click Next to display a drop-down list of possible connections. Select the connection created in the previous step from the drop-down list and click Next. The resulting screen allows the reader to choose how the OleDbDataAdapter should access the database. Keep the default Use SQL Statement option and click Next. Click the Query Builder button, then select the Authors table from the Add menu then Close that menu. Place a check mark in the *All Columns box from the small Authors window. Click OK then click Finish. Next, we create a DataSet to store the query results. To do so, drag DataSet from the Data tab in the Toolbox onto the form. This displays the Add DataSet window. Choose the Untyped DataSet (no schema) the query with which we populate

9 9 Database, SQL and ADO.NET Chapter 19 the DataSet dictates the DataSet s schema, or structure (i.e., the tables that comprise the DataSet and the relationships among those tables). Finally, add DataGrid dgd- Authors to the Form. Figure includes all of the auto-generated code. Normally, we omit this code from examples, because this code consists solely of GUI components. In this case, however, we must discuss database functionality in the auto-generated code. Furthermore, we use Visual Studio s default naming conventions in this example to show exactly the code Visual Studio creates. Normally, we would change these names to conform to our programming conventions and style. Lines initialize the OleDbConnection for this program. Property ConnectionString specifies the path to the database file on the computer s hard drive. [Note: If you are using our example, you will need to update this string to specify the correct database location on your computer.] An instance of class OleDbDataAdapter populates the DataSet in this example with data from the Books database. The instance properties DeleteCommand (lines ), InsertCommand (lines ), SelectCommand (lines ) and UpdateCommand (lines ) are OleDbCommand objects that specify how the OleDbDataAdapter deletes, inserts, selects and updates data in the database. Each OleDbCommand object must have an OleDbConnection through which the OleDbCommand can communicate with the database. Property Connection is set to the OleDbConnection to the Books database. For OleDbUpdateCommand1, line 152 sets the Connection property, and lines set the CommandText. Although Visual Studio.NET generates most of this program s code, we manually enter code in the FrmTableDisplay constructor (lines 9 23) to populate dataset1 using an OleDbDataAdapter. Line 19 calls OleDbDataAdapter method Fill to retrieve information from the database associated with the OleDbConnection and to place this information in the given DataSet. The second argument to method Fill is a String that specifies the name of the database table from which to Fill the DataSet. Line 22 invokes DataGrid method SetDataBinding to bind the DataGrid to a data source. The first argument is the DataSet in this case, DataSet1 whose data the DataGrid should display. The second argument is a String that represents the name of the table within the data source that we want to bind to the DataGrid. Executing line 22 fills the DataGrid with the information in the DataSet. The information in DataSet1 is used to set the correct number of rows and columns in the DataGrid and to provide the columns with default names.

10 Chapter 19 Database, SQL and ADO.NET 10 APPENDIX: RELATIONAL DATABASE OVERVIEW: Books DATABASE This appendix overviews the tables of the Books database used in this article. The database consists of four tables: Authors, Publishers, AuthorISBN and Titles. The Authors table (described in Fig ) consists of three fields (or columns) that maintain each author s unique ID number, first name and last name. Field Description authorid firstname lastname Author s ID number in the database. In the Books database, this Integer field is defined as an auto-increment field. For each new record inserted in this table, the database increments the authorid value, ensuring that each record has a unique authorid. This field represents the table s primary key. Author s first name (a String). Author s last name (a String). Fig Authors table from Books. The Publishers table (Fig ) consists of two fields, representing each publisher s unique ID and name. Field Description publisherid publishername The publisher s ID number in the database. This auto-incremented Integer field is the table s primary-key field. The name of the publisher (a String). Fig Publishers table from Books. The AuthorISBN table (Fig ) consists of two fields, which maintain ISBNs for each book and their corresponding authors ID numbers. This table helps associate the names of the authors with the titles of their books. ISBN is an abbreviation for International Standard Book Number a numbering scheme by which publishers worldwide give every book a unique identification number. Field Description authorid isbn The author s ID number, which allows the database to associate each book with a specific author. The integer ID number in this field must also appear in the Authors table. The ISBN for a book (a String). Fig AuthorISBN table from Books.

11 11 Database, SQL and ADO.NET Chapter 19 The Titles table (Fig ) consists of seven fields, which maintain general information about the books in the database. This information includes each book s ISBN, title, edition number, copyright year and publisher s ID number, as well as the name of a file that contains an image of the book cover, and finally, each book s price. Field Description isbn title editionnumber copyright publisherid imagefile price ISBN of the book (a String). Title of the book (a String). Edition number of the book (a String). Copyright year of the book (an Integer). Publisher s ID number (an Integer). This value must correspond to an ID number in the Publishers table. Name of the file containing the book s cover image (a String). Suggested retail price of the book (a real number). [Note: The prices shown in this database are for example purposes only.] Fig Titles table from Books. Figure illustrates the relationships among the tables in the Books database. The first line in each table is the table s name. The field whose name appears in italics contains that table s primary key. A table s primary key uniquely identifies each record in the table. Every record must have a value in the primary-key field, and the value must be unique. This is known as the Rule of Entity Integrity. Note that the AuthorISBN table contains two fields whose names are italicized. This indicates that these two fields form a compound primary key each record in the table must have a unique authorid isbn combination. For example, several records might have an authorid of 2, and several records might have an isbn of , but only one record can have both an authorid of 2 and an isbn of Authors authorid firstname lastname AuthorISBN Titles 1 1 authorid isbn isbn Publishers publisherid publishername 1 title editionnumber copyright publisherid imagefile price Fig Table relationships in Books.

12 Chapter 19 Database, SQL and ADO.NET 12 Common Programming Error 19.1 Failure to provide a value for a primary-key field in every record breaks the Rule of Entity Integrity and causes the DBMS to report an error Common Programming Error 19.2 Providing duplicate values for the primary-key field in multiple records causes the database management system (DBMS) to report an error The lines that connect the tables in Fig represent the relationships among the tables. Consider the line between the Publishers and Titles tables. On the Publishers end of the line, there is a 1, and on the Titles end, there is an infinity ( ) symbol. This line indicates a one-to-many relationship, in which every publisher in the Publishers table can have one or more corresponding books in the Titles table. Note that the relationship line links the publisherid field in the Publishers table to the publisherid field in Titles table. In the Titles table, the publisherid field is a foreign key a field for which every entry has a unique value in another table and where the field in the other table is the primary key for that table (e.g., publisherid in the Publishers table). Programmers specify foreign keys when creating a table. The foreign key helps maintain the Rule of Referential Integrity: Every foreign-key field value must appear in another table s primary-key field. Foreign keys enable information from multiple tables to be joined together for analysis purposes. There is a one-to-many relationship between a primary key and its corresponding foreign key. This means that a foreignkey field value can appear many times in its own table, but must appear exactly once as the primary key of another table. The line between the tables represents the link between the foreign key in one table and the primary key in another table. Common Programming Error 19.3 Providing a foreign-key value that does not appear as a primary-key value in another table breaks the Rule of Referential Integrity and causes the DBMS to report an error The line between the AuthorISBN and Authors tables indicates that, for each author in the Authors table, there can be one or more corresponding ISBNs for books written by that author in the AuthorISBN table. The authorid field in the AuthorISBN table is a foreign key of the authorid field (the primary key) of the Authors table. Note, again, that the line between the tables links the foreign key in table AuthorISBN to the corresponding primary key in table Authors. The AuthorISBN table links information in the Titles and Authors tables. Finally, the line between the Titles and AuthorISBN tables illustrates a one-tomany relationship; a title can be written by any number of authors. In fact, the sole purpose of the AuthorISBN table is to represent a many-to-many relationship between the Authors and Titles tables; an author can write any number of books, and a book can have any number of authors.

Web Services in.net (2)

Web Services in.net (2) Web Services in.net (2) These slides are meant to be for teaching purposes only and only for the students that are registered in CSE4413 and should not be published as a book or in any form of commercial

More information

Database Programming in Visual Basic.NET

Database Programming in Visual Basic.NET Database Programming in Visual Basic.NET Basic Discussion of Databases What is a Database What is a DBMS? File/Relation/Table Record/Tuple Field/Attribute Key (Primary, Foreign, Composite) What is Metadata?

More information

Create a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1

Create a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1 Create a Windows Application that Reads- Writes PI Data via PI OLEDB Page 1 1.1 Create a Windows Application that Reads-Writes PI Data via PI OLEDB 1.1.1 Description The goal of this lab is to learn how

More information

A Programmer s Guide to ADO.NET in C# MAHESH CHAND

A Programmer s Guide to ADO.NET in C# MAHESH CHAND A Programmer s Guide to ADO.NET in C# MAHESH CHAND A Programmer s Guide to ADO.NET in C# Copyright 2002 by Mahesh Chand All rights reserved. No part of this work may be reproduced or transmitted in any

More information

NEAR EAST UNIVERSITY. Faculty of Computer Engineering

NEAR EAST UNIVERSITY. Faculty of Computer Engineering ~" NEAR EAST UNIVERSITY Faculty of Computer Engineering Department of Computer Engineering STUDENT REGISTRATION USING VB.NET PROGRAMMING LANGUAGE Graduating Project COM-400 Student: Serhat EROGLU Supervisor:

More information

.NET and DB2 united with IBM DB2.NET Data Provider Objectives :.NET ADO.NET DB2 and ADO.NET DB2 - ADO.NET applications

.NET and DB2 united with IBM DB2.NET Data Provider Objectives :.NET ADO.NET DB2 and ADO.NET DB2 - ADO.NET applications .NET and DB2 united with IBM DB2.NET Data Provider Objectives :.NET ADO.NET DB2 and ADO.NET DB2 - ADO.NET applications ABIS Training & Consulting 1 DEMO Win Forms client application queries DB2 according

More information

B Nagaraju

B Nagaraju Agenda What to expect in this session Complete ADO.NET Support available in.net Clear Conceptual View Supported by Demos Understand 3 generations of DataAccess.NET Around 9 minutes of videos Free Stuff

More information

An Introduction to ADO.Net

An Introduction to ADO.Net An Introduction to ADO.Net Mr. Amit Patel Dept. of I.T. .NET Data Providers Client SQL.NET Data Provider OLE DB.NET Data Provider ODBC.NET Data Provider OLE DB Provider ODBC Driver SQL SERVER Other DB

More information

BUILDING APPLICATIONS USING C# AND.NET FRAMEWORK (OBJECT-ORIENTED PROGRAMMING, X428.6)

BUILDING APPLICATIONS USING C# AND.NET FRAMEWORK (OBJECT-ORIENTED PROGRAMMING, X428.6) Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 7 Professional Program: Data Administration and Management BUILDING APPLICATIONS USING C# AND.NET FRAMEWORK (OBJECT-ORIENTED

More information

ADO.NET.NET Data Access and Manipulation Mechanism. Nikita Gandotra Assistant Professor, Department of Computer Science & IT

ADO.NET.NET Data Access and Manipulation Mechanism. Nikita Gandotra Assistant Professor, Department of Computer Science & IT ADO.NET.NET Data Access and Manipulation Mechanism Nikita Gandotra Assistant Professor, Department of Computer Science & IT Overview What is ADO.NET? ADO VS ADO.NET ADO.NET Architecture ADO.NET Core Objects

More information

Mobile MOUSe ADO.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE

Mobile MOUSe ADO.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE Mobile MOUSe ADO.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE COURSE TITLE ADO.NET FOR DEVELOPERS PART 1 COURSE DURATION 14 Hour(s) of Interactive Training COURSE OVERVIEW ADO.NET is Microsoft's latest

More information

Contents. Chapter 1 Introducing ADO.NET...1. Acknowledgments...xiii. About the Authors...xv. Introduction...xix

Contents. Chapter 1 Introducing ADO.NET...1. Acknowledgments...xiii. About the Authors...xv. Introduction...xix Acknowledgments...xiii About the Authors...xv Introduction...xix Chapter 1 Introducing ADO.NET...1 How We Got Here...2 What Do These Changes Mean?...5 ADO.NET A New Beginning...7 Comparing ADOc and ADO.NET...8

More information

Data Access Standards. ODBC, OLE DB, and ADO Introduction. History of ODBC. History of ODBC 4/24/2016

Data Access Standards. ODBC, OLE DB, and ADO Introduction. History of ODBC. History of ODBC 4/24/2016 Data Access Standards ODBC, OLE DB, and ADO Introduction I Gede Made Karma The reasons for ODBC, OLE DB, and ADO are to provide a standardized method and API for accessing and manipulating Data from different

More information

Building Datacentric Applications

Building Datacentric Applications Chapter 4 Building Datacentric Applications In this chapter: Application: Table Adapters and the BindingSource Class Application: Smart Tags for Data. Application: Parameterized Queries Application: Object

More information

Classes in C# namespace classtest { public class myclass { public myclass() { } } }

Classes in C# namespace classtest { public class myclass { public myclass() { } } } Classes in C# A class is of similar function to our previously used Active X components. The difference between the two is the components are registered with windows and can be shared by different applications,

More information

ADO.NET 2.0. database programming with

ADO.NET 2.0. database programming with TRAINING & REFERENCE murach s ADO.NET 2.0 database programming with (Chapter 3) VB 2005 Thanks for downloading this chapter from Murach s ADO.NET 2.0 Database Programming with VB 2005. We hope it will

More information

A201 Object Oriented Programming with Visual Basic.Net

A201 Object Oriented Programming with Visual Basic.Net A201 Object Oriented Programming with Visual Basic.Net By: Dr. Hossein Computer Science and Informatics IU South Bend 1 What do we need to learn in order to write computer programs? Fundamental programming

More information

ADO.NET Overview. Connected Architecture. SqlConnection, SqlCommand, DataReader class. Disconnected Architecture

ADO.NET Overview. Connected Architecture. SqlConnection, SqlCommand, DataReader class. Disconnected Architecture Topics Data is Everywhere ADO.NET Overview Connected Architecture EEE-474 DATABASE PROGRAMMİNG FOR İNTERNET INTRODUCTION TO ADO.NET Mustafa Öztoprak-2013514055 ASSOC.PROF.DR. TURGAY İBRİKÇİ ÇUKUROVA UNİVERSTY

More information

6.1 Understand Relational Database Management Systems

6.1 Understand Relational Database Management Systems L E S S O N 6 6.1 Understand Relational Database Management Systems 6.2 Understand Database Query Methods 6.3 Understand Database Connection Methods MTA Software Fundamentals 6 Test L E S S O N 6. 1 Understand

More information

PLATFORM TECHNOLOGY UNIT-4

PLATFORM TECHNOLOGY UNIT-4 VB.NET: Handling Exceptions Delegates and Events - Accessing Data ADO.NET Object Model-.NET Data Providers Direct Access to Data Accessing Data with Datasets. ADO.NET Object Model ADO.NET object model

More information

AUTHENTICATED WEB MANAGEMENT SYSTEM

AUTHENTICATED WEB MANAGEMENT SYSTEM AUTHENTICATED WEB MANAGEMENT SYSTEM Masters Project Report (CPEG 597) December 2005 Submitted to Prof. Ausif Mahmood ID. 655795 By Kavya P Basa 1 Abstract In an era where web development is taking priority

More information

Chapter 3. Windows Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 3. Windows Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 3 Windows Database Applications McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Objectives - 1 Retrieve and display data from a SQL Server database on Windows forms Use the

More information

About the Authors Introduction p. 1 Exploring Application Architectures p. 9 Introduction p. 9 Choosing the "Right" Architecture p.

About the Authors Introduction p. 1 Exploring Application Architectures p. 9 Introduction p. 9 Choosing the Right Architecture p. Foreword p. xxi Acknowledgments p. xxiii About the Authors p. xxv Introduction p. 1 Exploring Application Architectures p. 9 Introduction p. 9 Choosing the "Right" Architecture p. 10 Understanding Your

More information

It is the primary data access model for.net applications Next version of ADO Can be divided into two parts. Resides in System.

It is the primary data access model for.net applications Next version of ADO Can be divided into two parts. Resides in System. It is the primary data access model for.net applications Next version of ADO Can be divided into two parts Providers DataSets Resides in System.Data namespace It enables connection to the data source Each

More information

30. Structured Query Language (SQL)

30. Structured Query Language (SQL) 30. Structured Query Language (SQL) Java Fall 2009 Instructor: Dr. Masoud Yaghini Outline SQL query keywords Basic SELECT Query WHERE Clause ORDER BY Clause INNER JOIN Clause INSERT Statement UPDATE Statement

More information

C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies. Objectives (1 of 2)

C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies. Objectives (1 of 2) 13 Database Using Access ADO.NET C# Programming: From Problem Analysis to Program Design 2nd Edition David McDonald, Ph.D. Director of Emerging Technologies Objectives (1 of 2) Retrieve and display data

More information

CS313D: ADVANCED PROGRAMMING LANGUAGE

CS313D: ADVANCED PROGRAMMING LANGUAGE CS313D: ADVANCED PROGRAMMING LANGUAGE Computer Science department Lecture 11: Connection to Databases Lecture Contents 2 What is a database? Relational databases Cases study: A Books Database Querying

More information

Mobile MOUSe ASP.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE

Mobile MOUSe ASP.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE Mobile MOUSe ASP.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE COURSE TITLE ASP.NET FOR DEVELOPERS PART 1 COURSE DURATION 18 Hour(s) of Interactive Training COURSE OVERVIEW ASP.NET is Microsoft s development

More information

Tutorial 5 Completing the Inventory Application Introducing Programming

Tutorial 5 Completing the Inventory Application Introducing Programming 1 Tutorial 5 Completing the Inventory Application Introducing Programming Outline 5.1 Test-Driving the Inventory Application 5.2 Introduction to C# Code 5.3 Inserting an Event Handler 5.4 Performing a

More information

tablename ORDER BY column ASC tablename ORDER BY column DESC sortingorder, } The WHERE and ORDER BY clauses can be combined in one

tablename ORDER BY column ASC tablename ORDER BY column DESC sortingorder, } The WHERE and ORDER BY clauses can be combined in one } The result of a query can be sorted in ascending or descending order using the optional ORDER BY clause. The simplest form of an ORDER BY clause is SELECT columnname1, columnname2, FROM tablename ORDER

More information

840 Database: SQL, ADO and RDS Chapter 25. Department Salary Location

840 Database: SQL, ADO and RDS Chapter 25. Department Salary Location iw3htp_25.fm Page 840 Tuesday, May 23, 2000 6:11 AM 840 Database: SQL, ADO and RDS Chapter 25 A record Number Name 25 Database: SQL, ADO and RDS Table: Employee Department Salary Location 23603 JONES,

More information

Windows Database Applications

Windows Database Applications 3-1 Windows Database Applications Chapter 3 In this chapter, you learn to access and display database data on a Windows form. You will follow good OOP principles and perform the database access in a datatier

More information

2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a) and (b) D. stands for Graphic Use Interaction

2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a) and (b) D. stands for Graphic Use Interaction 1. Which language is not a true object-oriented programming language? A. VB 6 B. VB.NET C. JAVA D. C++ 2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a)

More information

Lecture 10: Database. Lisa (Ling) Liu

Lecture 10: Database. Lisa (Ling) Liu Chair of Software Engineering C# Programming in Depth Prof. Dr. Bertrand Meyer March 2007 May 2007 Lecture 10: Database Lisa (Ling) Liu Database and Data Representation Database Management System (DBMS):

More information

ADO.NET Using Visual Basic 2005 Table of Contents

ADO.NET Using Visual Basic 2005 Table of Contents Table of Contents INTRODUCTION...INTRO-1 Prerequisites...INTRO-2 Installing the Practice Files...INTRO-3 Software Requirements...INTRO-3 The Chapter Files...INTRO-3 About the Authors...INTRO-4 ACCESSING

More information

Introducing.NET Data Management

Introducing.NET Data Management 58900_ch08.qxp 19/02/2004 2:49 PM Page 333 8 Introducing.NET Data Management We've looked at the basics of Microsoft's new.net Framework and ASP.NET in particular. It changes the way you program with ASP,

More information

Hands-On Lab. Introduction to SQL Azure. Lab version: Last updated: 12/15/2010

Hands-On Lab. Introduction to SQL Azure. Lab version: Last updated: 12/15/2010 Hands-On Lab Introduction to SQL Azure Lab version: 2.0.0 Last updated: 12/15/2010 Contents OVERVIEW... 3 EXERCISE 1: PREPARING YOUR SQL AZURE ACCOUNT... 5 Task 1 Retrieving your SQL Azure Server Name...

More information

Practical Database Programming with Visual Basic.NET

Practical Database Programming with Visual Basic.NET Practical Database Programming with Visual Basic.NET IEEE Press 445 Hoes Lane Piscataway, NJ 08854 IEEE Press Editorial Board Lajos Hanzo, Editor in Chief R. Abari M. El-Hawary S. Nahavandi J. Anderson

More information

Hands-On Lab. Introduction to SQL Azure. Lab version: Last updated: 11/16/2010

Hands-On Lab. Introduction to SQL Azure. Lab version: Last updated: 11/16/2010 Hands-On Lab Introduction to SQL Azure Lab version: 2.0.0 Last updated: 11/16/2010 Contents OVERVIEW... 3 EXERCISE 1: PREPARING YOUR SQL AZURE ACCOUNT... 6 Task 1 Retrieving your SQL Azure Server Name...

More information

CMPT 354 Database Systems I

CMPT 354 Database Systems I CMPT 354 Database Systems I Chapter 8 Database Application Programming Introduction Executing SQL queries: Interactive SQL interface uncommon. Application written in a host language with SQL abstraction

More information

Data Source. Application. Memory

Data Source. Application. Memory Lecture #14 Introduction Connecting to Database The term OLE DB refers to a set of Component Object Model (COM) interfaces that provide applications with uniform access to data stored in diverse information

More information

BackgroundWorker Component Overview 1 Multithreading with the BackgroundWorker Component 3 Walkthrough Running an Operation in the Background 10 How

BackgroundWorker Component Overview 1 Multithreading with the BackgroundWorker Component 3 Walkthrough Running an Operation in the Background 10 How BackgroundWorker Component Overview 1 Multithreading with the BackgroundWorker Component 3 Walkthrough Running an Operation in the Background 10 How to Download a File in the Background 15 How to Implement

More information

What's New in Access 2000 p. 1 A Brief Access History p. 2 Access the Best Access Ever p. 5 Microsoft Office Developer Features p.

What's New in Access 2000 p. 1 A Brief Access History p. 2 Access the Best Access Ever p. 5 Microsoft Office Developer Features p. Foreword p. xxxiii About the Authors p. xxxvi Introduction p. xxxviii What's New in Access 2000 p. 1 A Brief Access History p. 2 Access 2000--the Best Access Ever p. 5 Microsoft Office Developer Features

More information

M Introduction to Visual Basic.NET Programming with Microsoft.NET 5 Day Course

M Introduction to Visual Basic.NET Programming with Microsoft.NET 5 Day Course Module 1: Getting Started This module introduces Visual Basic.NET and explains how it fits into the.net platform. It explains how to use the programming tools in Microsoft Visual Studio.NET and provides

More information

Database: Integrated collection of data

Database: Integrated collection of data CSC 330 Object Oriented Programming C# and Databases Introduction Database: Integrated collection of data Database management system (DBMS) Provides mechanisms for storing and organizing data in a way

More information

Visual Basic.NET Complete Sybex, Inc.

Visual Basic.NET Complete Sybex, Inc. SYBEX Sample Chapter Visual Basic.NET Complete Sybex, Inc. Chapter 14: A First Look at ADO.NET Copyright 2002 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved. No part

More information

Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#)

Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#) Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#) Course Length: 5 Days Course Overview This instructor-led course teaches developers to gain in-depth guidance on

More information

Building Windows Front Ends to SAS Software. Katie Essam Amadeus Software Limited 20 th May 2003

Building Windows Front Ends to SAS Software. Katie Essam Amadeus Software Limited 20 th May 2003 Building Windows Front Ends to SAS Software Katie Essam Amadeus Software Limited 20 th May 2003 Topics Introduction What is.net? SAS Software s Interoperability Communicating with SAS from VB.NET Conclusions

More information

Chapter 1: Introduction to Microsoft Access 2003

Chapter 1: Introduction to Microsoft Access 2003 Chapter 1: Introduction to Microsoft Access 2003 Learning Objectives This chapter begins your study of application development using Microsoft Access. After this chapter, you should have acquired the knowledge

More information

Reading From Databases

Reading From Databases 57076_Ch 8 SAN.qxd 01/12/2003 6:43 PM Page 249 8 Reading From Databases So far in this book you've learnt a lot about programming, and seen those techniques in use in a variety of Web pages. Now it's time

More information

CSC 330 Object-Oriented

CSC 330 Object-Oriented CSC 330 Object-Oriented Oriented Programming Using ADO.NET and C# CSC 330 Object-Oriented Design 1 Implementation CSC 330 Object-Oriented Design 2 Lecture Objectives Use database terminology correctly

More information

2559 : Introduction to Visual Basic.NET Programming with Microsoft.NET

2559 : Introduction to Visual Basic.NET Programming with Microsoft.NET 2559 : Introduction to Visual Basic.NET Programming with Microsoft.NET Introduction Elements of this syllabus are subject to change. This five-day instructor-led course provides students with the knowledge

More information

Programming with ADO.NET

Programming with ADO.NET Programming with ADO.NET The Data Cycle The overall task of working with data in an application can be broken down into several top-level processes. For example, before you display data to a user on a

More information

How to use data sources with databases (part 1)

How to use data sources with databases (part 1) Chapter 14 How to use data sources with databases (part 1) 423 14 How to use data sources with databases (part 1) Visual Studio 2005 makes it easier than ever to generate Windows forms that work with data

More information

ASP.NET Web Forms Programming Using Visual Basic.NET

ASP.NET Web Forms Programming Using Visual Basic.NET ASP.NET Web Forms Programming Using Visual Basic.NET Duration: 35 hours Price: $750 Delivery Option: Attend training via an on-demand, self-paced platform paired with personal instructor facilitation.

More information

Program Contents: DOTNET TRAINING IN CHENNAI

Program Contents: DOTNET TRAINING IN CHENNAI DOTNET TRAINING IN CHENNAI NET Framework - In today s world of enterprise application development either desktop or Web, one of leaders and visionary is Microsoft.NET technology. The.NET platform also

More information

Working with Data in ASP.NET 2.0 :: Using Existing Stored Procedures for the Typed DataSet s TableAdapters Introduction

Working with Data in ASP.NET 2.0 :: Using Existing Stored Procedures for the Typed DataSet s TableAdapters Introduction 1 of 20 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

Model Question Paper. Credits: 4 Marks: 140. Part A (One mark questions)

Model Question Paper. Credits: 4 Marks: 140. Part A (One mark questions) Model Question Paper Subject Code: MT0040 Subject Name: VB.Net Credits: 4 Marks: 140 (One mark questions) 1. The is a systematic class framework used for the development of system tools and utilities.

More information

Integrating External Assessments into a Blaise Questionnaire

Integrating External Assessments into a Blaise Questionnaire Integrating External Assessments into a Blaise Questionnaire Joseph M. Nofziger, Kathy Mason, Lilia Filippenko, Michael Roy Burke RTI International 1. Introduction and Justification Many CAPI projects

More information

BIS4430 Web-based Information Systems Management. Unit 11 [BIS4430, LU11 version1.0, E.M, 09/07)]

BIS4430 Web-based Information Systems Management. Unit 11 [BIS4430, LU11 version1.0, E.M, 09/07)] SCOPE Context BIS4430 Web-based Information Systems Management Unit 11 [BIS4430, LU11 version1.0, E.M, 09/07)] A fully dynamic e-commerce site must be able to send and retrieve data from the user and some

More information

Creating databases using SQL Server Management Studio Express

Creating databases using SQL Server Management Studio Express Creating databases using SQL Server Management Studio Express With the release of SQL Server 2005 Express Edition, TI students and professionals began to have an efficient, professional and cheap solution

More information

Building Database Applications with ADO.NET

Building Database Applications with ADO.NET CHAPTER 5 Building Database Applications with ADO.NET IN THIS CHAPTER: Demonstrated Topics A Quick Review of ADO.NET Namespaces Connecting to DataSources Understanding the Role of the Adapter Working with

More information

.NET data providers 5.1 WHAT IS A DATA PROVIDER?

.NET data providers 5.1 WHAT IS A DATA PROVIDER? C H A P T E R 5.NET data providers 5.1 What is a data provider? 41 5.2 How are data providers organized? 43 5.3 Standard objects 44 5.4 Summary 53 The first part of this book provided a very high-level

More information

UNIVERSITY OF CINCINNATI

UNIVERSITY OF CINCINNATI UNIVERSITY OF CINCINNATI I, Arunkumar Chandrasekaran Date: November 10, 2005 hereby submit this work as part of the requirements for the degree of: Master of Science in: Industrial Engineering It is entitled:

More information

User-Defined Controls

User-Defined Controls C# cont d (C-sharp) (many of these slides are extracted and adapted from Deitel s book and slides, How to Program in C#. They are provided for CSE3403 students only. Not to be published or publicly distributed

More information

.Net Interview Questions

.Net Interview Questions .Net Interview Questions 1.What is.net? NET is an integral part of many applications running on Windows and provides common functionality for those applications to run. This download is for people who

More information

ADAPTER CHAPTER 3. Adapting to an Interface

ADAPTER CHAPTER 3. Adapting to an Interface CHAPTER 3 ADAPTER An object is a client if it needs to call your code. In some cases, client code will be written after your code exists and the developer can mold the client to use the interfaces of the

More information

Chapter 10. Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 10. Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 10 Database Applications McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter Objectives Use database terminology correctly Create Windows and Web projects that display

More information

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 14 Database Connectivity and Web Technologies

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 14 Database Connectivity and Web Technologies Database Systems: Design, Implementation, and Management Tenth Edition Chapter 14 Database Connectivity and Web Technologies Database Connectivity Mechanisms by which application programs connect and communicate

More information

Saikat Banerjee Page 1

Saikat Banerjee Page 1 1.What is.net? NET is an integral part of many applications running on Windows and provides common functionality for those applications to run. This download is for people who need.net to run an application

More information

.NET, C#, and ASP.NET p. 1 What Is.NET? p. 2 The Common Language Runtime p. 2 Introducing C# p. 3 Introducing ASP.NET p. 4 Getting Started p.

.NET, C#, and ASP.NET p. 1 What Is.NET? p. 2 The Common Language Runtime p. 2 Introducing C# p. 3 Introducing ASP.NET p. 4 Getting Started p. Introduction p. xix.net, C#, and ASP.NET p. 1 What Is.NET? p. 2 The Common Language Runtime p. 2 Introducing C# p. 3 Introducing ASP.NET p. 4 Getting Started p. 5 Installing Internet Information Server

More information

VB.NET. Exercise 1: Creating Your First Application in Visual Basic.NET

VB.NET. Exercise 1: Creating Your First Application in Visual Basic.NET VB.NET Module 1: Getting Started This module introduces Visual Basic.NET and explains how it fits into the.net platform. It explains how to use the programming tools in Microsoft Visual Studio.NET and

More information

ADO.NET from 3,048 meters

ADO.NET from 3,048 meters C H A P T E R 2 ADO.NET from 3,048 meters 2.1 The goals of ADO.NET 12 2.2 Zooming in on ADO.NET 14 2.3 Summary 19 It is a rare opportunity to get to build something from scratch. When Microsoft chose the

More information

SECURED PROGRAMMING IN.NET DETAILED TRAINING CONTENT INDUSTRIAL TRAINING PROGRAM ( )

SECURED PROGRAMMING IN.NET DETAILED TRAINING CONTENT INDUSTRIAL TRAINING PROGRAM ( ) SECURED PROGRAMMING IN.NET DETAILED TRAINING CONTENT INDUSTRIAL TRAINING PROGRAM (2013-2014) MODULE: C# PROGRAMMING CHAPTER 1: INTRODUCING.NET AND C# 1.1 INTRODUCTION TO LANGUAGES C++ C# DIFFERENCES BETWEEN

More information

DEFINING AN ABL FORM AND BINDING SOURCE

DEFINING AN ABL FORM AND BINDING SOURCE DEFINING AN ABL FORM AND BINDING SOURCE Fellow and OpenEdge Evangelist Document Version 1.0 November 2009 Using Visual Designer and GUI for.net Defining an ABL Form and Binding Source December, 2009 Page

More information

C# 2008 and.net Programming for Electronic Engineers - Elektor - ISBN

C# 2008 and.net Programming for Electronic Engineers - Elektor - ISBN Contents Contents 5 About the Author 12 Introduction 13 Conventions used in this book 14 1 The Visual Studio C# Environment 15 1.1 Introduction 15 1.2 Obtaining the C# software 15 1.3 The Visual Studio

More information

ADO.NET for Beginners

ADO.NET for Beginners Accessing Database ADO.NET for Beginners Accessing database using ADO.NET in C# or VB.NET This tutorial will teach you Database concepts and ADO.NET in a very simple and easy-to-understand manner with

More information

Saikat Banerjee Page 1

Saikat Banerjee Page 1 1. What s the advantage of using System.Text.StringBuilder over System.String? StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each

More information

Integration Services. Creating an ETL Solution with SSIS. Module Overview. Introduction to ETL with SSIS Implementing Data Flow

Integration Services. Creating an ETL Solution with SSIS. Module Overview. Introduction to ETL with SSIS Implementing Data Flow Pipeline Integration Services Creating an ETL Solution with SSIS Module Overview Introduction to ETL with SSIS Implementing Data Flow Lesson 1: Introduction to ETL with SSIS What Is SSIS? SSIS Projects

More information

EVALUATION COPY. Unauthorized reproduction or distribution is prohibited. Table of Contents (Detailed)

EVALUATION COPY. Unauthorized reproduction or distribution is prohibited. Table of Contents (Detailed) Table of Contents (Detailed) Chapter 1 Introduction to ADO.NET... 1 Microsoft Data Access Technologies... 3 ODBC... 4 OLE DB... 5 ActiveX Data Objects (ADO)... 6 Accessing SQL Server before ADO.NET...

More information

Database Applications

Database Applications Database Applications Pemrograman Visual (TH22012 ) by Kartika Firdausy 081.328.718.768 kartikaf@indosat.net.id kartika@ee.uad.ac.id blog.uad.ac.id/kartikaf kartikaf.wordpress.com Introduction A database

More information

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server Chapter 3 SQL Server Management Studio In This Chapter c Introduction to SQL Server Management Studio c Using SQL Server Management Studio with the Database Engine c Authoring Activities Using SQL Server

More information

Form Adapter Example. DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date :

Form Adapter Example. DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date : Form Adapter Example DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date : 2009-06-19 Form_Adapter.doc DRAFT page 1 Table of Contents Creating Form_Adapter.vb... 2 Adding the

More information

Volume CREATIVE DATA TECHNOLOGIES, INC. DATALAYER.NET. Getting Started Guide

Volume CREATIVE DATA TECHNOLOGIES, INC. DATALAYER.NET. Getting Started Guide Volume 1 CREATIVE DATA TECHNOLOGIES, INC. DATALAYER.NET Getting Started Guide TABLE OF CONTENTS Table of Contents Table of Contents... 1 Chapter 1 - Installation... 2 1.1 Installation Steps... 2 1.1 Creating

More information

Mainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below.

Mainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below. APPENDIX 1 TABLE DETAILS Mainly three tables namely Teacher, Student and Class for small database of a school are used. The snapshots of all three tables are shown below. Details of Class table are shown

More information

C# Syllabus. MS.NET Framework Introduction

C# Syllabus. MS.NET Framework Introduction C# Syllabus MS.NET Framework Introduction The.NET Framework - an Overview Framework Components Framework Versions Types of Applications which can be developed using MS.NET MS.NET Base Class Library MS.NET

More information

10265: Developing Data Access Solutions with Microsoft Visual Studio 2010 Duration: 5 Days Method: Instructor-Led

10265: Developing Data Access Solutions with Microsoft Visual Studio 2010 Duration: 5 Days Method: Instructor-Led 10265: Developing Data Access Solutions with Microsoft Visual Studio 2010 Duration: 5 Days Method: Instructor-Led Course Description In this course, experienced developers who know the basics of data access

More information

Accessing Databases 7/6/2017 EC512 1

Accessing Databases 7/6/2017 EC512 1 Accessing Databases 7/6/2017 EC512 1 Types Available Visual Studio 2017 does not ship with SQL Server Express. You can download and install the latest version. You can also use an Access database by installing

More information

Representing Recursive Relationships Using REP++ TreeView

Representing Recursive Relationships Using REP++ TreeView Representing Recursive Relationships Using REP++ TreeView Author(s): R&D Department Publication date: May 4, 2006 Revision date: May 2010 2010 Consyst SQL Inc. All rights reserved. Representing Recursive

More information

Mastering VB.NET using Visual Studio 2010 Course Length: 5 days Price: $2,500

Mastering VB.NET using Visual Studio 2010 Course Length: 5 days Price: $2,500 Mastering VB.NET using Visual Studio 2010 Course Length: 5 days Price: $2,500 Summary Each day there will be a combination of presentations, code walk-throughs, and handson projects. The final project

More information

Mastering Transact-SQL An Overview of SQL Server 2000 p. 3 SQL Server's Networked Architecture p. 4 SQL Server's Basic Components p.

Mastering Transact-SQL An Overview of SQL Server 2000 p. 3 SQL Server's Networked Architecture p. 4 SQL Server's Basic Components p. Acknowledgments p. xxiii Introduction p. xxv Mastering Transact-SQL An Overview of SQL Server 2000 p. 3 SQL Server's Networked Architecture p. 4 SQL Server's Basic Components p. 8 Transact-SQL p. 9 SQL

More information

M Introduction to C# Programming with Microsoft.NET - 5 Day Course

M Introduction to C# Programming with Microsoft.NET - 5 Day Course Module 1: Getting Started This module presents the concepts that are central to the Microsoft.NET Framework and platform, and the Microsoft Visual Studio.NET integrated development environment (IDE); describes

More information

DE Introduction to Web Development with Microsoft Visual Studio 2010

DE Introduction to Web Development with Microsoft Visual Studio 2010 DE-10267 Introduction to Web Development with Microsoft Visual Studio 2010 Summary Duration 5 Days Audience Developers Level 100 Technology Microsoft Visual Studio 2010 Delivery Method Instructor-led (Classroom)

More information

$99.95 per user. SQL Server 2008 Integration Services CourseId: 158 Skill level: Run Time: 42+ hours (210 videos)

$99.95 per user. SQL Server 2008 Integration Services CourseId: 158 Skill level: Run Time: 42+ hours (210 videos) Course Description Our is a comprehensive A-Z course that covers exactly what you want in an SSIS course: data flow, data flow, and more data flow. You will learn about transformations, common design patterns

More information

Industrial Programming

Industrial Programming Industrial Programming Lecture 6: C# Data Manipulation Industrial Programming 1 The Stream Programming Model File streams can be used to access stored data. A stream is an object that represents a generic

More information

Welcome Application. Introducing the Visual Studio.NET IDE. Objectives. Outline

Welcome Application. Introducing the Visual Studio.NET IDE. Objectives. Outline 2 T U T O R I A L Objectives In this tutorial, you will learn to: Navigate Visual Studio.NET s Start Page. Create a Visual Basic.NET solution. Use the IDE s menus and toolbars. Manipulate windows in the

More information

10267 Introduction to Web Development with Microsoft Visual Studio 2010

10267 Introduction to Web Development with Microsoft Visual Studio 2010 10267 Introduction to Web Development with Microsoft Visual Studio 2010 Course Number: 10267A Category: Visual Studio 2010 Duration: 5 days Course Description This five-day instructor-led course provides

More information

M4.1-R4: APPLICATION OF.NET TECHNOLOGY

M4.1-R4: APPLICATION OF.NET TECHNOLOGY M4.1-R4: APPLICATION OF.NET TECHNOLOGY NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be answered in the OMR

More information

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Course Number: 2565 Length: 5 Day(s) Certification Exam This course will help you prepare for the following Microsoft Certified Professional

More information

DOT NET Syllabus (6 Months)

DOT NET Syllabus (6 Months) DOT NET Syllabus (6 Months) THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate Language (IL) Just- In- Time Compilation and CLS Disassembling.Net Application to IL

More information