ADO.NET in a Nutshell by Matthew MacDonald, Bill Hamilton PDF

By Matthew MacDonald, Bill Hamilton

ISBN-10: 0596003617

ISBN-13: 9780596003616

Written via specialists at the MicrosoftÂR .NET programming platform, ADO.NET in a Nutshell grants every little thing .NET programmers might want to get a jump-start on ADO.NET expertise or to sharpen their talents even extra. within the culture of O'Reilly's In a Nutshell sequence, ADO.NET in a Nutshell is the main entire and concise resource of ADO.NET info to be had. ADO.NET is the suite of information entry applied sciences within the .NET Framework that builders use to construct functions companies having access to relational facts and XML. Connecting to databases is a basic a part of so much purposes, whether or not they are internet, WindowsÂR, allotted, client/server, XML net prone, or anything solely diverse. yet ADO.NET is considerably varied from Microsoft's prior info entry applied sciences - together with the former model of ADO - so even skilled builders have to comprehend the fundamentals of the hot disconnected version prior to they begin programming with it. present with the .NET Framework 1.1, ADO.NET in a Nutshell bargains one position to appear in the event you need assistance with something regarding this crucial know-how, together with a connection with the ADO.NET namespaces and item version. as well as being a worthwhile reference, this ebook presents a concise origin for programming with ADO.NET and covers numerous concerns that programmers face whilst constructing net functions or net providers that depend upon database entry. utilizing C#, this e-book provides actual global, functional examples that can assist you positioned ADO.NET to paintings instantly.

Show description

Read Online or Download ADO.NET in a Nutshell PDF

Similar visual basic books

Build Your Own ASP.NET 2.0 Web Site Using C# & VB - download pdf or read online

The way to construct outstanding ASP. web 2. zero web content in either C# and VB. web from scratch utilizing freely to be had software program. utilizing a pragmatic step by step strategy, the authors introduce the ASP. internet framework, train you approximately database layout, and stroll you thru acquiring, fitting and configuring all of the freely to be had software program you should utilize ASP.

Download e-book for iPad: MCTS Self-Paced Training Kit (Exam 70-516): Accessing Data by Glenn Johnson

Examination PREP consultant Ace your practise for the abilities measured through MCTS examination 70-516 - and at the activity - with this authentic Microsoft learn consultant. paintings at your individual velocity via a chain of classes and stories that totally hide each one examination goal. Then, strengthen and practice what you might have realized via real-world case situations and perform routines.

Download e-book for iPad: MCSD. Visual Basic 6 exams : exams 70-175 and 70-176 by Howard Hawhee; et al

Each one education consultant can be prepared round the examination pursuits. This makes it really easy for readers to target parts the place they should enhance. It additionally is helping them establish what the foremost themes at the examination might be

Download PDF by Alessandro Del Sole: Visual Basic 2012 Unleashed

Totally up-to-date for home windows eight help, . internet four. five, and home windows mobilephone improvement, this is often the main entire, functional connection with sleek programming with visible uncomplicated 2012. Written by way of visible uncomplicated MVP Alessandro Del Sole, a long-time chief of the worldwide VB neighborhood, this publication illuminates the center of the VB language and demonstrates its powerful use in lots of present programming eventualities.

Additional resources for ADO.NET in a Nutshell

Example text

If you want to replace a row you deleted in the previous example, you can manually specify a CategoryID with the value of 1). 2 Executing a Command That Returns a Single Value ExecuteScalar( ) method returns a single value. If you perform a query, this will be the first value in the first column of the first row. More likely, you'll use ExecuteNonQuery( ) to return an aggregate value, which is the result of a calculation using a subset of rows. An aggregate function must be part of a SQL SELECT statement, which indicates the table and (optionally) a search filter and sort order: SELECT aggregate_expression FROM tables [WHERE search_condition] [ORDER BY order_expression ASC | DESC] Example 4-2 shows how an aggregate command can retrieve the total number of orders for the year 1996.

2 Output Parameters One common use of a stored procedure is to insert a record in a table that uses a unique identity field. NET code. This saves you re-querying the database to find this information. The Northwind sample database doesn't use this technique; the database used by the IBuySpy e-commerce store does. com site or just refer to the following example. Here is the CustomerAdd stored procedure code in the store database: CREATE Procedure CustomerAdd ( @FullName nvarchar(50), @Email nvarchar(50), @Password nvarchar(50), @CustomerID int OUTPUT ) AS INSERT INTO Customers ( FullName, EMailAddress, Password ) VALUES ( @FullName, @Email, @Password ) SELECT @CustomerID = @@Identity GO This stored procedure defines three input parameter and one output parameter for the generated ID.

NET. Typically, the Command object wraps a SQL statement or a call to a stored procedure. For example, you might use a Command object to execute a SQL UPDATE, DELETE, INSERT, or SELECT statement. NET providers that don't represent databases may use their own nomenclature. CommandText property, which defines the command, must be a string. As with the Connection object, the Command object is specific to the data provider. 0 or later. OleDbCommand executes commands against an OLE DB data provider.

Download PDF sample

ADO.NET in a Nutshell by Matthew MacDonald, Bill Hamilton


by Daniel
4.0

Rated 4.19 of 5 – based on 37 votes