OReilly ADO dot NET 3 5 cookbook 2nd edition mar 2008 ISBN 0596101406

1.7K 298 0
OReilly ADO dot NET 3 5 cookbook 2nd edition mar 2008 ISBN 0596101406

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

ADO.NET 3.5 Cookbook, 2nd Edition by Bill Hamilton Publisher: O'Reilly Pub Date: March 15, 2008 Print ISBN-13: 978-0-596-10140-4 Pages: 980 Table of Contents | Index Overview This guide is strikingly different from other books on Microsoft ADO.NET Rather than load you down with theory, the new edition of ADO.NET 3.5 Cookbook gives you more than 200 coding solutions and best practices for real problems you're likely to face with this technology using Visual Studio 2008 and the NET 3.5 platform Organized to help you find the topic and specific recipe you need quickly and easily, this book is more than just a handy compilation of cut-and-paste C# code ADO.NET 3.5 Cookbook also offers clear explanations of how and why each code solution works, and warns you of potential pitfalls so you can learn to adapt the book's problem-solving techniques to different situations This collection of timesaving recipes covers vital topics including: Connecting to data Retrieving and managing data Transforming and analyzing data Modifying data Binding data to NET user interfaces Optimizing NET data access Enumerating and maintaining database objects Maintaining database integrity Ideal for ADO.NET programmers at all levels, from the relatively inexperienced to the most sophisticated, this new edition covers the significant 3.5 upgrade, including new programming tools such as LINQ ADO.NET 3.5 Cookbook offers a painless way for those of you who prefer to learn by doing when it comes to expanding your skills and productivity ADO.NET 3.5 Cookbook, 2nd Edition by Bill Hamilton Publisher: O'Reilly Pub Date: March 15, 2008 Print ISBN-13: 978-0-596-10140-4 Pages: 980 Table of Contents | Index ADO.NET 3.5 Cookbook™, Second Edition Preface Chapter 1 Connecting to Data Recipe 1.0 Introduction Recipe 1.1 Storing Connection Strings Recipe 1.2 Building a Connection String Recipe 1.3 Connecting to SQL Server Recipe 1.4 Connecting to a Named Instance of SQL Server Recipe 1.5 Connecting to SQL Server Using an IP Address Recipe 1.6 Connecting to SQL Server Using Integrated Security from ASP.NET Recipe 1.7 Connecting to an Oracle Database Recipe 1.8 Connecting to an OLE DB Data Source Recipe 1.9 Connecting to an ODBC Data Source Recipe 1.10 Connecting to a Microsoft Access Database Recipe 1.11 Connecting to a Password-Protected Microsoft Access Database Recipe 1.12 Connecting to a Microsoft Access Database from ASP.NET Recipe 1.13 Connecting to a Microsoft Excel Workbook Recipe 1.14 Connecting to a Text File Recipe 1.15 Changing the Database for an Open Connection Recipe 1.16 Setting Connection Pooling Options Recipe 1.17 Taking Advantage of Connection Pooling Recipe 1.18 Using Transactions with Pooled Connections Recipe 1.19 Displaying a Connection Property Dialog Box Recipe 1.20 Displaying the Data Link Properties Dialog Box Recipe 1.21 Monitoring Connections Chapter 2 Working with Disconnected Data Objects Recipe 2.0 Introduction Recipe 2.1 Creating a DataColumn and Adding It to a DataTable Recipe 2.2 Creating a DataTable and Adding It to a DataSet Recipe 2.3 Mapping Table and Column Names Between a Data Source and DataSet Recipe 2.4 Mapping NET Data Provider Data Types to NET Framework Data Types Recipe 2.5 Adding a Calculated Column to a DataTable Recipe 2.6 Creating a Unique Constraint Recipe 2.7 Creating Single- and Multi-Column Primary Keys Recipe 2.8 Creating an Autoincrementing Primary Key Recipe 2.9 Creating a Foreign Key Constraint Recipe 2.10 Creating a Data Relation Recipe 2.11 Building a DataSet Programmatically Recipe 2.12 Adding a Column to a Child DataTable That Displays Data from the Parent Table Recipe 2.13 Adding a Column to a Parent DataTable That Aggregates a Child Table's Column Values Recipe 2.14 Converting Between a DataTable and a DataRow Array Recipe 2.15 Accessing Data Values in a DataRow Array Recipe 2.16 Creating a Strongly Typed DataSet Recipe 2.17 Controlling the Names Used in a Strongly Typed DataSet Recipe 2.18 Replacing Null Values in a Strongly Typed DataSet Chapter 3 Querying and Retrieving Data Recipe 3.0 Introduction Recipe 3.1 Executing a Query That Does Not Return a Result Set Recipe 3.2 Executing a Query That Returns a Single Value Recipe 3.3 Retrieving a Result Set Stream Using a DataReader Recipe 3.4 Accessing Data Values in a DataReader Recipe 3.5 Retrieving a Result Set Using a DataTable or a DataSet Recipe 3.6 Accessing Data Values in a DataTable or DataSet Recipe 3.7 Working with Data in a Strongly Typed DataSet Recipe 3.8 Working with Parent-Child Relations in a Strongly Typed DataSet Recipe 3.9 Using a DataView with a Strongly Typed DataSet Recipe 3.10 Testing Whether a Query Returns an Empty Result Set Recipe 3.11 Counting Records Meeting Criteria Recipe 3.12 Determining the Number of Records Returned in a DataReader Recipe 3.13 Executing a Query That Returns Multiple Result Sets Recipe 3.14 Retrieving Schema and Constraints for a DataSet Recipe 3.15 Retrieving Hierarchical Data Recipe 3.16 Navigating Between Parent and Child Tables in an Untyped DataSet Recipe 3.17 Executing a Parameterized Query Recipe 3.18 Retrieving Data Using a SQL Server Stored Procedure Recipe 3.19 Retrieving Multiple Result Sets Using the Oracle Provider Recipe 3.20 Passing a Null Value to a Query Parameter Recipe 3.21 Using Table-Valued Types As Parameters Recipe 3.22 Retrieving a Return Value from a Stored Procedure Recipe 3.23 Retrieving a Stored Procedure Output Parameter Recipe 3.24 Raising and Handling Stored Procedure Errors Recipe 3.25 Executing a SQL Server Scalar-Valued Function Recipe 3.26 Executing a SQL Server Table-Valued Function Recipe 3.27 Querying a DataSet Using LINQ Recipe 3.28 Querying a SQL Server Database Using LINQ Recipe 3.29 Retrieving Data from a Text File Recipe 3.30 Retrieving Data from a Microsoft Excel Workbook Recipe 3.31 Querying Data Asynchronously with Message Queuing Chapter 4 Searching and Analyzing Data Recipe 4.0 Introduction Recipe 4.1 Determining the Differences in Data Between Two DataSet Objects Recipe 4.2 Combining Data from Heterogeneous Data Sources Recipe 4.3 Filtering Rows in a DataTable or DataView Recipe 4.4 Finding Rows in a DataTable or DataView Recipe 4.5 Filtering and Sorting Data in a DataTable Recipe 4.6 Filtering Null Field Values in a DataTable Recipe 4.7 Accessing Deleted Rows in a DataTable Recipe 4.8 Selecting the Top N Rows in a DataTable Recipe 4.9 Executing Queries That Use COMPUTE BY Recipe 4.10 Using the Shape Language to Retrieve Hierarchical Data Recipe 4.11 Retrieving a Random Sample of Records Recipe 4.12 Using a Common Table Expression (CTE) Recipe 4.13 Executing a Recursive Query Recipe 4.14 Retrieving a Ranked Result Set Recipe 4.15 Retrieving a Pivot and Unpivot Table Recipe 4.16 Invoking a Function for Each Row in a Result Set Chapter 5 Adding and Modifying Data Recipe 5.0 Introduction Recipe 5.1 Using Autoincrementing Columns Without Causing Conflicts Recipe 5.2 Getting an Identity Column Value from SQL Server Recipe 5.3 Getting an AutoNumber Value from Microsoft Access Recipe 5.4 Getting a Sequence Value from Oracle Recipe 5.5 Modifying Data in a Microsoft Excel Workbook Recipe 5.6 Modifying Data in a Text File Recipe 5.7 Retrieving Update Errors Recipe 5.8 Adding Parent/Child Rows with Autoincrementing Keys Recipe 5.9 Adding Records with a GUID Primary Key Recipe 5.10 Inserting Multiple Rows into a Database Table Using T-SQL Row Constructors Recipe 5.11 Updating a Data Source with Data from a Different Data Source Recipe 5.12 Updating a Primary Key Value Recipe 5.13 Getting Stored Procedure Parameter Information at Runtime Recipe 5.14 Updating a DataSet with a Many-to-Many Relationship Recipe 5.15 Updating Data Asynchronously Using Message Queuing Recipe 5.16 Controlling Edits, Deletions, or Additions to Data with a DataView Recipe 5.17 Overcoming Keyword Conflicts When Using a CommandBuilder Recipe 5.18 Capturing Changes to Data in a SQL Server Database Chapter 6 Copying and Transferring Data Recipe 6.0 Introduction Recipe 6.1 Copying Rows from One DataTable to Another Recipe 6.2 Copying Tables from One DataSet to Another Recipe 6.3 Converting a DataReader to a DataTable Recipe 6.4 Converting a DataReader to a DataSet Recipe 6.5 Converting a DataTable to a DataReader Recipe 6.6 Converting a DataSet to a DataReader Recipe 6.7 Serializing Data Recipe 6.8 Deserializing Data Recipe 6.9 Merging Data in Two DataSet Objects Recipe 6.10 Merging Data in Two Database Tables Recipe 6.11 Encrypting a DataSet Recipe 6.12 Securing Login Credentials Recipe 6.13 Exporting the Results of a Query As a String Recipe 6.14 Exporting the Results of a Query to an Array Recipe 6.15 Loading an ADO Recordset into a DataSet Recipe 6.16 Converting a DataSet to an ADO Recordset Chapter 7 Maintaining Database Integrity Recipe 7.0 Introduction Recipe 7.1 Using Distributed Transactions Recipe 7.2 Using Manual Transactions Recipe 7.3 Nesting Manual Transactions with the SQL Server NET Data Provider Recipe 7.4 Using ADO.NET and SQL Server DBMS Transactions Together Recipe 7.5 Using a Transaction with a DataAdapter Recipe 7.6 Avoiding Referential Integrity Problems when Updating Data in Related Tables Recipe 7.7 Enforcing Business Rules with Column Expressions Recipe 7.8 Retrieving Constraints from a SQL Server Database Recipe 7.9 Checking for Concurrency Violations Recipe 7.10 Resolving Data Conflicts Recipe 7.11 Using Transaction Isolation Levels to Protect Data Recipe 7.12 Specifying Locking Hints in a SQL Server Database Chapter 8 Programmatically Working with Data in NET Windows and Web Forms User Interfaces Recipe 8.0 Introduction Recipe 8.1 Loading Data into and Binding a Field to a Web Forms Control Recipe 8.2 Binding Data to a Web Forms Control Recipe 8.3 Binding Data to a Web Forms DetailsView Control Recipe 8.4 Binding Data to a Web Forms Repeater Control Recipe 8.5 Binding Data to a Web Forms DataList Control Recipe 8.6 Binding Data to a Web Forms GridView Control Recipe 8.7 Modifying and Updating Data in a Web Forms GridView Control Recipe 8.8 Binding Data to a Web Forms FormView Control Recipe 8.9 Synchronizing Master-Detail Data in a Web Forms Application Recipe 8.10 Displaying an Image from a Database in a Web Forms Control Recipe 8.11 Localizing Client-Side Data in a Web Forms Application Recipe 8.12 Loading Data into and Binding a Field to a Windows Forms Control Recipe 8.13 Binding Data to a Windows Forms Control Recipe 8.14 Binding Data to a Windows Forms DataGridView Control Recipe 8.15 Modifying and Updating Data in a Windows Forms DataGridView Control Recipe 8.16 Using Windows Forms BindingNavigator and BindingSource Controls Recipe 8.17 Synchronizing Master-Detail Data in a Windows Forms Application Recipe 8.18 Displaying an Image from a Database in a Windows Forms Control Recipe 8.19 Binding a Group of Radio Buttons to a Windows Forms Data Field Recipe 8.20 Searching a Windows Forms DataGridView Control Chapter 9 Working with XML Data Recipe 9.0 Introduction Recipe 9.1 Using an XML File to Save and Load a DataSet or a DataTable Recipe 9.2 Using XSD Schema Files to Save and Load a DataSet Structure Recipe 9.3 Formatting Column Values When Saving Data As XML Recipe 9.4 Creating an XML File That Shows Changes Made to a DataSet Recipe 9.5 Synchronizing a DataSet and an XML Document Recipe 9.6 Storing and Retrieving XML with a Non-XML Data Type Column Recipe 9.7 Working with a SQL Server XML Data Type Column Recipe 9.8 Using an XPath Query to Retrieve Data Recipe 9.9 Reading XML Data Directly from SQL Server Recipe 9.10 Transforming a DataSet Using XSLT Recipe 9.11 Filling a DataSet Using an XML Template Query sp_configure system stored procedure sp_help stored procedure sp_helpconstraint system stored procedure 2nd sp_sproc_columns stored procedure SpDynamicResultSet (example) SpDynamicResultSet2 (example) SpecifyLockingHints program (example) 2nd 3rd 4th 5th SpEmployeesInShift program (example) SpOutputParameter_Message_ReturnCode (example) SQL (Structured Query Language) asynchronous execution of a statement 2nd 3rd 4th 5th 6th 7th 8th 9th batch queries batch query returning multiple result sets 2nd 3rd 4th 5th batch SELECT statement defined by DataAdapter batch T-SQL queries and column mappings categories of statements create table StoreXmlDatabaseField create table TableWithXmlDataType create table UpdateUsingOpenXml creating and executing parameterized query 2nd 3rd 4th execution of statements with Command LINQ to SQL 2nd 3rd loading a hierarchical DataSet using a batch query new T-SQL statements supporting CLR integration parameterized insert and update statements SQL Profiler SQL Server bulk copying 2nd 3rd 4th capturing data changes 2nd 3rd 4th 5th 6th changing user password CLR integration 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th 15th 16th 17th 18th 19th 20th 21st 22nd 23rd 24th 25th 26th 27th 28th common table expression (CTE) connection from ASP.NET using integrated security connection pooling connection string pooling attributes DBMS transactions 2nd 3rd 4th debugging a stored procedure 2nd 3rd debugging and optimizing stored procedures determining length of columns 2nd 3rd 4th 5th 6th enumerating servers 2nd executing a scalar-valued function identity values inserting multiple rows using a single T-SQL statement 2nd integrated security large-value data types loading large amounts of data locking hints 2nd merging data in two database tables 2nd named parameters in queries notifications 2nd 3rd 4th 5th ODBC Driver PIVOT and UNPIVOT operators 2nd 3rd 4th querying a database using LINQ 2nd 3rd 4th 5th 6th ranking functions reading and writing large-value data 2nd 3rd 4th 5th 6th reading XML data directly from 2nd relationships 2nd 3rd 4th 5th retrieval of hierarchical data retrieving column default values from 2nd 3rd 4th 5th 6th retrieving constraints from a database 2nd 3rd retrieving data using a stored procedure 2nd retrieving database schema information 2nd 3rd 4th 5th 6th retrieving provider statistics retrieving runtime statistics 2nd 3rd 4th support for XML UDTs (user-defined types) using OpenXML to update multiple changes 2nd 3rd 4th 5th 6th 7th version 7.0 XML data type column 2nd XPath implementation SQL Server Agent SQL Server Authentication SQL Server Books Online SQL Server Browser service SQL Server Distributed Management Objects (SQL-DMO) SQL Server Management Studio SQL Server Profiler SQL-DMO (SQL Server Distributed Management Objects) SqlBulkCopy class 2nd 3rd overloaded constructors properties controlling bulk copy transactions dedicated to bulk copy operations SqlBulkCopyColumnMapping class SqlBulkCopyOptions enumeration SqlClient class SqlClientFactory class creating an instance and outputting data SqlCommand class asynchronous processing methods methods for asynchronous processing 2nd 3rd SqlConnection class 2nd enabling and retrieving statistics InfoMessage event 2nd SqlConnectionStringBuilder class SqlContext class SqlDataAdapter class SqlDataReader class GetBytes( ) method typed accessor methods SqlDataRecord class 2nd SqlDataSourceEnumerator class SqlDataSourceEnumerator.Instance.GetData Sources( ) method SqlDbType enumeration 2nd SqlDependency class 2nd SqlDependencyCache class SqlException 2nd SqlFacet attribute SqlInfoMessageEvent SqlInfoMessageEventHandler SqlMessageEventHandler( ) SqlMetaData class SQLMetal Tool SqlMethod attribute SqlNotificationRequest class 2nd 3rd SqlParameter class SqlPipe class Send( ) method sending dynamically created result sets with multiple rows sending messages and tabular result sets SqlProcedure attribute SqlRowUpdatingEventArgs class SqlTransaction class SqlTrigger attribute 2nd SqlTriggerContext class SqlType objects SqlUserDefinedAggregate attribute SqlUserDefinedType attribute SQLXML Bulk Load 4.0 library SQLXML managed classes 2nd 3rd 4th SqlXmlAdapter class SQLXMLBulkLoad object SqlXmlCommand class methods properties SqlXmlParameter class properties STA (single-threaded apartment) model Start( ) method Thread class Timer class statistics (runtime) 2nd 3rd 4th StatisticsEnabled property (SqlConnection) 2nd Status property RowUpdatedEventArgs RowUpdatingEventArgs Stop( ) method stored procedures catching and handling errors 2nd 3rd 4th creating ParentUpdateManyMany table (example) debugging 2nd 3rd from managed code in standalone mode error involving transaction count extended getting parameters at runtime 2nd 3rd 4th 5th 6th 7th Insert_OracleSequenceValue (example) InsertGetSqlServerIdentityValue (example) Page_Contact (example) 2nd 3rd passing data to table-valued parameter 2nd 3rd 4th 5th PassNullParameter (example) Person.GetContacts (example) retrieving a return value from 2nd 3rd 4th 5th retrieving an output parameter from 2nd 3rd single values sp_configure sp_help SyncUpdateUsingOpenXml sys.sp_cdc_disable_table_change_data_capture xp_enum_oledb_providers StoredProcedureOutputValueDataReader (example) StoredProcedureReturnValueDataReader program (example) StoreXmlDatabaseField (example) string array StringBuilder class strings connection SumMoney program (example) Surface Area Configuration tool (SQL Server) symmetric key algorithms SynchronizeDataWithXmlDocument (example) 2nd SyncUpdateUsingOpenXml program (example) 2nd 3rd 4th 5th SyncUpdateUsingOpenXml stored procedure (example) sys.columns view 2nd sys.default_constraints catalog view sys.foreign_keys view sys.parameters catalog view sys.procedures catalog view sys.schemas catalog view sys.tables view SYSTEM namespace system stored procedures sp_help System.Configuration namespace System.Data.Common namespace 2nd System.Data.Odbc namespace System.Data.OleDb namespace System.Data.Oracle client System.Data.OracleClient assembly System.Data.OracleClient namespace System.Data.SqlClient namespace System.DBNull class System.Globalization namespace System.Messaging assembly System.Threading.Timer System.Timers.Timer System.Transaction namespace System.Transactions namespace System.Web.Caching.Cache class System.Windows.Form.Timer Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] Table class 2nd table data type Table objects (ADOX) table-valued functions (TVF) invoking for each row in a result set table-valued parameters 2nd 3rd 4th TableMappings collection TableMappings property (DataTableMapping) TableNameDataTable class TableNameRow class TableNameRowChangeEvent class Tables property (DataSet) 2nd 3rd TABLESAMPLE clause TableValuedParameter program (example) TableWithXmlDataType (example) Tag property (RadioButton) TCP/IP template queries 2nd TestQueryReturnEmptyResultSet program (example) text files ADO.NET connection to 2nd 3rd 4th modifying data in 2nd 3rd 4th retrieving data from 2nd 3rd 4th 5th Text property (TextBox) text source database type TextBox controls hidden bound text box for RadioButton controls 2nd thread timer threads asynchronous query on background thread ThreadState.Running Timeout.Infinite timers timestamp data type 2nd TNSNAMES.ORA file TOP clause 2nd ToString( ) method Transact-SQL extension (OpenXML) Transaction class Transaction property (Command) TransactionIsolationLevel table (example) 2nd 3rd 4th TransactionOptions structure transactions ADO.NET and SQL Server DBMS 2nd 3rd 4th 5th bulk copy operations within distributed transactions 2nd 3rd 4th 5th 6th 7th isolation levels manual transactions 2nd 3rd 4th 5th 6th snapshot isolation using with DataAdapter 2nd 3rd 4th 5th TransactionScope class overloaded constructors defining transaction behavior using to implement implicit transactions TransactionScopeOptions enumeration Transform( ) method TransformDataSetXslt (example) TriggerAction property (SqlTriggerContext) 2nd TriggerContext property (SqlContext) triggers SqlTriggerContext Triggers class TripleDESCryptoServiceProvider class try catch blocks typed (xml data type) typed accessors OracleDataReader using with DataReader 2nd 3rd 4th 5th Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] UDA (user-defined aggregate) functions UDL (universal data link) files connection strings in UDTs (user-defined types) creating a CLR UDT 2nd 3rd 4th 5th reading and writing in SQL Server 2nd 3rd SQL Server UdtTypeName property (SqlParameter class) Unicode column length in bytes handling of CLOB and NCLOB data as UNION ALL operator unique constraints Unique property UniqueConstraint class 2nd configuration properties primary keys 2nd UNPIVOT operator 2nd 3rd 4th syntax UPDATE command UPDATE statement Update( ) method (DataAdapter) 2nd 3rd events raised during updates events raised in row updates of data source Update( ) method (DbDataAdapter) UpdateBatchSize property (DataAdapter) UpdateChild stored procedure (example) UpdateCommand property UpdateDataSource( ) method using with GridView control UpdateDataWebFormGridView program (example) 2nd 3rd 4th 5th UpdateDataWindowsFormDataGridView program (example) 2nd UpdateDifferentDataSource program (example) 2nd 3rd 4th UpdateDifferentDataSource table (example) UpdatedRowSource property (Command) 2nd UpdateGrandchild stored procedure (example) UpdateManyManyRelationship program (example) 2nd 3rd UpdateParent stored procedure (example) UpdatePrimaryKey program (example) 2nd 3rd 4th UpdateRowSource enumeration UpdateRowSource property (Command) updates batch updates using DataAdapter 2nd 3rd Data set with many-to-many relationship 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th data source 2nd 3rd 4th 5th UpdateStatus enumeration values UpdateTable( ) method UpdateUsingOpenXml table (example) User Connections counter UserDefinedFunctions class using blocks UTF-8 encoding Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] var keyword varbinary (max) data type VB (Visual Basic) Group By clause Item( ) property Nothing type Order By clause Visual Studio typed DataSet VolumeTriggers program (example) 2nd 3rd Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] W3C XML Path Language (XPath) wait handles wait model WaitAll( ) method (WaitHandle) 2nd WaitAny( ) method (WaitHandle) 2nd WAITFOR statements 2nd WaitHandle class 2nd 3rd web applications Web Forms binding a field to a control 2nd 3rd 4th binding data to DataList control 2nd 3rd binding data to DetailsView control 2nd 3rd 4th binding data to FormView control 2nd 3rd 4th binding data to GridView control 2nd 3rd binding data to Repeater control 2nd 3rd binding result set columns to a control 2nd 3rd caching data to improve performance 2nd 3rd 4th 5th displaying image from database in a control 2nd 3rd 4th GridView control 2nd localizing client-side data 2nd web.config files authentication mode SQL Server connection from ASP.NET using integrated security web application impersonating domain user WHERE clause 2nd where clause (LINQ query) Windows Authentication 2nd Windows Forms binding data to a control 2nd 3rd binding data to DataGridView control 2nd 3rd DisplayDataLinkPropertiesDialog (example) displaying an image from a database in a control 2nd 3rd 4th loading data into and binding a field to a control 2nd 3rd 4th 5th 6th searching a DataGridView control 2nd 3rd timer using BindingNavigator and BindingSource controls 2nd 3rd 4th 5th Windows Performance Monitor Windows systems OLE DB providers and ODBC drivers registry registry key for installed ODBC drivers registry scan for OLE DB providers WriteProviderIndependentCode program (example) 2nd 3rd WriteToServer( ) method (SqlBulkCopy) WriteXml( ) method WriteXmlSchema( ) method 2nd 3rd Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] XML convergence with ADO.NET in NET creating file showing changes to a DataSet 2nd DataSet transformation using XSLT 2nd 3rd 4th DiffGram 2nd 3rd filling a DataSet using template query 2nd 3rd 4th 5th 6th 7th formatting column values retrieving data with XPath query 2nd 3rd 4th 5th serialization SQL Server XML data type column 2nd 3rd storing and retrieving with NonXML column 2nd 3rd 4th 5th support by SQL Server support in NET synchronizing a DataSet and XmlDataDocument transforming DataSet document into Recordset document updating changes to SQL Server using OpenXML 2nd 3rd 4th 5th using file to save and load a DataSet or DataTable 2nd 3rd 4th 5th 6th XSD schema files to save and load DataSet 2nd 3rd 4th XML Editor XML Schema Definition Tool (xsd.exe) XmlDataDocument class 2nd XmlField data type XmlNodeList XmlReader class 2nd XmlReadMode enumeration 2nd XmlSerializer class XmlTextReader class XmlTextWriter class XmlWriteMode enumeration 2nd xp_enum_oledb_providers stored procedure XPath classes that parse and evaluation XPathQueryDataSet (example) XSD (XML Schema Definition) language 2nd using files to save and load a DataSet 2nd 3rd 4th 5th XSD schema for strongly typed DataSet annotations XSL (Extensible Stylesheet Language) 2nd XslCompiledTransform class XSLT (Extensible Stylesheet Language Transformations) transforming a DataSet 2nd 3rd 4th XslTransform object ... Appendix A What's New in ADO. NET Since Version 1.0 Recipe A.1 ADO. NET 2.0 Recipe A.2 ADO. NET 3. 5 Colophon Index ADO. NET 3. 5 Cookbook , Second Edition by Bill Hamilton Copyright © 2008 O'Reilly Media, Inc... Finally, Appendix A discusses changes made to ADO. NET since version 1.0, covering both ADO. NET 2.0 and ADO. NET 3. 5 P2 .5 What Was Left Out The primary objective of this book is not to be a reference or a primer about ADO. NET This second edition is expanded to... such as LINQ ADO. NET 3. 5 Cookbook offers a painless way for those of you who prefer to learn by doing when it comes to expanding your skills and productivity ADO. NET 3. 5 Cookbook, 2nd Edition by Bill Hamilton

Ngày đăng: 26/03/2019, 16:04

Từ khóa liên quan

Mục lục

  • ADO.NET 3.5 Cookbook, 2nd Edition

  • Table of Contents

  • ADO.NET 3.5 Cookbook, Second Edition

  • Preface

  • Chapter 1. Connecting to Data

    • Recipe 1.0. Introduction

    • Recipe 1.1. Storing Connection Strings

    • Recipe 1.2. Building a Connection String

    • Recipe 1.3. Connecting to SQL Server

    • Recipe 1.4. Connecting to a Named Instance of SQL Server

    • Recipe 1.5. Connecting to SQL Server Using an IP Address

    • Recipe 1.6. Connecting to SQL Server Using Integrated Security from ASP.NET

    • Recipe 1.7. Connecting to an Oracle Database

    • Recipe 1.8. Connecting to an OLE DB Data Source

    • Recipe 1.9. Connecting to an ODBC Data Source

    • Recipe 1.10. Connecting to a Microsoft Access Database

    • Recipe 1.11. Connecting to a Password-Protected Microsoft Access Database

    • Recipe 1.12. Connecting to a Microsoft Access Database from ASP.NET

    • Recipe 1.13. Connecting to a Microsoft Excel Workbook

    • Recipe 1.14. Connecting to a Text File

    • Recipe 1.15. Changing the Database for an Open Connection

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan