Vous êtes sur la page 1sur 41

SYBEX Index

ADO and ADO.NET Programming


Mike Gunderloy

Index

Copyright 2002 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved. No part of this publication may be stored in a retrieval system, transmitted, or reproduced in any way, including but not limited to photocopy, photograph, magnetic or other record, without the prior agreement and written permission of the publisher. ISBN: 0-7821-2994-3 SYBEX and the SYBEX logo are either registered trademarks or trademarks of SYBEX Inc. in the USA and other countries. TRADEMARKS: Sybex has attempted throughout this book to distinguish proprietary trademarks from descriptive terms by following the capitalization style used by the manufacturer. Copyrights and trademarks of all products and services listed or described herein are property of their respective owners and companies. All rules and laws pertaining to said copyrights and trademarks are inferred. This document may contain images, text, trademarks, logos, and/or other material owned by third parties. All rights reserved. Such material may not be copied, distributed, transmitted, or stored without the express, prior, written consent of the owner. The author and publisher have made their best efforts to prepare this book, and the content is based upon final release software whenever possible. Portions of the manuscript may be based upon pre-release versions supplied by software manufacturers. The author and the publisher make no representation or warranties of any kind with regard to the completeness or accuracy of the contents herein and accept no liability of any kind including but not limited to performance, merchantability, fitness for any particular purpose, or any losses or damages of any kind caused or alleged to be caused directly or indirectly from this book. Sybex Inc. 1151 Marina Village Parkway Alameda, CA 94501 U.S.A. Phone: 510-523-8233 www.sybex.com

Index
Note to the Reader: Throughout this index boldfaced page numbers indicate primary discussions of a topic. Italicized page numbers indicate illustrations.

A
AbsolutePosition property, 730 AcceptChanges method in DataRow, 406 in DataSet, 31, 404 in DataTable, 405 AcceptChangesDuringFill property, 401 AcceptRejectRule property, 408 Access. See Microsoft Access Access Data Projects (ADPs), 820 AccessConnection property, 822823 ACID properties, 105 Action property, 468469 Activate event, 793 Active Directory, 690692, 691 connecting to, 696 directory service, 692695, 693 MySQL database, 708709 connecting to, 711714, 712713 installing, 709711, 710711 limitations of, 714717 navigating, 696702, 697 object information in retrieving, 702705 searching for, 705708, 706 Active Directory Services Interface (ADSI), 695 Active DS Type Library, 702 ActiveConnection property in Catalog, 225, 280 in Cellset, 289, 307 in Command, 72, 95 in CurrentProject, 823 in Record, 135 in Recordset, 58, 186, 191, 210, 212, 651, 670671 ActiveX server, 385387

AD. See Active Directory AD canonical names, 694 ad constants, 201202, 230 ad hoc linking, 623626, 624 AD schema, 690 adAddNew constant, 102 adAffect constants, 89, 100 adApproxPosition constant, 102 adBookmark constant, 102 adCmd constants, 59 Add Connection command, 424 Add DataSet dialog box, 584, 889 Add-In Manager command, 735 Add method in BindingCollection, 798 in Columns, 462 in ControlBindingsCollection, 516 in ListView, 189190 in Nodes, 551, 700 in Parameters, 444, 449 in QueryTables, 858 in Relations, 432 in SortedList, 374 in TableMappings, 416 in Tables, 462 Add New Item command, 424 Add New Item dialog box, 893894 Add Reference dialog box, 357, 365, 371 Add Server dialog box, 327 Add Table dialog box, 580, 587 Add Web Reference dialog box, 510 AddChildren procedure, 551552 adDelete constant, 102 AddHandler statement, 335, 350351, 351 adding data in ADO.NET, 452456 with Command, 100

962

adding dataADO.NET

DataSet primary keys, 458463, 460 records to bound data, 593595, 594 with Recordsets, 9799 through Windows Forms, 532 AddNew method in CurrencyManager, 520, 532 in DataView, 408, 437 in Recordset, 9798, 184 AddTip procedure, 353354, 360, 365 adFilter constants, 93 adFind constant, 102 adHoldRecords constant, 102 adIndex constant, 103 adLock constants, 59 Admin user, 257 Admins group, 257 adMode constants, 49, 727 adMovePrevious constant, 103 adNotify constant, 103 ADO data shaping in. See data shaping data source connections in, 4857, 54 disconnected Recordsets in. See disconnected Recordsets; RDS (Remote Data Service) events in. See events history, 46 new features ADO 2.5, 68 ADO 2.6, 910 ADO 2.7, 1012 nonrelational data, 134 Command object and result streams, 148152, 148 Record object, 134140, 136 resource Recordsets, 140141 Stream object, 141148 object model, 2021, 20, 44, 44, 918, 918 Command object, 45, 920 Connection object, 45, 918919 Error object, 48, 926 Field object, 47, 924 Parameter object, 46, 923 Property object, 927 Record object, 47, 924925 Recordset object, 46, 920923 Stream object, 47, 925926 obtaining, 1314

with OLE DB. See OLE DB Recordsets in. See Recordset object ADO Data Control binding with, 728729 connecting to data, 723724, 723 events, 740745 example, 729730, 729 properties, 724728 Refresh method for, 740 ADO Extensions for DDL and Security. See ADOX (ADO Extensions for DDL and Security) ADO MD, 2829 Analysis Manager, 266, 266 Analysis Services. See Analysis Services architecture of, 264265, 264265 data retrieval in. See MDX (Multidimensional Expressions) language Decision Support Objects (DSO), 267 example, 267269 object model, 277278, 277, 938, 938 Axis, 291292, 943944 Catalog, 279280, 938939 Cell, 290291, 943 Cellset, 289290, 290, 942943 Connection, 278279, 938 CubeDef, 280281, 939 Dimension, 281282, 939940 Hierarchy, 282283, 940 Level, 284285, 940941 Member, 285286, 293, 941942 Position, 292, 944 PivotTable Service, 269 ADO.NET auto-generated commands in, 456458 component overview, 34, 35 concurrency in, 471474, 473 DataSets for, 3031, 31 filtering and sorting data in, 434438, 437 finding data in, 433434 with multiple tables, 426432, 427, 429, 432 navigating, 421423 populating, 412417, 414, 416 strongly-typed, 423425, 424 with XML, 417421 design points, 1213 events in, 463467, 463 DataAdapter, 469471

ADO.NETAffectRecords argument

963

DataTable, 467469 order of, 470471 .NET data providers, 409 ODBC, 412 OLE DB, 411 SQL Server, 409411 object model, 394, 394, 946, 946 Command object, 397399, 948949 Connection object, 396397, 948 Constraint object, 408, 958 data provider objects, 395403, 401, 946947 DataAdapter object, 401403, 951952 DataColumn object, 407, 957958 DataReader object, 398401, 401, 949951 DataRelation object, 406, 955956 DataRow object, 406407, 956957 DataSet object, 404, 952953 DataTable object, 404405, 954955 DataView object, 408409, 959 obtaining, 1315 primary keys in, 458463, 460 process, 3234 providers for, 32 stored procedures in, 438444, 439 transactions in, 474476 updating data in, 446 adding, 452456 DataSet filling, 446449 deleting, 456 editing, 449450 reconciling changes, 450452, 451 with Visual Basic. NET. See Visual Basic. NET Windows Forms in. See Windows Forms AdodcCustomers_MoveComplete procedure, 797 adodcNwind_EndOfRecordset procedure, 741 adodcNwind_Error procedure, 742 adodcNwind_FieldChangeComplete procedure, 743 adodcNwind_MoveComplete procedure, 742 adodcNwind_RecordChangeComplete procedure, 744 adodcNwind_RecordsetChangeComplete procedure, 745 adodcNwind_WillChangeField procedure, 743 adodcNwind_WillChangeRecord procedure, 743744 adodcNwind_WillChangeRecordset procedure, 744745 adodcNwind_WillMove procedure, 743 adodcOrders_MoveComplete procedure, 730

adOpen constants, 58 ADOX (ADO Extensions for DDL and Security), 27, 224 databases in, 241242 indexes in, 244245 limitations of, 239241 for linked tables, 678681, 679 object model, 224225, 224, 930, 930 Catalog object, 225226, 930931 Column object, 228231, 229, 931933 Command object, 239, 936 Group object, 234236, 235, 934 Index object, 232233, 933 Key object, 233234, 934 Procedure object, 238, 251255, 251, 935 Table object, 226228, 228, 931 User object, 237238, 934935 View object, 238239, 251255, 251, 935 relationships in, 245248, 249 security in, 2728, 255 groups, 256257 ownership, 258260 permissions, 260262 users, 257258 tables in, 242244 views and stored procedures in, 249250 adPerm constants, 260 adPersist constants, 145 ADPs (Access Data Projects), 820 adResync constants, 89, 103 adRight constants, 262 adRsn constants, 120, 773 adSearch constants, 79 adSeek constants, 78, 103 ADSI (Active Directory Services Interface), 695 adStatus constants, 114116 adSync constants, 60 ADTG (Advanced Data TableGram) format, 26 adUpdate constants, 103 adUpdateBatch constants, 103 adUse constants, 60 Advanced Data Binding dialog box, 517518, 517 Advanced Data TableGram (ADTG) format, 26 Advanced tab, 753, 754 adXact constants, 50, 107 AffectRecords argument for Delete, 100 for Resync, 89

964

AfterRefresh eventasterisks (*)

AfterRefresh event, 859 aggregate hierarchies with Command objects, 758760, 759 relation, 171172, 172 for summarizing Data Reports, 786788, 787788 aggregates from child Recordsets, 178179 for data shaping, 165 Aggregates tab, 753, 758, 759 Allow Anonymous Access option, 204 Allow IIS to Control Password option, 204 AllowAddNew property, 733734 AllowArrows property, 733 AllowDbNull property, 407 AllowDelete property in DataGrid, 733734 in DataView, 408, 437, 891 AllowEdit property, 409, 437, 891 AllowNew property, 409, 437, 891 AllowUpdate property, 733734 AllowUserResizing property, 746 AlternatingItemTemplate template, 599 Analysis Manager, 266, 266 Analysis Services, 266, 269270 cubes in, 272276, 272, 275276, 287288, 287 dimensions in, 270271 measures in, 271272, 271 MOLAP, ROLAP, and HOLAP, 273 for PivotTable Service, 861, 861 And operator in Jet, 672 for Recordsets, 60 Animal class, 339344 ANY function, 165 APL language, 362 Append method in Fields, 201203 in Procedures, 249 in Views, 249 Append-Only Rowset property, 669 AppendChild method, 547 AppendChunk method, 146 appending fields, 201203 AppleTalk library support, 12 application domains, 321

applications, .NET connecting to data, 327328, 328329 creating, 324, 325 deploying and configuring, 322 hybrid, 372373, 373 Customer class, 378379 Customers class, 373378 user interface code, 379381 running projects, 330, 331 user interfaces, 329330 Visual Basic .NET environment, 326327 ApplyDefaultSort property, 891 architecture ADO.NET, 264265, 264265 ASP.NET, 577578 .NET. See .NET OLAP, 269 OLE DB, 1819 PivotTable Service, 860861, 860 Arrange By Connection option, 764 Arrange By Object option, 764 Array function, 77 ArrayList class, 355 As New syntax, 375 ASC keyword, 81 ASCII character set, Stream for, 143 ASP.NET, 323, 576577 DataList control in, 595 for displaying data, 595599, 596, 598 SelectedItemTemplate, 599600, 600 deployment in, 578 disconnected data architecture in, 577578 displaying bound data, 578 adding records, 593595, 594 in DataGrids, 579583, 581582 detail information, 586589, 587588 editing and deleting data, 589593, 590 parameterizing data, 583585, 586 legacy ADO with, 600604, 603 Web Forms in, 577 ASPX files, 323, 576577 assembly manifests, 320321 associating control types with data, 761763 asterisks (*) in MDX, 304 in XPath, 559, 629

AsyncProgress eventbtnAddTip_Click procedure

965

AsyncProgress event, 794795 at signs (@) in XPath, 559, 629 atomicity in transactions, 105 Attrib argument, 201 attribute-centric XML, 481 attributes in Active Directory, 692, 697 in XPath, 559, 629 Attributes property in Column, 229 in Connection, 107, 749 in XmlNode, 547 Authentication tab, 723, 727 Auto constant, 418, 502 auto-generated commands, 456458 AutoIncrement property, 407 AutoIncrementSeed property, 407 AutoIncrementStep property, 407 Autolookup, 826827, 827 AutoNumber fields, 671 AutoPostBack property, 584585 AVG function, 165 Axes collection, 289 axes in MDX, 294, 301303, 302303 Axis object, 28, 291292, 943944

B
BackColor property, 518519 Banyan Vines SQL library support, 12 bars (|) in XPath, 561 base classes, 340341 basGeneral module, 107 batch updating, 8889, 186195, 187, 195 BeforeRefresh event, 859 BeginEdit method, 406 BeginInit method, 898 BeginTrans method, 106 BeginTransaction method, 396, 474 BeginTransComplete procedure, 116, 771 binary data, Stream for, 142 binary large objects (BLOBs), 146148, 147 BindData procedure, 590591, 593, 595 binding. See bound data Binding object, 515516 BindingCollection object, 213214, 797798

BindingContext property, 520, 522 Bindings property, 520 Blank Password option, 274 BLOBs (binary large objects), 146148, 147 BOF property, 65, 80 BOFAction property, 724725 Bookmark property, 80 bookmarks, 80, 669 Bookmarks Ordered property, 669 Boolean expressions in XPath, 630 BorderStyle property, 782 BottomMargin property, 782 bound data, 514, 796 ADO Data Control, 722 binding with, 728729 connecting to data, 723724, 723 example, 729730, 729 properties, 724728 Refresh method for, 740 in ASP.NET, 578 adding records, 593595, 594 in DataGrids, 579583, 581582 detail information, 586589, 587588 editing and deleting, 589593, 590 parameterizing, 583585, 586 with classes, 797800 Data Form Wizard for, 735739, 737739 DataGrid object, 524526, 525, 732734, 733734 DataList and DataCombo objects, 730732, 731732 forms to Data Environment objects, 764767, 765 to Recordsets, 830840, 830, 834, 837, 839 Hierarchical FlexGrid, 745748, 746 in IDE, 514515 ListBox objects, 522524 properties, 517519, 517518 UserControl objects, 801809, 801802, 805806 BoundColumn property, 731 btnAdd_Click procedure in Data Form Wizard, 901 in Orders.aspx, 594595 btnAddRecord_Click procedure in frmCustomers, 530, 532 in frmOrderEntry, 537 btnAddTip_Click procedure, 357

966

btnCancel_Click procedurebusiness objects

btnCancel_Click procedure, 900 btnCancelAll_Click procedure, 905 btnCancelEdit_Click procedure in frmCustomers, 530 in frmOrderEntry, 537 btnCommand_Click procedure, 398 btnConnection_Click procedure, 397 btnConstructor_Click procedure, 346 btnCreatePK_Click procedure, 461462 btnDataAdapter_Click procedure, 402403 btnDataAdapters_Click procedure, 431 btnDataReader_Click procedure, 400401 btnDelegates_Click procedure, 350 btnDelete_Click procedure in Customer, 380 in Data Form Wizard, 901 btnDeleteRecord_Click procedure in frmCustomers, 530533 in frmOrderEntry, 537538 btnExceptionHandling_Click procedure, 348350 btnExecute_Click procedure, 562 btnFillSchema_Click procedure, 459 btnFind_Click procedure, 433434 btnFirst_Click procedure for DataSets, 423 in frmCustomers, 529 in frmOrderEntry, 536 in frmSimple, 521 btnGetDiffGram_Click procedure, 491492 btnGetXml_Click procedure, 479 btnGetXmlSchema_Click procedure, 481483 btnInheritance_Click procedure, 341 btnInterfaces_Click procedure, 347348 btnJoin_Click procedure, 426 btnLast_Click procedure for DataSets, 423 in frmCustomers, 529 in frmOrderEntry, 536 in frmSimple, 522 btnLoad_Click procedure in Data Form Wizard, 903 in frmXmlDataDocument, 554555 btnMain_Click procedure, 454455 btnMerge_Click procedure in frmMerge, 504 in frmMergeDiffGram, 505506 btnMissingSchemaAction_Click procedure, 460461

btnNamespaces_Click procedure, 352 btnNavFirst_Click procedure, 905 btnNavLast_Click procedure, 905 btnNavNext_Click procedure, 905 btnNavPrev_Click procedure, 905 btnNext_Click procedure for DataSets, 423 in frmCustomers, 528529 in frmOrderEntry, 535536, 538539 in frmSimple, 521 for result sets, 430 btnOpen_Click procedure, 425 btnOverloading_Click procedure, 344 btnPopulateDatabase_Click procedure, 413415 btnPopulateXML_Click procedure, 417 btnPrevious_Click procedure for DataSets, 423 in frmCustomers, 529 in frmOrderEntry, 536 in frmSimple, 521 btnPromptedEdit_Click procedure, 449450 btnReadXml_Click procedure, 503 btnResultSets_Click procedure, 429430 btnSaveChanges_Click procedure in Customer, 380 in frmCustomers, 529531 in frmOrderEntry, 537 btnSaveUpdates_Click procedure in frmEvents, 465 in frmUpdate, 448, 450 in frmUpdate2, 457 btnSelect_Click procedure for DataSets, 436 in frmXPathRows, 564565 btnShape_Click procedure, 427428 btnSharedMembers_Click procedure, 342 btnTableMapping_Click procedure, 415416 btnTransactions_Click procedure, 475 btnTransform_Click procedure, 572573 btnUpdate_Click procedure, 901 btnWithoutParameters_Click procedure, 439440 btnWithParameters1_Click procedure, 441442 btnWithParameters2_Click procedure, 443 btnWriteXml_Click procedure, 419 BufferedStream class, 487 business objects, invoking, 216221, 218

C# languageclasses

967

C
C# language, 358360 CacheSize property in ADO Data Control, 725 in Command, 752 in Recordset, 60 CALC expressions, 165166 calculated fields and expressions in Data Reports, 781 for data shaping, 165166 CallSyntax property, 752 Cancel method in Command, 397 in Connection, 654 Cancel Refresh button, 850 CancelCommand procedure, 600 CancelCurrentEdit method, 520, 531533 CancelEdit method, 406 CancelRefresh method, 859 CancelUpdate method, 84, 98 CanGrow property, 784 canonical names, 694 CanPropertyChange method, 803 Capacity property, 374 Caption datatype, 762 Caption property in Data Report, 783 in DataColumn, 407 in Level, 284 in Member, 285, 293 captions for ADO Data Controls, 729730 Care interface, 346347 case sensitivity in DataTable, 405 in MDX, 296, 304 CaseSensitive property, 405 CATALOG_NAME property in CubeDef Properties, 281 in Dimension Properties, 282 in Hierarchy Properties, 283 in Level Properties, 284 Catalog object in ADO MD, 28, 279280, 938939 in ADOX, 27, 225226, 930931 catalog stored procedures, 608 Catch keyword, 348350

Categorized tab, 749 cdbShowDialog_Click procedure, 25 Cell object, 28, 290291, 943 CELL_ORDINAL property, 291 Cellset object in ADO MD, 28, 289290, 290, 942943 in MDX, 299 opening, 305307, 305 Recordsets from, 307309, 308 change management events, 122123 ChangeDatabase method, 396 ChangeInserted Rows property, 669 ChangePassword method, 237, 258 changes in ADO.NET, 450452, 451 chaptered Recordsets, 159, 179180 Charset property, 142143 CheckedListBox objects, binding data to, 522524 child domains, 691 child Recordsets aggregations from, 178179 in data shaping, 163, 165 reusing, 176178 ChildColumns property, 406 ChildCount property, 285, 293 ChildKeyConstraint property, 406 ChildNodes property, 547 ChildRelations collection, 406 ChildRelations property, 405 Children collection, 285 Children keyword, 299 Children property, 293 ChildTable property, 406 Choose a Data Connection panel, 893, 895 Choose a DataSet panel, 893, 895 Choose Data Source dialog box, 863 Choose Tables and Columns panel, 893, 896 Choose Tables or Views panel, 893, 893, 895 Choose the Display Style panel, 896 Choose Your Data Connection panel, 595 Class_GetDataMember procedure, 811 Class_Initialize procedure, 799800 Class View, 326 classes binding with, 797800 inheritance in, 339342, 341 libraries for, 318, 353356 in .NET, 332334, 339

968

Clear methodcmdNext_Click procedure

Clear method in ControlBindingsCollection, 516 in DataSet, 31, 404 in DataTable, 405 in SortedList, 374 Client Cursor Engine, 646 Client Data Manager, 820821, 821 Autolookup in, 826827, 827 connection strings and properties for, 821824 cursors in, 827829, 828 defaults in, 829, 829 updating with, 824826, 825 client-side graceful degradation in Access, 69 in Oracle, 6970 in SQL Server, 6869 Clone function in SortedList, 374 in XML schema files, 913 CloneNode method, 547 Close method in Cellset, 289 in Connection, 51, 396 in DataReader, 399 in Record, 135 in Stream, 142 CLR (Common Language Runtime), 315 for ASP.NET, 576577 for interoperability, 364366 Clustered property, 232233 cmdAddNewAccess_Click procedure, 98100 cmdADExplorer_Click procedure, 697 cmdAdHoc_Click procedure, 625626 cmdBlob_Click procedure, 146 cmdBrowse_Click procedure, 253 cmdCDM_Click procedure, 825 cmdCellset_Click procedure, 268269 cmdChangeOwnership_Click procedure, 259 cmdCheckConnection_Click procedure, 645 cmdCommandUpdateAccess_Click procedure, 9495 cmdCommandUpdateSQLServer_Click procedure, 9597 cmdConnect_Click procedure in frmConnectionProperties, 666667 in frmExplore, 226 in frmSamples, 111 in frmSecure, 235236

cmdConnect1_Click procedure in frmBatchUpdates, 190191 in frmCloseSamples, 51 cmdConnection_Click procedure, 611 cmdCreateConnection_Click procedure, 667 cmdCreateGroup_Click procedure, 256257 cmdCreateLink_Click procedure, 618619, 621 cmdCreateObjects_Click procedure, 246248 cmdCreateUser_Click procedure, 250, 257258 cmdDeleteSQLServer_Click procedure, 101102 cmdDistributed_Click procedure, 622623 cmdExecute_Click procedure in frmLink, 681682 in frmMySQLConnection, 713714 in frmOPENXML, 632633 in frmParameter, 767 in frmSQL, 655656 cmdFilter_Click procedure, 9293 cmdFind_Click procedure, 7980 cmdFirst_Click procedure in frmComplexControl, 809 in frmDEBound, 765 in frmMSRemote, 210 in frmMultipleControl, 804 in frmRemoteDataControl, 214 cmdGetData_Click procedure, 651 cmdGetList_Click procedure, 253254 cmdGetSchema_Click procedure, 287288 cmdGetUsers_Click procedure, 683684 cmdImmediateAccess_Click procedure, 8586 cmdInvestigateCursors procedure, 70 cmdLast_Click procedure in frmComplexControl, 809 in frmDEBound, 765 in frmMSRemote, 210 in frmMultipleControl, 805 in frmRemoteDataControl, 214 cmdLink_Click procedure, 679680 cmdListDimensions_Click procedure, 267268 cmdLoad_Click procedure, 136138, 145 cmdMySQLCursors_Click procedure, 714716 cmdNext_Click procedure in frmComplexControl, 809 in frmDEBound, 765 in frmMSRemote, 211 in frmMultipleControl, 805 in frmRemoteDataControl, 214215

cmdOpen1_Click procedureCommand property

969

cmdOpen1_Click procedure, 189 cmdOpenDefault_Click procedure, 6162 cmdOpenRecordsetFromDatabase_Click procedure, 144 cmdOpenRecordsetFromStream_Click procedure, 145 cmdOpenSQLStatement_Click procedure, 63 cmdOpenStream_Click procedure, 144 cmdParametersRefresh_Click procedure, 653 cmdPrevious_Click procedure in frmComplexControl, 809 in frmDEBound, 765 in frmMSRemote, 211 in frmMultipleControl, 805 in frmRemoteDataControl, 214 cmdResolve1_Click procedure, 193194 cmdResync_Click procedure, 9091 cmdRetrieveData_Click procedure, 621 cmdSave_Click procedure, 145 cmdSaveChanges_Click procedure in frmCustomObject, 218 in frmMSRemote, 212 in frmRemoteDataControl, 215 in frmSyntheticRecordset, 200 cmdSeek_Click procedure, 7879 cmdSetPermissions_Click procedure, 260261 cmdSort_Click procedure, 8182 cmdTransactions_Click procedure, 107108 cmdUpdate_Click procedure, 840 cmdUpdate1_Click procedure, 192 cmdView_Click procedure, 6364 cmdWithoutParameters1_Click procedure, 71 cmdWithoutParameters2_Click procedure, 71 cmdWithParameters_Click procedure, 7374 cmdWithParameters2_Click procedure, 7476 cmdWriteConflict_Click procedure, 8688 cn (Common-Name) attribute, 692 COBOL (Common Business-Oriented Language), 362363 code access security, 321 code-behind Web Forms, 577 Col property, 747 collections in ADOX, 225 CollectProperties method, 62 Color tab, 724 ColPosition property, 748 ColSel property, 747 Column_Changed procedure, 466

Column_Changing procedure, 466 column mappings, 498501, 499 Column object, 27, 228231, 229, 931933 Column property, 467 ColumnChanged event, 405, 467468 ColumnChanging event, 405, 467468 ColumnMapping property, 499, 501 ColumnMappings collection, 417 ColumnName property, 407 Columns collection in Catalog, 225 in DataTable, 421 in Index, 232 in Keys, 245 Columns method, 386387 Columns property in Constraint, 408 in DataTable, 405 in Table, 227 COM (Component Object Model), 364 in .NET interoperability, 368369 for OLE DB, 18 COM tab, 371 ComboBox objects, binding data to, 522524 command management events, 117118 Command object in ADO, 20, 45, 920 in ADO.NET, 33, 397399, 948949 in ADOX, 239, 936 in Data Environment creating, 750753, 751 hierarchies with, 755760, 756759 working with, 753754, 754 for database connections, 7274 for editing data adding, 100 deleting, 102 updating, 9497 in Jet, 668669, 675 in SQL Server, 612613, 613 for stored procedures, 439440 with Streams, 9, 148152, 148, 151 in Visual Basic.NET, 876878, 877 Command property for events, 469470 in Procedure, 238, 251 in View, 239

970

CommandBuilder objectconnection strings

CommandBuilder object in ADO.NET, 3334, 403 for auto-generated commands, 456458 CommandError procedure, 675676 commands, auto-generated, 456458 CommandStream.asp file, 151152 CommandStream property, 149 CommandText property in Command, 95 in adding data, 100 in ADO Data Control, 746 in ADO.NET, 33, 397, 440 in Data Environment, 751 in DataGrid, 580, 587 in deleting data, 102 parameters for, 699 in QueryTable, 859 in Recordset, 59, 72, 705706, 708 in result streams, 149 CommandTimeout property in Command, 654 in ADO Data Control, 725 in ADO.NET, 397 in Connection, 749 in Data Environment, 752 CommandType property in Command, 74, 95, 676 in ADO Data Control, 725, 746 in ADO.NET, 398, 440 in Data Environment, 751 in QueryTable, 859 comments in MDX, 304 Commit method in IDbTransaction, 334335 in Transaction, 474 CommitTrans method, 106 CommitTransComplete event, 116, 771 Common Business-Oriented Language (COBOL), 362363 Common Language Runtime (CLR), 315 for ASP.NET, 576577 for interoperability, 364366 Common-Name (cn) attribute, 692 Common Type System (CTS), 317318, 364 complex binding, 514, 796 Component Checker tool, 22 Component Object Model (COM), 364 in .NET interoperability, 368369 for OLE DB, 18 Component Pascal, 363

Components dialog box, 723 computer principal names, 692 concat function, 560 concurrency, 471474, 473 configuration files, 322 Configure Data Adapter hyperlink, 888 configuring .NET applications, 322 conflicts, update, 8694 connect entries in RDS, 207 Connect property, 214 ConnectComplete event, 110, 113115, 117, 769770 connecting to Active Directory, 696 to ADO Data Control, 723724, 723 to Internet, 57 to MySQL database, 711714, 712713 in .NET, 327328, 328329 in Oracle, 647649 connection management events, 114116 Connection object, 107 in ADO, 20, 45, 918919 in ADO MD, 278279, 948 in ADO.NET, 32, 396397, 938 connection strings for, 5257, 54 in Data Environment, 748750 data sources for, 4852 events for command management, 117118 connection management, 114116 in Data Environment, 769771 informational, 118 transaction management, 116117 in Jet, 665668, 666 in SQL Server, 610611, 612 for transactions, 106108 in Visual Basic.NET, 875876, 876 Connection property, 580, 587 in Command, 398 in CurrentProject, 822823 connection strings, 5255, 54 in ADO, 45 in ADO MD, 279 for Client Data Manager, 821824 for data shaping services, 160 in Jet, 661664 in Oracle, 641642 in RDS, 208

connection stringscubes

971

sample, 5657 in SQL Server, 609610 URLs as, 78 Connection tab, 514 for cubes, 274 for Oracle, 645 ConnectionName property, 751 ConnectionSource property, 749 ConnectionString property, 52 in ADO Data Control, 726 in Connection, 4850, 396 in CurrentProject, 824 in DataGrid, 580, 587 in OdbcConnection, 412 in SqlConnection, 410411, 875 ConnectionTimeout property in ADO Data Control, 726 in Connection, 49, 396, 654, 749 consistency in transactions, 105 constants, enumerations for, 336 Constraint object, 408, 958 ConstraintName property, 408 Constraints property, 405 constructors for classes, 334 in Visual Basic .NET, 345346 containers, 705 Contains method in SortedList, 374 in XPath, 560 ContainsKey method, 374, 377 ContainsValue method, 374 ContentType property, 152 contexts in XPath, 558 ContinueUpdateOnError property, 401 Control property, 516 control types, associating with data, 761763 ControlBindingsCollection object, 515516 ControlBox property, 783 conversion functions in CALC, 166 converting DataSets to XML, 478 column mappings in, 498501, 499 DataRelations in, 495498 GetXml for, 478481 GetXmlSchema for, 481485 WriteXml for, 485490 WriteXmlSchema for, 491 writing changes only, 491495, 492

Copy method, 31 CopyFromRecordset method, 854857 CopyTo method, 374 COUNT function in SHAPE, 165 in XPath, 560 Count property in ControlBindingsCollection, 516 in CurrencyManager, 520 in DataView, 409, 437 in SortedList, 374 counting records, 6465 Create a Relationship between Tables panel, 895, 895 Create an OLAP Cube from This Query option, 864 Create Columns Automatically at Run Time option, 589 Create Foreign Key Constraint Only option, 908 Create method, 225 Create New Data Source dialog box, 863 CreateAttribute method, 549 CreateCommand method, 33, 396, 440 CREATED_ON property, 281 CreateElement method, 549 CreateNode method, 549 CreateObject method in DataSpace, 216, 219 example, 245248, 249 in Server, 152, 603604 CreateParameter method, 76, 398, 654 cross-domain calls, 321 cross-language interoperability, 318 CROSSJOIN function, 303 Crystal Services resource type, 871 CStr function, 193 CTS (Common Type System), 317318, 364 Cube Browser tool, 264, 264, 276, 276 CUBE_GUID property, 281 CUBE_NAME property in CubeDef Properties, 281 in Hierarchy Properties, 283 Cube Wizard, 274 CubeDef object, 28, 280281, 939 CubeDefs collection, 280 cubes in ADO MD, 264, 264 in Analysis Services, 272276, 272, 275276, 287288, 287 creating, 862866, 866

972

cubesData Link Properties dialog box

for PivotTable Service, 862 ROLAP, 861862, 862 Cubes folder, 276 curly braces ({}) in MDX, 297 CurrencyManager object, 520522, 531 current contexts in XPath, 558 Current Date control, 782 Current Page Number control, 782 Current property, 520 Current Time control, 782 CurrentProject object, 822 CurrentRow method, 800 CursorLocation property in ADO Data Control, 726727 in Command, 752 in Connection, 49, 749 in MySQL, 716 in Recordset, 61, 67, 186, 188, 196, 651652 cursors in Client Data Manager, 827829, 828 in MySQL, 714716 Recordsets for, 46 CursorType property in ADO Data Control, 726727 in Command, 752 in Recordset, 58, 67, 104 custom errors in SQL Server, 637 Customer class, 378379 Customers class, 373378 Customers.xml file, 196 CustOrders.xml file, 543545, 566568, 567

D
DAO (Data Access Objects), 3637, 37 data access libraries choosing, 3839 DAO, 3637, 37 ODBC, 3536 RDO, 37, 38 Data Access Objects (DAO), 3637, 37 Data Adapter Configuration Error dialog box, 887, 887 Data Adapter Configuration Wizard, 595597, 596, 878879, 879, 888 Data Adapter Preview dialog box, 888, 889 data-aware classes, 796800

data-aware UserControls, 800809, 801802, 805806 data binding. See bound data Data Bindings dialog box, 804805, 805 Data Connection resource type, 871 Data Connection Wizard, 849, 849 Data Connections with Server Explorer, 871872 data consumers, 796 binding with classes, 797800 data-aware classes, 796800 data-aware UserControls, 800809, 801802, 805806 in OLE DB, 19 Data Conversion Library, 19 Data Definition Language (DDL), 27 Data Environment objects, 748 binding forms to, 764767, 765 Command objects for creating, 750753, 751 hierarchies with, 755760, 756759 working with, 753754, 754 Connection objects for, 748750 events in, 767775, 768 options and operations, 760 associating control types with data, 761763 general, 761 miscellaneous, 764 Data Form Wizard, 735736, 892 code generated by, 897905 for grid forms, 738, 738 for Master/Detail forms, 739, 739 for multiple-table data forms, 894897, 895896 for single record forms, 736738, 737 for single-table data forms, 893894, 893894 data link files, 724 Data Link Properties dialog box for ADO Data Control, 724 for ASP.NET, 580 for connections, 5354, 54, 875 for cubes, 274 for Data Environment, 749 for data providers, 2425, 24 for DataSets, 424 for importing data, 849 interface for, 19 for Oracle, 644645 for providers, 514 for Server Explorer, 871

data objects in ADO MDDataGrid control

973

data objects in ADO MD, 288 Axis, 291292 Cell, 290291 Cellset, 289290, 290 Member, 293 Position, 292 data provider objects, 395, 946947 Command, 397399 Connection, 396397 for data shaping, 159 DataAdapter, 401403 DataReader, 399401, 401 minor, 403 OLE DB, 19, 2225, 24 Data Provider property, 160 Data Range Properties button, 850 Data Report objects, 775777, 776 calculated fields in, 781 creating, 777 drag-and-drop for, 778779 events for, 792795, 793 exporting, 790791, 791792 header and footer controls in, 781782 printing, 789790 properties, 782784 summarizing data on, 784788, 785, 787788 Toolbox for, 779781, 780 data retrieval in ADO MD, 293300, 296297 data shaping, 156 in Access reports, 840843, 841, 843 aggregate functions for, 165 calculated expressions for, 165166 chaptered Recordsets, 179180 child Recordsets, 176, 178179 fabricated columns in, 166167, 180184, 181 hierarchical Recordsets, 156159, 157 grouping hierarchies, 162 parameterized hierarchies, 161162 relation hierarchies, 161 for Master/Detail forms, 739 reshaping, 176, 177 services for, 159161, 160 SHAPE statement, 162165, 167172, 168, 170173 synchronizing Recordsets, 173175, 176 Data Shaping Service for OLE DB, 160

data source connections, 4852 connection strings for, 5257, 54 Internet connections, 57 Data Source keyword, 642 Data tab for DataSet, 584 for DataView, 890 for SqlConnection, 587 for SqlDataAdapter, 595 DATA_UPDATED_BY property, 281 DataAdapter object in ADO.NET, 33, 401403, 951952 events in, 469471 for filling DataSets, 384385 multiple, 430432, 432 in Visual Basic.NET, 878888, 879, 887888 Database property, 396 DatabaseName property, 389 databases in ADOX, 241242 DataBind method, 585 DataBindingBehavior property, 797, 800801, 806 DataBindings dialog box, 597 DataBindings property, 515, 804 DataColumn object, 407, 421, 522, 957958 DataColumnMapping object, 416 DataCombo control, 730732, 731732 DataControl object, 213214 DataEnvironment_Initialize procedure, 768 DataEnvironment_Terminate procedure, 768 DataFactory code, 216 DataField property in ADO Data Controls, 729 in Data Environment, 764 in Data Report controls, 784 in DataList and DataCombo controls, 731 in RptTextBox, 781 DataFormat property in Data Environment, 764 in Data Report controls, 784 in RptTextBox, 781 DataGrid control binding data to, 524526, 525 displaying bound data in, 579583, 581582 in frmUpdate, 450 for multiple tables, 432, 432 in .NET, 329 populating, 412417, 414 in Visual Basic, 732734, 733734

974

DataGrid Property BuilderDataSource property

DataGrid Property Builder, 586, 587 DataGrid1_CancelCommand procedure, 591592 DataGrid1_DeleteCommand procedure, 591 DataGrid1_EditCommand procedure, 592 DataGrid1_UpdateCommand procedure, 592 DataKeyField property, 589, 593 DataKeys property, 593 DataList control, 595 for displaying data, 595599, 596, 598 SelectedItemTemplate, 599600, 600 in Visual Basic, 730732, 731732 DataList_SelectedIndexChanged procedure, 599 DataMember property in complex data binding, 800 in Data Environment, 764 in Data Report, 778, 783784, 787788 in DataGrid, 412413 in RptTextBox, 780 in UserControl, 806807 DataReader object in ADO.NET, 34, 399401, 401, 949951 for DataGrids, 582 DataRelation object, 406 in converting DataSets to XML, 495498 detail summary, 955956 DataReport_Activate procedure, 793 DataReport_AsyncProgress procedure, 794 DataReport_Deactivate procedure, 793 DataReport_Error procedure, 795 DataReport_Initialize procedure, 793 DataReport_ProcessingTimeout procedure, 793794 DataReport_QueryClose procedure, 795 DataReport_Resize procedure, 795 DataReport_Terminate procedure, 793 DataRow object, 406407, 433 detail summary, 956957 in Rows, 421 DataRowChangeEventHandler procedure, 335 DataRowCollection object, 433 DataSet object, 3031, 31, 403404 for ASP.NET, 578 Constraint, 408 converting to XML, 478 column mappings in, 498501, 499 DataRelations in, 495498 GetXml for, 478481 GetXmlSchema for, 481485

WriteXml for, 485490 WriteXmlSchema for, 491 writing changes only, 491495, 492 DataColumn, 407 DataRelation, 406 DataRow, 406407 DataTable, 404405 DataView, 408409 detail summary, 952953 filling in ADO.NET, 446449 from ADO Recordsets, 384385, 388390, 388 filtering and sorting data in, 434438, 437 finding data in, 433434 members, 332333 with multiple tables, 426432, 427, 429, 432 navigating and retrieving data, 421423 populating, 412417, 414, 416 primary keys for, 458463, 460 reconstituting from XML, 501503, 502 inferring schemas, 506507 merging data, 504 merging DiffGrams, 504506, 505 reading schemas, 506 strongly-typed, 423425, 424 synchronizing, 555557 in Visual Basic.NET, 888890, 889890 with web services, 508510, 509, 511 with XML, 417421 XPath queries with, 558565, 561, 563 XSLT with, 565574, 566567, 569, 572 DataSet Primary Key option, 907 DataSet Properties dialog box, 890, 890 DataSet property, 553, 557 DataSet template, 906 DataSetName property, 404 DataSource property for ADO Data Control, 729 in Connection, 396 in data binding, 585, 800 in Data Environment, 764 in Data Report, 778, 783 in DataColumn, 522 in DataGrid, 329, 412, 733 in DataList and DataCombo, 731 in Hierarchical FlexGrid, 746 in UserControl, 806807

DataSpace objectDesignPromptBehavior property

975

DataSpace object, 216 DataTable object, 404405 detail summary, 954955 events in, 467469 in Tables, 421 DataTableMapping object, 416 DataType property, 407 datatypes in CTS, 317318 in Oracle, 640641 DataValueField property, 585 DataView object, 408409 detail summary, 959 for filtering and sorting DataSets, 437438 in Visual Basic.NET, 890891 DataViewRowState constants, 435 date and time functions in CALC, 166 date picker, 729 DateCreated property in Procedure, 238 in Table, 227 in View, 239 DateModified property in Procedure, 238 in View, 239 datPrimaryRS_WillChangeRecord procedure, 737 DBMS Version property, 610 DBTYPE datatypes, 166167 dc (Domain-Components) attribute, 692 DDL (Data Definition Language), 2728 ddlCountries_SelectedIndexChanged procedure, 585 Deactivate event, 793 debugging Command objects, 754 Decision Support Objects (DSO) library, 267 declarations namespace, 352353 Visual Basic .NET interfaces, 346347 DECODE expressions, 652 DEFAULT_DOCUMENT field, 141 DefaultDatabase property, 4950 defaults in Client Data Manager, 829, 829 DefaultValue property in DataColumn, 407 in Recordset, 829 DefinedSize property in Append, 201 in Column, 229

degradation of Recordset objects, 6670 delegates, 335, 350351, 351 Delete method in DataRow, 406 in DataView, 409, 437 in QueryTable, 859 in Recordset, 100 DeleteCommand procedure in DataAdapter, 456 in DataList, 600 DeleteCommand property, 33, 401, 886 DeleteCustomer procedure, 378 DeleteRecord method, 135 DeleteRule property, 408 deleting in ADO.NET, 456 bound data, 589593, 590 with Command, 102 linked servers, 617 with Recordsets, 100102 through Windows Forms, 532533 delimiters in MDX, 298, 304 deploying applications in ASP.NET, 578 in .NET, 322 deprecated components, 1112 Depth property in DataReader, 399 in Level, 284 derived classes, 341, 341 DeriveParameters method, 442443 DESC keyword, 8182 Description property in CubeDef, 280 in CubeDef Properties, 281 in Dimension, 281 in Dimension Properties, 282 in Hierarchy, 283 in Hierarchy Properties, 283 in Level, 284 in Level Properties, 285 in Member, 285, 293 design points, ADO.NET, 1213 designer in Visual Basic .NET, 326 designing Command objects, 754 DesignPassword property, 749 DesignPromptBehavior property, 749

976

DesignSaveAuthentication propertyEH2 procedure

DesignSaveAuthentication property, 749 DesignUserName property, 749 destructors, 345346 Detail bands, 777 Determine Key Columns For Recordset property, 652 Deworm function, 347 Dialect property, 150 Diffgram constant, 418419, 486, 502 DiffGrams in ADO.NET, 31 for DataSets, 489495 merging, 504506, 505 Dimension object, 28, 281282, 939940 DIMENSION properties, 282 Dimension Type panel, 274 DIMENSION_UNIQUE_NAME property in Hierarchy Properties, 283 in Level Properties, 284 Dimension Wizard, 275 DimensionCount property, 292 dimensions in Analysis Services, 270271 in MDX, 299, 301303, 302303 Dimensions collection, 280 direct references in .NET-COM interoperability, 372 direct table Recordsets, finding data in, 7779 Direction property, 455 Director Security tab, 204 directory service, Active Directory, 692695, 693 Directory Service Access screen, 644 DirectRecordset procedure, 676 Disable Warnings option, 761 Disconnect event, 115116, 770 disconnected Recordsets, 186 appending fields in, 201203 in multitiered applications, 221222 optimistic batch updating, 186195, 187, 195 RDS for. See RDS (Remote Data Service) synthetic Recordsets, 195201, 197 DisplayCurrentRow method, 422423 DisplayMember property, 522523 DisplayRecordset procedure, 66 Dispose procedure, 346 distinguished names (DNs), 693694 distributed queries, 678683, 679 .dll extension, 315 DNs (distinguished names), 693694 DNS (Domain Name System), 691

Document Object Model (DOM), 542548, 546, 548, 550 Document Source Providers, 8, 141 DocumentElement property, 549 DocumentType property, 549 DOM (Document Object Model), 542548, 546, 548, 550 Domain-Components (dc) attribute, 692 Domain Name System (DNS), 691 domain trees, 691, 691 domains in Active Directory, 691, 693, 693 in .NET, 321 dot operator (.) in XPath, 559, 629 Downloads page, 709 drag-and-drop for bound forms, 766 for Data Reports, 778779 for edit forms, 891892 from Server Explorer, 873874, 874 DrilledDown property, 285, 293 Driver property, 396 DSO (Decision Support Objects) library, 267 dtMain_Changed procedure, 335 DumpProperties procedure, 667668 durability in transactions, 106 dynamic cursors, 46, 669 Dynamic Help, 326 dynamic Recordsets, 58

E
Eat method, 340341, 343344 edge table format, 631632 edit forms, drag-and-drop for, 891892 Edit Key dialog box, 907, 908 Edit Query button, 850 Edit Relation dialog box, 908909, 909 EditCommand procedure, 600 editing in ADO.NET, 449450 bound data, 589593, 590 through Windows Forms, 531 EditItemIndex property, 593 EditItemTemplate template, 599 EH1 procedure, 350351 EH2 procedure, 351

element-centric XMLExternal Data toolbar

977

element-centric XML, 481 Employees.aspx form, 599 empty Recordsets, 65 empty strings, 647 EmptyClass class, 345346 Enabled property, 783 EnableEditing property, 859 EnableRefresh property, 859 EnableViewState property, 584 End Namespace statement, 352353 EndCurrentEdit method, 520, 531532 EndEdit method, 407 EndInit method, 898, 900 EndOfRecordset event in ADO Data Control, 741 in Recordset, 121, 773 EnforceConstraints property in Data Form Wizard, 903 in DataSet, 404 enumerations in .NET, 336 OLE DB data providers, 2425, 24 EOF property, 65, 7980 EOFAction property, 724725 Err object, 48 Error event in ADO Data Control, 741742 Data Form Wizard for, 736 in DataReport, 795 Error object, 20, 48, 403, 926 ErrorCollection object, 403 errors reporting capabilities for, 10 in SQL Server, 637 Errors property, 469470 Event Logs resource type, 871 EventReasonEnum constants, 773 events, 110113, 110 for ADO Data Control, 740745 ADO.NET, 463467, 463 DataAdapter, 469471 DataTable, 467469 order of, 470471 for classes, 334 Connection command management, 117118 connection management, 114116

in Data Environment, 769771 informational, 118 transaction management, 116117 in Data Environment objects, 767775, 768 for Data Reports, 792795, 793 example, 123131, 124 Recordset, 118 change management, 122123 in Data Environment, 771775 navigation, 119121 retrieval, 119 Excel, 848 importing data into, 848854, 848850, 854 with CopyFromRecordset, 854857 with QueryTable objects, 857859 OLAP data in, 859862, 860862 Exception class, 350 exception handling, 348350, 349 .exe extension, 315 Execute method, 73, 95 ExecuteComplete event, 118, 770771 ExecuteNonQuery method, 398, 593 ExecuteOptions property, 214 ExecuteReader method, 34, 398 ExecuteScalar method, 398 ExecuteXmlReader method, 398 explicit Connection objects, 45 Export dialog box, 791, 791 Export method, 791 exporting Data Reports, 790791, 791792 ExportReport method, 790, 794 EXPRESSION property, 286 expressions calculated, 165166 in MDX, 304 Extended Properties property, 642, 664 extensibility ADO Multidimensional extensions, 2829 ADOX, 2728 Extensible Markup Language. See XML (Extensible Markup Language) Extensible Stylesheet Language Transformations (XSLT) standard, 361 with DataSets, 565574, 566567, 569, 572 for .NET, 361362 External Data toolbar, 850

978

fabricated columnsForm_Open procedure

F
fabricated columns, 166167, 180184, 181 Fact Table Row Count warning, 275, 275 Feed function, 344 Fetch Backwards property, 669 FetchComplete event, 119, 772 FetchProgress event, 119, 772 Field Mapping options, 760, 762763 Field object, 6566 in ADO, 21, 47, 924 for Command, 754 field status values, 10 FieldChangeComplete event in ADO Data Control, 743 in Recordset, 122, 773774 FieldCount property, 399 FieldNames property, 859 fields appending, 201203 calculated, 781 provider-supplied, 8 Fields collection, 66 in ADO, 47 in Record, 135 FileName property, 486 FileStream object, 487488 Fill method, 384385, 401, 412413, 415, 440, 446 FillDataSet procedure, 903904 FillError event, 402 filling DataSets in ADO.NET, 446449 from Recordsets Dataset and DataAdapter for, 384385 integrating Recordsets, 388390, 388 FillSchema method, 402, 458459 FillWithSchema method, 461 Filter property in Recordset, 193, 673 for updating data, 9194 FilterAxis property, 289 filters in DataSets, 434438, 437 in exception handling, 349 in MDX, 298 in XPath, 630 FilterTest procedure, 672673

FilterTest2 procedure, 673674 Finalize procedure in EmptyClass, 346 in TipLast, 354355 Finally keyword, 348350 financial functions in CALC, 166 Find method for DataSet data, 433434 in DataView, 409 in frmFindSimilar, 707708 in Recordset, 7980 finding Active Directory object information, 705708, 706 DataSet data, 433434 Recordsets, 7780 FindRows method, 409, 437 Finish panel, 275 FirstChild property, 547 FixedCols property, 746 Flags parameter, 631 Font property in ADO Data Control, 724 in Data Report, 783 Font tab, 724 footer controls, 781782 FooterTemplate template, 599 ForcePageBreak property, 784 foreign Keys, 245 ForeignKeyConstraint object, 408 forest root domain, 691 forests, 691, 691 Form_Load procedure for Cellsets, 306309 in frmBatchUpdates, 188 in frmCompare, 158 in frmComplexControl, 809 in frmComplexData, 800 in frmDEBound, 765 in frmFabricate, 181183 in frmMSRemote, 208209 in frmRecordset, 124125 in frmRemoteDataControl, 213 in frmSimpleClass, 797 in frmSync, 174175 in frmSyntheticRecordset, 197198 for Hierarchical FlexGrid, 747 Form_Open procedure in frmCustomers, 832

Form_Open procedurefrmStreamPersist form

979

in frmGeneralDriver, 839840 in frmODBCCustomers, 835 in frmOracleEMP, 835836 in frmSQLCustomers, 830831 Form_QueryUnload procedure in frmMSRemote, 212 in frmRemoteDataControl, 215 Form_Resize procedure in frmComplexControl, 809 for grid forms, 738 Form_Unload procedure, 834 FormatString property, 589 FORMATTED_VALUE property, 291 FormattedValue property, 291 forms, binding to Data Environment objects, 764767, 765 to Recordsets, 830840, 830, 834, 837, 839 forward-only cursors, 46, 58 Fragment constant, 418, 502 Framework class library, 318319 Friend keyword, 874 frmADExplorer form, 697698, 705706, 706, 708 frmAggregate form, 758759, 759 frmBatchUpdates form, 186191, 187 frmChanges form, 491 frmCloseSamples form, 51 frmColumnMappings form, 499, 499 frmCommandStream form, 148, 148 frmCompare form, 158 frmComplex form, 523525, 525 frmComplexClass form, 799 frmComplexControl form, 806809, 806 frmComplexData form, 800 frmConcurrency form, 472473 frmConnectionProperties form, 665667, 666 frmConstraints form, 458 frmCustomers form, 526531, 527, 832 frmCustomers_Load procedure, 527528 frmCustomObject form, 217218, 218 frmDataList form, 730731, 731 frmDataSet form, 413 frmDataView_Load procedure, 438 frmDEBound form, 764765, 765 frmDEEvents form, 768, 768 frmDOM form, 549, 550 frmDREvents form, 792793, 793 frmDynamicProperties form, 610, 613614

frmEvents form, 463, 463, 468, 742 frmEvents_Load procedure, 464465 frmExamples form, 167 frmExplore form, 225228, 231232, 238239 frmFabricate form, 181183, 181 frmFindSimilar form, 706708 frmFlexgrid control, 745746, 746 frmGeneral form, 836, 840 frmGeneralDriver form, 836, 840 frmGetRecord form, 10, 11 frmGetXML form, 478 frmGroupingHierarchy form, 757, 757 frmJetCustomers form, 832834, 834 frmLink form, 678682, 679 frmLinkedServers form, 618625 frmMenu form, 147, 147, 249250, 344, 699 frmMerge form, 504506 frmMergeDiffGram form, 505506 frmMSRemote form, 208212 frmMultipleControl form, 803805 frmMySQLConnection form, 712714 frmObjects form, 397398, 400, 402 frmODBCCustomers form, 835 frmOPENXML form, 632633 frmOracleEMP form, 835 frmOrderEntry form, 533539, 533 frmOrderEntry_Load procedure, 534535 frmParameter form, 767 frmProducts form, 452, 829, 829 frmProducts_Load procedure, 453455 frmRandom form, 815816, 815 frmReadXml form, 502503 frmRecordset form, 123131, 124 frmRecordsetProperties form, 6263, 62, 669, 670 frmRelationHierarchy form, 755, 756 frmRemoteDataControl form, 213215 frmROWID form, 651, 657 frmSamples form, 110111 frmSecure form, 235, 235 frmSimple form, 519522 frmSimple_load procedure, 519 frmSimpleBound form, 729, 729 frmSimpleClass form, 797 frmSimpleControl form, 801, 801 frmSQL form, 654657, 654 frmSQLCustomers form, 830831, 830 frmStreamPersist form, 144, 144

980

frmSupports formGetSchemaSerializable function

frmSupports form, 103104, 103 frmSync form, 174 frmSyntheticRecordset form, 197, 197 frmTest form, 645 frmTransform form, 572, 572 frmUpdate form, 447450, 824825, 825 frmUpdate_Load procedure, 447448 frmUpdate2 form, 457 frmUpdate2_Load procedure, 457 frmUserRoster form, 683 frmViews form, 251253, 251 frmWeb form, 135, 136 frmWizardGrid form, 738, 738 frmWizardMasterDetail form, 739, 739 frmWizardSingleRecord form, 736737, 737 frmWriteXml form, 486 frmWriteXmlNested form, 495 frmXmlDataDocument form, 553555 frmXPath form, 561, 561 frmXPathRows form, 563565, 563 FROM clause, 294, 297 FTP for ASP.NET, 578 for .NET applications, 322 fully qualified names in aggregate functions, 165 in MDX, 300 functions CALC, 166 MDX, 305 SHAPE, 165 FunctionType property, 786

G
GAC (Global Assembly Cache), 371 garbage collection, 345 Gardens Point Component Pascal, 363 General tab for ADO Data Control, 723724, 723 for Command object, 753 Generate DataSet dialog box, 328, 329, 508, 515, 596, 888, 892 Generate Insert, Update, and Delete Statements option, 878 Get Started option, 324 GetBoolean method, 399

GetByIndex method, 374 GetByte method, 399 GetBytes method, 399 GetChanges method in DataSet, 404, 491492 in DataTable, 405 GetChar method, 399 GetChars method, 399 GetChildren method, 47, 134135, 139140 GetChildRows method, 407 GetChunk method, 146 GetCountries method, 217, 219 GetCustomer procedure, 377 GetCustomers procedure, 220, 508509 GetDataLoop procedure, 855 GetDataNoLoop procedure, 856 GetDataQueryTable, 857 GetDataTypeName method, 399 GetDateTime method, 399 GetDecimal method, 399 GetDouble method, 399 GetElementFromRow method, 553 GetElementsByTagName method, 549 GetEnumerator method, 374 GetFieldType method, 399 GetFillParameters method, 402 GetFloat method, 399 GetGuid method, 399 GetInfo method, 703 GetInfoEx method, 703 GetInt16 method, 399 GetInt32 method, 399 GetInt64 method, 399 GetKey method, 374 GetKeyList method, 374 GetName method, 399 GetNodeType function, 551553 GetObject function, 703 GetObjectOwner method, 225, 260 GetOleDbSchemaTable method, 396 GetOrdinal method, 399 GetParentRow method, 407 GetPermissions method in Group, 235 in User, 237 GetRowFromElement method, 553 GetSchemaObject method, 280 GetSchemaSerializable function, 913914

GetSchemaTable methodimplicit Connection objects

981

GetSchemaTable method, 399 GetString method, 399 GetStringData procedure, 200 GetTimeSpan method, 399 GetType function, 519 GetValue method, 400 GetValueList method, 374 GetValues method, 400 GetXml method, 31, 404, 418419, 478481 GetXmlSchema method, 404, 481485 Global Assembly Cache (GAC), 371 global catalogs, 695 globally unique identifiers (GUIDs) Dialect for, 150 generating, 814, 815 for schema rowsets, 684 GNU General Public License (GPL), 708 graceful degradation, 6670 GrandTotalName property, 752 Grid (Datasheet) layout, 735 grid forms, Data Form Wizard for, 738, 738 GridX property, 783 GridY property, 783 Groom function, 347 Group Footer bands, 777 Group Header bands, 777 Group object, 28, 234236, 235, 934 grouping hierarchies, 162, 172, 173 with Command objects, 757758, 757758 for summarizing Data Reports, 786788, 787788 Grouping tab, 753, 757 Groups collection, 256, 258 groups in ADOX, 256257 Groups property in Catalog, 225 in User, 237 GuidGen.exe tool, 814, 815 GUIDs (globally unique identifiers) Dialect for, 150 generating, 814, 815 for schema rowsets, 684

header and footer controls, 781782 HeaderTemplate template, 599 Height property, 783784 HelpLink property, 350 heterogeneous data, linked servers for. See linked servers Heterogeneous Table Support property, 665 Hierarchical FlexGrid controls, 745748, 746 hierarchies and hierarchical Recordsets, 156159, 157 with Command objects, 755760, 756759 grouping, 162, 172, 173 parameterized, 161162, 170 relation, 161, 170171, 171 Hierarchies collection, 281 Hierarchy object, 28, 282283, 940 HIERARCHY properties, 283 HIERARCHY_UNIQUE_NAME property, 284 history, ADO, 46 HOLAP (Hybrid OLAP), 273 Horse class, 340, 342344, 347 HTTP (Hypertext Transfer Protocol) for ASP.NET, 577 for RDS, 203 Hybrid OLAP (HOLAP), 273 hyphens (-) in MDX, 304

I
IADsPropertyEntry object, 702703 IADsPropertyList object, 702704 IADsPropertyValue object, 702, 704 Icon argument, 190 Icon property, 783 IDataInitialize interface, 19 IDBPromptInitialize interface, 19 IDbTransaction interface, 334 IDE, data binding in, 514515 IgnoreSchema constant, 418419, 486, 502 IIS (Internet Information Server), 647648 IISAM (Installable ISAM) technology, 660 ILDASM (IL disassmbler), 316317 immediate updating, 8486 Immobile Rows property, 614 implementing interfaces, 347348, 348 OLE DB providers, 810814, 815 implicit Connection objects, 45

H
handlers for RDS, 205207 HasChanges method, 404 HasChildNodes property, 547

982

Import Data dialog boxJet OLEDB: properties

Import Data dialog box, 849 importing data into Microsoft Excel, 848854, 848850, 854 with CopyFromRecordset, 854857 with QueryTable objects, 857859 ImportNode method, 549 ImportRow method, 405 Imports statements, 389 Index argument, 190 Index object, 27, 232233, 933 Index property, 77, 671 indexes in ADOX, 244245 Indexes property, 227 IndexOfKey method, 374 IndexOfValue method, 374 InferSchema constant, 418, 502 InfoMessage event, 118, 396, 769 informational events, 118 inheritance, 339342, 341 Inherits keyword, 341 init function, 852853 InitClass procedure, 914 Initial Catalog parameter, 279 Initialize event in Data Environment, 768 in DataReport, 793 InitializeComponent procedure, 874 InitializeComponents procedure, 898 InitTree method, 698699 InitVars procedure, 914 InnerText property, 547 InnerXml property, 547 Insert Stored Procedure dialog box, 752 InsertAfter method, 547 InsertBefore method, 547 InsertCommand property, 33, 402, 452, 455, 886 Installable ISAM (IISAM) technology, 660 installing MySQL database, 709711, 710711 Integrated Security parameter, 279 interfaces in .NET, 334335 in Visual Basic .NET, 346348, 348 Internet connections, 57 Internet Information Server (IIS), 647648 interoperability in .NET, 318 languages, 364366 .NET-COM, 368369 COM components used directly, 371

metadata, 370 Primary Interop Assembly, 371372 tlbimp and direct references in, 372 unmanaged code and runtime-callable wrappers, 369, 369 invoking business objects, 216221, 218 IRowsetChange property, 613 is a relationships, 339 IS_DATAMEMBER property, 286 ISAM statistics, 685687, 685 IsClosed property, 400 IsDbNull method, 400 IsFixedSize property, 375 IsNull method, 407 isolation in transactions, 106 IsolationLevel property in Connection, 50 in IDbTransaction, 334335 IsPrimaryKey property, 408 IsReadOnly property, 375 IsSynchronized property, 375 Item collection, 421 Item method, 423 Item property in Cell, 291 in Cellset, 289290 in ControlBindingsCollection, 516 in DataReader, 400 in DataRow, 407 in DataView, 409, 437 in SortedList, 375 ItemArray property, 407 ItemTemplate template, 597, 598, 599

J
Jet, 660 Command object for, 668669, 670 Connection object for, 665668, 666 connection strings, 55, 661664 linked tables in, 678683, 679 Recordset objects for, 668669, 670 for Access, 832834, 834 issues, 669677 schema rowsets in, 683687, 685 support for, 12, 660 Jet OLEDB: properties, 668, 680681

JET_SCHEMA_ISAMSTATS schema rowsetMaintainConnection property

983

JET_SCHEMA_ISAMSTATS schema rowset, 685 joins, 426427, 427 just-in-time (JIT) compiler, 316

K
KeepTogether property, 784 Key argument, 190 Key object, 28, 233234, 245, 934 Keys property in SortedList, 375 in Table, 227 keyset cursors, 46, 58 keywords, MDX, 296

L
LAST_DATA_UPDATE property, 281 last function, 560 LAST_SCHEMA_UPDATE property, 281 LastChild property, 547 lboColumns_DblClick procedure, 231 lboCountry_Click procedure, 217218 lboCustomers_SelectedIndexChanged procedure, 379380 lboIndexes_DblClick procedure, 232233 lboKeys_DblClick procedure, 234 lboTables_DblClick procedure, 227228 lboUsers_Click procedure, 237238 lboViews_DblClick procedure, 254255 LDAP (Lightweight Directory Access Protocol), 692694 Left property in ADO Data Control, 724 in Data Report, 783 LeftMargin property, 782 Level object, 28, 284285, 293, 940941 LEVEL properties, 284285 LevelDepth property, 285, 293 LevelName property, 285, 293 Levels collection, 283284 Lightweight Directory Access Protocol (LDAP), 692694 linked servers, 615, 616 ad hoc linking, 623626, 624 creating, 615616

deleting, 617 example, 618619, 620 logins for, 616617 using, 620623 linked tables, 678683, 679 ListBox objects, binding data to, 522524 ListChanged event, 409, 437 ListField property, 731 ListIndex property, 104 ListItems collection, 704 ListView controls, 189190 Load_Data procedure, 811812 Load method in XmlDataDocument, 553 in XmlDocument, 549551 in XslTransform, 572573 LoadControls procedure, 837839 LoadCustomerData procedure, 198200 LoadData procedure, 209 LoadDataRow method, 405 LoadDataSet procedure, 903904 LoadFromFile method, 142, 145 LoadXml method, 549 local cubes, 269, 861 creating, 862866, 866 for PivotTable Service, 862 Local Security Policy application, 205 Locale Identifier property, 642 locking in ADO Data Control, 726 in ADO.NET, 471474 LockType argument, 59 LockType property in ADO Data Control, 726727 in Command, 752 in Recordset, 57, 67, 86, 104 logical operators in Jet, 672 for Recordsets, 60 logins for linked servers, 616617 lvw1_DblClick procedure, 191

M
Main module, 346 MaintainConnection property, 859

984

MakeView procedureMicrosoft Developer Network (MSDN) program

MakeView procedure, 676677 managed code, 315 managed execution, 315317, 316 mappings in converting DataSets to XML, 498501, 499 in Data Environment, 760, 762763 MappingType constants, 499 MarrowSoft Xselerator editor, 568 MarshalOptions property, 210 Master/Detail forms, 735, 739, 739 mathematical functions in CALC, 166 MAX function, 165 Max method, 423 MaxButton property, 783 Maximum Index Size property, 665 Maximum Open Rows property, 60 Maximum Pending Rows property, 669 Maximum Row Size property, 665 Maximum Rows property in Command, 612 in Recordset, 614 MaxLength property, 407 MaxRecords property in ADO Data Control, 727 in Command, 752 in Recordset, 61, 671672 mcnn_BeginTransComplete procedure, 116, 126 mcnn_CommitTransComplete procedure, 116, 126 mcnn_ConnectComplete procedure, 113, 115, 127 mcnn_Disconnect procedure, 115, 127 mcnn_ExecuteComplete procedure, 118, 127 mcnn_InfoMessage procedure, 118, 127 mcnn_RollbackTransComplete procedure, 116, 127 mcnn_WillConnect procedure, 112, 114, 127 mcnn_WillExecute procedure, 117, 127128 MDAC (Microsoft Data Access Components), 46, 1315, 2122, 660 mdac_min.exe program, 14 MDAC.NET, 15 mdac_typ.exe program, 14 MDX (Multidimensional Expressions) language, 277 axes and dimensions in, 301303, 302303 functions in, 305 names in, 300 opening Cellsets, 305307, 305 queries in, 296300, 296297, 304

Recordsets from Cellsets in, 307309, 308 statements in, 294295 measures in Analysis Services, 271272, 271 MEMBER_KEY property, 286 Member object, 29, 285286, 293, 941942 members of classes, 332334 shared, 342, 343 Members collection in Level, 284 in Position, 292 Members function, 298299 memory leaks, 315 MemoryStream object, 504506 Merge method, 31, 404 MergeCells property, 746747 MergeCol property, 747 merging in reconstituting DataSets, 504506, 505 Message property, 350 Message Queues resource type, 871 metadata in MSIL, 316, 318 in .NET-COM interoperability, 370 methods, 334 Microsoft Access, 820 binding forms to Recordsets, 830840, 830, 834, 837, 839 Client Data Manager, 820821, 821 Autolookup in, 826827, 827 connection strings and properties for, 821824 cursors in, 827829, 828 defaults in, 829, 829 updating with, 824826, 825 graceful degradation in, 6769 linked servers for, 618619, 620 reports, 840845, 841, 843 Microsoft Analysis Services, 266, 269270 cubes in, 272276, 272, 275276, 287288, 287 dimensions in, 270271 measures in, 271272, 271 MOLAP, ROLAP, and HOLAP, 273 for PivotTable Service, 861, 861 Microsoft Cursor Service for OLE DB, 27, 186 Microsoft Data Access Components (MDAC), 46, 1315, 2122, 660 Microsoft Data Shaping Service for OLE DB, 25 Microsoft Developer Network (MSDN) program, 15

Microsoft Excelmy.ini file

985

Microsoft Excel, 848 importing data into, 848854, 848850, 854 with CopyFromRecordset, 854857 with QueryTable objects, 857859 OLAP data in, 859862, 860862 Microsoft Intermediate Language (MSIL), 315318, 364 Microsoft OLE DB Persistence Provider, 26 Microsoft OLE DB Provider for Internet Publishing, 24 Microsoft OLE DB Provider for Microsoft Active Directory Service, 23 Microsoft OLE DB Provider for Microsoft Indexing Service, 23 Microsoft OLE DB Provider for Microsoft Jet, 23 Microsoft OLE DB Provider for ODBC, 2223 Microsoft OLE DB Provider for Oracle, 24 Microsoft OLE DB Provider for SQL Server, 23 Microsoft OLE DB Remoting Provider, 27 Microsoft Transaction Server (MTS), 222 MIN function, 165 Min method, 423 MinButton property, 783 minus signs (-) in MDX, 304 miscellaneous functions in CALC, 166 MissingSchemaAction property, 458, 460461 mnuShortcutFindSimilar_Click procedure, 706 mnuShortcutViewContents_Click procedure, 142143 Mode property in ADO Data Control, 727 in Connection, 49 MOLAP (Multidimensional OLAP), 273 MOLAP cubes, 862 MouseIcon property, 783 MousePointer property, 783 Move method in Animal, 340341 in Recordset, 65 MoveComplete event in ADO Data Control, 730, 741742 Data Form Wizard for, 736 in Recordset, 120121, 772 MoveFirst method in frmComplexControl, 808 in Recordset, 65 MoveLast method in frmComplexControl, 809 in Recordset, 65

MoveNext method in complex data binding, 800 in frmComplexControl, 809 in Recordset, 65 MovePrevious method in complex data binding, 800 in frmComplexControl, 808809 in Recordset, 65 moving in objects. See navigating mrst_EndOfRecordset procedure, 121, 128 mrst_FetchComplete procedure, 119, 128 mrst_FetchProgress procedure, 119, 128 mrst_FieldChangeComplete procedure, 122, 128 mrst_MoveComplete procedure, 121, 128129, 808 mrst_RecordChangeComplete procedure, 129 mrst_RecordsetChangeComplete procedure, 122123, 129 mrst_WillChangeField procedure, 122, 129 mrst_WillChangeRecord procedure, 123, 129 mrst_WillChangeRecordset procedure, 122, 129130 mrst_WillMove procedure, 120, 130 MS Chart layout, 735 MS HFlexGrid layout, 735 MSDataShape provider, 160, 739 msdfmap.ini file, 206208 MSDN (Microsoft Developer Network) program, 15 MSHFlexGrid1_MouseDown procedure, 747 MSHFlexGrid1_MouseUp procedure, 747748 MSIL (Microsoft Intermediate Language), 315318, 364 MTS (Microsoft Transaction Server), 222 Multi-Table Update property, 665 multidimensional data. See ADO MD Multidimensional Expressions language. See MDX (Multidimensional Expressions) language Multidimensional extensions, 2829 Multidimensional OLAP (MOLAP), 273, 862 multiple DataAdapters, 430432, 432 Multiple datatype, 762 multiple-level relation hierarchy, 169, 169 multiple relation hierarchies, 170171, 171 multiple result sets, 429430 multiple tables data forms with, 894897, 895896 DataSets with, 426432, 427, 429, 432 multitiered applications, disconnected Recordsets in, 221222 my.ini file, 710

986

MyBase keyword.NET

MyBase keyword, 341 MyOLEDB connection string, 712 MySQL database, 708709 connecting to, 711714, 712713 installing, 709711, 710711 limitations of, 714717 MySQL Navigator, 711, 712 MySqlProv provider, 711

N
Name argument, 201 Name property and names in Active Directory, 692 in Axis, 292 in Catalog, 280 in Column, 229 in CubeDef, 280 in Data Report, 782 in Data Report sections, 783 in Dimension, 281 in Field, 65 in Group, 235 in Hierarchy, 283 in IADsPropertyValue, 704 in Index, 232 in Key, 233 in Level, 284 in MDX, 300, 304 in Member, 285, 293 in Procedure, 238 in User, 237 in View, 239 in XmlNode, 547 Namespace statement, 352 namespaces, 319320, 331, 352353 classes, 332334 delegates, 335 enumerations, 336 interfaces, 334335 System.Data, 331332 naming attributes, 692 navigating Active Directory, 696702, 697 and data binding, 520522 DataSets, 421423 events for, 119121

Recordsets, 6566 Nested property, 495 nesting ADOX collections, 225 child rows, 495498 Recordsets, 159 SHAPE statements, 842 .NET applications, 324 connecting to data, 327328, 328329 creating, 324, 325 running projects, 330, 331 user interfaces, 329330 Visual Basic .NET environment, 326327 architecture, 314315 application domains, 321 ASP.NET processor, 323 assemblies, 320321 Common Language Runtime, 315 Common Type System, 317318 cross-language interoperability, 318 deploying and configuring applications, 322 Framework class library, 318319 managed execution, 315317, 316 namespaces, 319320 security, 321322 Web services, 322323 Windows Forms model, 323324 COM interoperability, 368369 COM components used directly, 371 metadata, 370 Primary Interop Assembly, 371372 tlbimp and direct references in, 372 unmanaged code and runtime-callable wrappers, 369, 369 data providers for ADO.NET, 409 ODBC, 412 OLE DB, 411 SQL Server, 409411 filling datasets from ADO Recordsets ActiveX server, 385387 Dataset and DataAdapter for, 384385 integrating Recordsets, 388390, 388 hybrid application, 372373, 373 Customer class, 378379 Customers class, 373378 user interface code, 379381

.NETOLE DB

987

languages APL, 362 C#, 358360 COBOL, 362363 interoperability, 364366 Pascal, 363 Perl, Python, and XSLT, 361362, 362 Smalltalk, 363 Visual Basic .NET. See Visual Basic .NET namespaces, 319320, 331 classes, 332334 delegates, 335 enumerations, 336 interfaces, 334335 System.Data, 331332 upgrading applications clean upgrades, 383384 Upgrade Wizard for, 381382, 382383 .NET Framework Software SDK, 15 .NET OLE DB Data Provider, 32 .NET SQL Data Provider, 32 Net8 Configuration Assistant, 644 NetSchemaClient project, 388390, 388 New Dimension option, 274275 new features ADO 2.5, 68 ADO 2.6, 910 ADO 2.7, 1012 New keyword, 166, 334 New Login option, 205 New procedure, 329 in EmptyClass, 345 in XML schema files, 912913 New Project dialog box, 324, 325 NewRow method, 405 NextResult method, 400 NextSibling property, 547 NodeChanged event, 549 NodeChanging event, 549 NodeClick event, 702 NodeInserted event, 549 NodeInserting event, 549 NodeRemoved event, 549 NodeRemoving event, 549 Nodes collection, 551, 700 NodeType property, 547 nonrelational data, 134

Command object and result streams, 148152, 148 Record object, 134140, 136 resource Recordsets, 140141 Stream object, 141148 normalize-space function, 560 not function, 560 NotInheritable modifier, 340 ntds.dit file, 695 NULL Concatenation Behavior property, 665 Null values with Find, 80 in Oracle, 647 NullTrim procedure, 684 number function, 560 NumericScale property, 229

O
objCategoryProducts_PositionChanged procedure, 905 object design from Server Explorer, 872873 object information in Active Directory retrieving, 702705 searching for, 705708, 706 object-oriented languages, 363 object ownership in ADOX, 258260 OCWCube, 865 ODBC (Open Database Connectivity), 4 limitations, 3536 Recordsets for Access, 834835 support for, 1112 ODBC .NET data provider, 412 ODBC provider for ADOX, 240 ODBC SQL, 36 OLAP (Online Analytical Processing), 859860 for ADO MD, 265 for multidimensional data, 28 PivotTable Service for, 860862, 860862 OLAP architecture, 269 OLAP Cube Wizard, 863865, 864865 OLE DB, 18 ADO with, 2021, 20 ADOX for, 2729 architecture, 1819 available components, 2127, 24, 26 component overview, 2930, 29

988

OLE DBOwn Changes Visible property

providers, 810 in connection strings, 5253 data providers, 2225, 24 implementing, 810814, 815 new, 8 for PivotTable Service, 861862, 862 service providers, 2527, 26 using, 815816, 815 OLE DB .NET data provider, 411 OLE DB Persistence Provider, 160 OLE DB Remoting Provider, 160 OLE DB Simple Provider (OSP) Toolkit, 810 OLE DB Version property, 610 oledb32.dll file, 811 OleDbCommand object, 33 OleDbCommandBuilder object, 33 OleDbConnection class, 32, 319 OleDbDataAdapter object, 33 OLEDBSimpleProvider Interface, 810 OleDbTransaction class, 335 OLTP (Online Transaction Processing), 265 Online Analytical Processing (OLAP), 859860 for ADO MD, 265 for multidimensional data, 28 PivotTable Service for, 860862, 860862 Online Transaction Processing (OLTP), 265 Open Database Connectivity (ODBC), 4 limitations, 3536 Recordsets for Access, 834835 support for, 1112 Open method in Cellset, 289 in Connection, 5052, 396, 654 in Record, 135, 138 in Recordset, 57, 145, 652 in Stream, 142144, 147, 149 OPENDATASOURCE statement, 624625 OpenExcel procedure, 664 OpenFileDialog object, 550 opening Cellsets, 305307, 305 Recordsets, 57 OPENROWSET statement, 624625 OpenSchema method, 684 OPENXML statement, 626 examples, 632635, 634 syntax, 630632 and XPath, 626630, 628

optimistic batch updating, 186195, 187, 195 optimistic locking, 471 in ADO, 86 in ADO Data Control, 726 Options argument, 5960 OR operator, 672 Oracle, 640 connection strings in, 55, 641642 connectivity issues in, 647649 environment setup in, 642645, 643, 646 example, 654657, 654 graceful degradation in, 6870 limitations of, 646647 miscellaneous issues in, 653654 Recordsets for Access, 835836 SQL issues in, 649653, 650 supported versions, 640641 Oracle Universal Installer, 643644, 643 ORDER BY clause in SHAPE, 168 in SQL, 81 Orders.aspx form, 590594, 594 OrdersQuery.xml file, 626629, 628, 633634, 634 Ordinal property in Cell, 291 in DataColumn, 407 in Position, 292 Organizational-Unit-Name (ou) attribute, 692 organizational units (OUs), 692693, 693 OriginalValue property, 194 OSP (OLE DB Simple Provider) Toolkit, 810 Others Changes Visible property in Command, 612 in Recordset, 614 Others Inserts Visible property in Command, 612 in Recordset, 614 ou (Organizational-Unit-Name) attribute, 692 OUs (organizational units), 692693, 693 OuterXml property, 547 Output Window, 326 overloading, 343344, 345 Overridable modifier, 341 Overrides keyword, 343 overriding, 343344, 345 Own Changes Visible property in Command, 612 in Recordset, 614

Own Inserts Visible propertyPreviousSibling property

989

Own Inserts Visible property in Command, 612 in Recordset, 614 OwnerDocument property, 547 ownership in ADOX, 258260

P
PacketSize property, 396 Page Footer bands, 777 Page Header bands, 777 Page_Load procedure, 584, 588 for DataGrids, 582 for DataLists, 597 in Orders.aspx, 590 for web services, 510 Palette property, 783 PaletteMode property, 783 Parameter object, 403 in ADO, 20, 46, 923 in Command, 877 ParameterCollection object, 403 parameterized hierarchies, 161162, 170 parameterizing displayed data, 583585, 586 Parameters collection, 74, 76 Parameters editor, 877, 877 parameters in stored procedures, 7276, 440444 Parameters property, 398 Parameters tab, 753 Parent property, 285, 293 parent Recordsets in data shaping, 163, 165 reusing child Recordsets with, 176178 ParentCatalog property in Column, 244 in Table, 227, 681 ParentColumns property, 406 parentheses () in XPath, 560 ParentKeyConstraint property, 406 ParentNode property, 547 ParentRelations collection, 406 ParentRelations property, 405 ParentSameAsPrev property, 285, 293 ParentTable property, 406 partial replicas, 695 Pascal language, 363

Password parameter for Active Directory, 696 in ADO MD connection strings, 279 Password property, 727 passwords for Active Directory, 696 for Admin user, 257 for ADO Data Control, 723, 727 in connection strings, 5051 in MySQL, 710 in RDS, 204 PATH variable, 648 performance, SQL Server, 637638 Performance Counters resource type, 871 periods (.) in XPath, 559, 629 Perl language, 361362 permissions in ADOX, 260262 Persistence Provider, 26, 160 pessimistic locking, 471 in ADO, 86 in ADO Data Control, 726 PIA (Primary Interop Assembly), 371372 PivotTable Service, 269 architecture of, 860861, 860 connecting to Analysis Services, 861, 861 to MOLAP cubes, 862 to OLE DB providers, 861862, 862 local cubes for, 862866 Pointer control, 779 populating DataSets, 412417, 414, 416 position function, 560 Position object, 29, 292293, 944 Position property in BindingContextObject, 904 in CurrencyManager, 520, 532 in Stream, 149 Positions collection in Axis, 292 in Cell, 291 Precision property, 229 Prepare method, 398 Prepared property, 752 PrependChild method, 547 PreserveWhitespace property, 549 Preview Data hyperlink, 888 PreviousSibling property, 548

990

Primary Interop Assembly (PIA)RDS (Remote Data Service)

Primary Interop Assembly (PIA), 371372 primary keys adding to DataSets, 458463, 460 for relationships, 245 PrimaryKey property in DataTable, 405, 434, 462 in Index, 232233 principal names, 692 Print dialog box, 790 PrintableString property, 704 printing Data Reports, 789790 PrintReport method, 789790, 794 Procedure Attributes dialog box, 802, 802 Procedure object, 28, 238, 251255, 251, 935 Procedures collection, 238 Procedures property, 225 ProcessingTimeout event, 793795 Prompt before Deleting Object option, 761 Prompt before Executing Command option, 761 Prompt property, 642 properties for classes, 334 data binding with, 517519, 517518 Properties collection in Axis, 292 in Cell, 291 in Cellset, 289 in CubeDef, 280281 in Dimension, 281 in Hierarchy, 283 in Level, 284 in Member, 285 Properties property in Group, 235 in Member, 293 in User, 237 Properties window, 326, 328 Property Builder, 586, 587, 589 Property Is Data Bound option, 802, 804 Property object, 21, 927 Property Will Call CanPropertyChange Before Changing option, 802, 804 PropertyChanged method, 803 ProposedValue property, 467 protected members, 333 Provider parameter, 279 Provider property, 50, 396

provider-supplied fields, 8 Provider tab, 514 for connection strings, 54, 54 for Oracle, 645 providers ADO.NET, 32 ADOX, 239240 OLE DB. See OLE DB proxies, 369 pseudocolumns, 649 public members, 333 Python language, 361362, 362

Q
queries distributed, 678683, 679 MDX, 296300, 296297, 304 XPath, 558565, 561, 563 Query Builder, 580, 581, 587, 878, 887, 888 Query Parameters button, 850 QueryClose event, 795 QueryString method, 589 QueryTable object, 857859 QueryTables collection, 858 Quick Setup dialog box, 710, 710 quotation marks () in MDX, 298

R
RAD (rapid application development) environment, 722 RandDataSource.cls file, 811 Random Number Provider, 810816 rapid application development (RAD) environment, 722 RCWs (Runtime-Callable Wrappers) for ASP.NET, 603604 in .NET-COM interoperability, 369, 369 RDNs (relative distinguished name), 694 RDO (Remote Data Objects), 37, 38 RDS (Remote Data Service), 203 for disconnected Recordsets, 208212, 211 handlers for, 205207 for Internet connections, 57

RDS (Remote Data Service)RejectChanges method

991

for invoking business objects, 216221, 218 object model, 21 operation of, 203205, 204 Remote Data Services library for, 212215 support for, 12 RDSServerDemo.reg file, 217 Read method in DataReader, 400 in Stream, 142143, 147148 Read-Only Data Source property, 665 Read-Only Datasource property, 610 ReadOnly keyword, 377 ReadOnly property, 407 ReadSchema constant, 418, 502 ReadText method, 142143, 150 ReadXml method, 31, 404, 417, 503504, 556557 ReadXmlSchema method, 404, 506 ReadXmlSerializable procedure, 913 reconciling ADO.NET changes, 450452, 451 Record object, 134140, 136 in ADO, 21, 47, 924925 introduction of, 5 as new feature, 7 single-row result sets in, 10, 11 RecordChangeComplete event in ADO Data Control, 743 in Recordset, 774775 RecordCount property, 64 RecordsAffected property in DataReader, 400 for events, 470 Recordset object for Access binding forms, 830840, 830, 834, 837, 839 reports, 840845, 841, 843 adding data with, 9799 in ADO, 21, 46, 920923 BLOBs in, 146148, 147 capabilities of, 102105 from Cellsets, 307309, 308 counting records in, 6465 degradation of, 6670 deleting records in, 100102 disconnected. See disconnected Recordsets; RDS (Remote Data Service) events, 118 change management, 122123

in Data Environment, 771775 navigation, 119121 retrieval, 119 finding, 7780 hierarchical, 156159, 157 grouping, 162, 172, 173 parameterized, 161162, 170 relation, 161, 170171, 171 in Jet, 668669, 670 for Access, 832834, 834 issues, 669677 navigating, 6566 opening, 57 properties of, 5864, 62 resource, 140141 saving, 26 shaped. See data shaping sorting, 8182 in SQL Server, 613614, 614 stored procedures for. See stored procedures synchronizing, 173175, 176 synthetic, 195201, 197 updating data with, 8494 Recordset property in Access, 844 in ADO Data Control, 730 RecordsetChangeComplete event, 122123, 744 RecordSource property, 727728 RecordSource tab, 724 RecordType property, 135, 138139 Refresh All button, 850 Refresh Data button, 850 Refresh method in ADO Data Control, 740 in Command, 754 in CurrencyManager, 520 in Parameters, 74, 76, 653 in QueryTable, 858859 Refresh Status button, 850 Refresh the DataSet option, 879 Refreshing property, 859 RefreshOnFileOpen property, 859 RefreshPeriod property, 859 RefreshStyle property, 858 Register Server option, 273 RejectChanges method in DataRow, 407

992

RejectChanges methodRow_Updated procedure

in DataSet, 404 in DataTable, 405 RELATE clause, 163164, 168 RelatedColumn property, 245 RelatedColumns property in Column, 228 in Constraint, 408 RelatedTable property in Constraint, 408 in Key, 233, 245 relation hierarchies, 161 with aggregates, 171172, 172 with Command objects, 755757, 756 multiple-level, 169, 169 single-level, 168169, 168 Relation tab, 753, 755 Relational OLAP (ROLAP), 273, 861862, 862 relational storage with Analysis Services, 270 RelationName property, 406 Relations collection, 406 Relations property, 404 relationships in ADOX, 245248, 249 trust, 691 for XML schema files, 908 relative distinguished name (RDNs), 694 Release mode, 330 ReleaseObjectPool method, 396 Remote Data Objects (RDO), 37, 38 Remote Data Service. See RDS (Remote Data Service) Remote Data Services library, 212215 Remoting Provider, 27, 160 Remove method in ControlBindingsCollection, 516 in SortedList, 375 RemoveAll method, 548 RemoveAt method in CurrencyManager, 520, 532533 in SortedList, 375 RemoveChild method, 548 RemoveHandler statement, 350351, 351 ReplaceChild method, 548 replication, Active Directory, 690, 695 Report Footer bands, 777 Report Header bands, 777 Report Title control, 782

reports Microsoft Access shaped Recordsets for, 840843, 841, 843 supplying Recordsets for, 843845 Visual Basic. See Data Report objects ReportWidth property, 783 reserved words in Jet, 674675 ReservedWordTest procedure, 674 ResetCommandTimeout method, 398 ResetData method, 840 Reshape Name property, 178 reshaping, 176, 177 chaptered Recordsets, 179180 child Recordsets aggregations from, 178179 reusing, 176 Resize event, 795 RESOURCE fields, 141 resource Recordsets, 140141 Response object, 152 result sets multiple, 429430 single-row, 10, 11 result Streams, 9, 148152, 148, 151 ResultRange property, 859 Resync method, 8991, 194, 725 ResyncValues argument, 89 retrieval events, 119 RightMargin property, 782 RightToLeft property, 783 ROLAP (Relational OLAP), 273 ROLAP cubes, 861862, 862 role-based security, 321322 Rollback method in IDbTransaction, 334335 in Transaction, 475 RollbackTrans method, 106 RollBackTransComplete procedure, 116, 771 Root Enumerator, 19 root tags, 149 Row_Changed procedure, 466 Row_Changing procedure, 466 Row_Deleted procedure, 466 Row_Deleting procedure, 466 Row Position object, 19 Row property, 467470 Row_Updated procedure, 467

Row_Updating procedureSelect Data Source dialog box

993

Row_Updating procedure, 467 RowChanged event, 405, 468 RowChanging event, 405, 468 RowDeleted event, 405, 468469 RowDeleting event, 405, 468469 RowFilter property, 409, 437, 891 ROWID columns, 649650, 650, 657 RowNumbers property, 859 rows, Windows Forms for adding, 532 deleting, 532533 editing, 531 Rows collection, 421 Rows property, 405, 433 rowsets, schema, 683687, 685 RowSource property, 731 RowState property, 407 RowStateFilter property, 409, 437 RowUpdated event, 402, 469470 RowUpdating event, 402, 469470 rptCustomerOrders report, 841 RptFunction control, 780781, 785786, 785 RptImage control, 780 RptLabel control, 780 RptLine control, 780 rptSelectedCompanies report, 843 RptShape control, 780 RptTextBox control, 780781 running projects in .NET, 330, 331 RunPassword property, 749 RunPromptBehavior property, 750 RunSaveAuthentication property, 750 Runtime-Callable Wrappers (RCWs) for ASP.NET, 603604 in .NET-COM interoperability, 369, 369 RunUserName property, 750

S
SalesByCategory procedure, 7273, 440441 Save method in Recordset, 144145 in XmlDocument, 549 SaveAsODC method, 859 SaveData procedure, 812 SaveFileDialog class, 486

SaveToFile method, 142, 145 saving, 26 in RDS, 212 to XML, 200, 355356 Saxon XSLT Processor, 568 SCHEMA_NAME property in CubeDef Properties, 281 in Dimension Properties, 282 in Hierarchy Properties, 283 in Level Properties, 284 schema-only DataSets, synchronizing, 556557 SCHEMA_UPDATED_BY property, 281 SchemaChanged procedure, 914 SchemaInfo class, 385386, 389 schemas AD, 690 in ADO MD, 278286 in Jet, 683687, 685 in OPENXML, 632 in reconstituting DataSets, 506507 in XML creating, 906 generated code for, 909914, 909 relations for, 908 Server Explorer for, 906 Toolbox for, 907908, 907908 with Visual Basic.NET, 905 scope for Active Directory, 697 scroll bars in DataGrid, 734, 734 scrolling in Oracle, 646 searching for Active Directory object information, 705708, 706 for DataSet data, 433434 for Recordsets, 7780 section properties for Data Reports, 783784 security in ADOX, 2728, 255 groups, 256257 ownership, 258260 permissions, 260262 users, 257258 in .NET, 321322 in RDS, 204 Seek method, 7779, 504 Select Advanced Options panel, 274275 Select Data Source dialog box, 848849, 848, 854

994

Select Dimension Table panelSingle Record in Individual Controls option

Select Dimension Table panel, 274275 Select Dimension Type panel, 274275 Select Dimensions panel, 274 Select Fact panel, 274 Select Levels panel, 274275 Select method in DataTable, 405 for filtering and sorting, 434436, 437 Select Record Source panel, 739 SELECT statement, 294298 SelectCommand property, 33, 402, 412, 456457, 886 SelectedItemTemplate, 599600, 600 SelectedValue property, 523524 SelectNodes method in XmlDataDocument, 563 in XmlNode, 548 SelectSingleNode method, 548 SeparatorTemplate template, 599 serialization to XML, 355356 Server Data on Insert property, 669 Server Explorer in Visual Basic .NET, 327328, 328, 870871, 870 Data Connections with, 871872 drag-and-drop from, 873874, 874 object design from, 872873 for XML schema files, 906 Server property, 214 Server Name property, 610 server-side graceful degradation in Access, 6768 in Oracle, 68 in SQL Server, 67 ServerName property, 389 servers, linked, 615, 616 ad hoc linking, 623626, 624 creating, 615616 deleting, 617 example, 618619, 620 logins for, 616617 using, 620623 ServerVersion property, 396 service components in OLE DB, 19 service providers for data shaping, 159160, 160 for OLE DB, 2527, 26 RDS as, 57 Services resource type, 871

SET NOCOUNT ON statement, 637 SetByIndex method, 375 SetObjectOwner method, 225, 260 SetPermissions method, 235, 237, 260262 sets in MDX, 297 Setup procedure, 335 Shadows keyword, 365 Shape property, 841 Shape provider with DataSets, 427428, 429 for Master/Detail forms, 739 SHAPE statement, 167 for grand totals, 172, 173 for hierarchies grouping, 172, 173 multiple-level relation, 169, 169 multiple relation, 170171, 171 parameterized, 170 relation with aggregates, 171172, 172 single-level relation, 168169, 168 nesting, 842 SHAPE...APPEND, 162164 SHAPE...COMPUTE, 164165 shaping data. See data shaping shared members, 342, 343 Sheep class, 340, 342344, 347 ShouldSerializeRelations function, 913 ShouldSerializeTables function, 913 Show in DataBindings Collection at Design Time option, 804 Show method, 789 Show Properties Immediately after Object Creation option, 761 Show Status Bar option, 761 Show System Objects option, 761 ShowDialog method in OpenFileDialog, 550 in SaveFileDialog, 486 ShowInTaskbar property, 783 side-by-side assemblies, 321 SIDs (System Identifiers), 642 simple binding, 514, 796 Simple Object Access Protocol (SOAP), 322, 508 single-level relation hierarchy, 168169, 168 single record forms, Data Form Wizard for, 736738, 737 Single Record in Individual Controls option, 896

Single Record layoutstored procedures

995

Single Record layout, 735 single-row result sets in Record objects, 10, 11 single-table data forms, Data Form Wizard for, 893894, 893894 sites in Active Directory, 692 64-bit support, 11 Size property, 142 SkipRows argument, 80 slashes (/) in MDX, 304 SmallIcon argument, 190 Smalltalk language, 363 SOAP (Simple Object Access Protocol), 322, 508 Solution Explorer, 326 Sort property in DataView, 409, 437, 891 in Hierarchical FlexGrid, 747 in Recordset, 8182 SortedList class, 374378 SortGrid procedure, 747748 sorting DataSets, 434438, 437 Recordsets, 8182 with SHAPE, 168 SortOrder property, 232 Source property in Cellset, 289 in Exception, 350 in Record, 135 sp_addlinkedserver stored procedure, 615617, 619 sp_addlinkedsrvlogin stored procedure, 617, 619 sp_dropserver stored procedure, 617, 619 sp_xml_preparedocument stored procedure, 630 sp_xml_removedocument stored procedure, 630 Specify Member Key Columns panel, 274275 spGetCustomers stored procedure, 221 spGetOrders stored procedure, 221222 splits in DataGrid, 734, 734 SQL entries in RDS, 207 SQL issues in Oracle, 649653, 650 SQL property, 214 SQL Server, 608 for Access, 831832 with Analysis Services, 270 Command object for, 612613, 613 Connection object for, 610611, 612 connection strings, 55, 609610 graceful degradation in, 6769 linked servers in. See linked servers

OPENXML statement, 626 examples, 632635, 634 syntax, 630632 and XPath, 626630, 628 Recordset object for, 613614, 614 tips and quirks, 635638 versions, 608609 SQL Server .NET data provider, 409411 SQL Servers resource type, 871 SqlCommand object, 580 in ADO.NET, 33 for DataGrids, 582 SqlCommandBuilder object, 33 SqlConnection object, 32, 580, 587, 875876, 876 SqlDataAdapter object, 33, 595 SQL*NET authentication, 649 SQLNET.ora file, 649 sql:query tag, 149 SQLSchema, 385 Sqltransaction class, 335 square brackets ([]) in MDX, 298, 304 in XPath, 560 stable cursors, 827829, 828 Stacktrace property, 350 Start Page, 324, 325 starts-with function, 560 StartupPosition property, 783 State property in Cellset, 289 in Connection, 396 StateChange event, 396 stateless protocols, 203 statements, MDX, 294295 StatementType property, 470 static cursors, 46, 58 Status property for events, 470 in Field, 10 StayInSync property, 173175 STDEV function, 165 Storage Design Wizard, 275 stored procedures, 70, 438439, 439 in ADOX, 249250 catalog, 608 Command object for, 439440 for finding data, 7780 object for, 238

996

stored proceduresTransaction object

parameters for, 7276, 440444 for returning Recordsets, 7172 for sorting data, 8182 Stream object, 141144, 487 in ADO, 21, 47, 925926 for arbitrary data, 144146, 144 for BLOBs, 146148, 147 introduction of, 5 as new feature, 7 result and Command, 9, 148152, 148, 151 StreamWriter class, 355, 487 string functions in CALC, 166 string-length function, 560 StringBuilder object, 492493 strings, connection. See connection strings StringWriter object, 492493 strongly-typed DataSets, 423425, 424 structured exception handling, 348350, 349 stylesheets, 566 SubmitChanges method, 215, 220 substring function, 560 SUM function, 165 summarizing Data Report data, 784788, 785, 787788 Supports method, 102105, 103, 716 SupportsTransaction function, 107 Synchronized method, 375 synchronized objects, 557558 with XPath queries, 558565, 561, 563 with XSLT, 565574, 566567, 569, 572 synchronizing DataSets, 555557 Recordsets, 173175, 176 SyncRoot property, 375 synthetic Recordsets, 195201, 197 system component, ADO as, 7 System Identifiers (SIDs), 642 System namespaces, 320, 331332, 547, 897

T
Table object, 27, 226228, 228, 931 Table property, 891 TableMapping property in DataAdapter, 886 for events, 470

TableMappings collection, 416 tableMappings property, 402 TableName property, 405 tables in ADOX, 242244 linked, 678683, 679 Tables collection in Catalog, 225226 in DataSet, 421 Tables method, 386 Tables property in Catalog, 225 in DataSet, 404 Tag property in Data Report, 783 in Hierarchical FlexGrid, 748 TargetSite property, 350 template queries, 149 templates, DataList, 599600 Terminate event in Data Environment, 768 in DataReport, 793 TestMaxRecords procedure, 671672 TestTop procedure, 672 Text argument, 190 Text1_Change procedure in frmComplexControl, 808 in UserControl, 802 TextWriter class, 487488 This Property Binds to DataField option, 802, 804 TipClient program, 356, 356, 358 TipList class, 353355, 365366 TipList.cs file, 359360 TipList.xml file, 357 Title property, 783 tlbimp tool, 370372 Toolbox for Data Reports, 779781, 780 for Visual Basic .NET, 326 for XML schema files, 907908, 907908 ToolTipText property, 724 Top property in ADO Data Control, 724 in Data Report, 783 TopMargin property, 782 Total Number of Pages control, 782 Transaction object, 403

transactionsupdating

997

transactions in ADO, 105108 in ADO.NET, 474476 events for, 116117 Transform method, 572 transitive trust relationships, 691 TranslateReason function, 125 TranslateStatus function, 125 TreeNode object, 551 trees, 691, 691 TrimToSize method, 375 trust relationships, 691 Try keyword, 348350 tuples, 302303, 303 tvwAD_Expand procedure, 701702 tvwAD_NodeClick procedure, 702703 tvwWeb_Expand procedure, 139140 two-way transitive trust relationships, 691 txtAddress_Change procedure, 211 txtCompanyName_Change method, 804 txtCompanyName_TextChanged procedure, 381 txtContactName_Change method, 804 txtContactName_TextChanged procedure, 381 txtCountryName_TextChanged procedure, 381 txtCustomerID_Change method, 804 Type argument for Append, 201 type libraries, 370 Type property in Column, 229 in Key, 233 in Member, 286, 293 in Stream, 142143 in Table, 226227 type-safe pointers, 350 type-safe types, 318

U
UDDI (Universal Discovery, Description, and Integration), 323 .udl extension, 54 UnderlyingValue property, 194195 Unicode character set, Stream for, 143 Unicorn XSLT Processor, 568 Uniform Resource Locators (URLs) as connection strings, 78 LDAP format, 694

union operations in Oracle, 653 in XPath, 561 Unique property in DataColumn, 407 in Index, 232233 UniqueConstraint object, 408 UniqueName property in Dimension, 281 in Hierarchy, 283 in Level, 284 in MDX, 300 in Member, 286, 293 UniqueTable property, 824 Universal Discovery, Description, and Integration (UDDI), 323 unmanaged code, 369, 369 unstable cursors, 827828, 828 Updatability property, 669 updatable records in Access, 831836, 834 Update method in DataAdapter, 402, 446, 450452 in Recordset, 84, 97, 184 UpdateBatch method, 59, 8889, 91, 192193 UpdateCommand procedure in DataAdapter, 33, 402, 448, 886 in DataList, 600 UpdateCustomer procedure, 378 UpdateDataSet procedure, 901902 UpdateDataSource procedure, 902903 UpdatePosition procedure in frmCustomers, 528 in frmOrderEntry, 535 UpdateRule property, 408 UpdateStatus constants, 470 updating in ADO.NET, 446 adding, 452456 DataSet filling, 446449 deleting, 456 editing, 449450 reconciling changes, 450452, 451 batch, 8889, 186195, 187, 195 with Client Data Manager, 824826, 825 with Command, 9497 concurrency in, 471474, 473 Filter for, 9194 immediate, 8486

998

updatingVisual Basic .NET

in Oracle, 646 with Recordsets, 8494 Resync for, 8991 write conflicts in, 8694 Upgrade Wizard, 381382, 382383 upgrading applications clean upgrades, 383384 Upgrade Wizard for, 381382, 382383 URLs (Uniform Resource Locators) as connection strings, 78 LDAP format, 694 URLtoKey procedure, 138 Use Optimistic Concurrency option, 879 Use the Query Wizard to Create/Edit Queries option, 863 UseCDM procedure, 833 UseDirect procedure, 833 user IDs for Active Directory, 696 in connection strings, 5051, 279 user interfaces in .NET, 329330 in Visual Basic .NET, 356357, 356, 358 User object, 28, 237238, 934935 user principal names, 692 user rosters, 683684, 685 UserControl_Initialize procedure, 806807 UserControl_Resize procedure, 807808 UserControls, 800809, 801802, 805806 userlist entries in RDS, 207 UserName property, 727 usernames for ADO Data Control, 723, 727 in MySQL, 710 in RDS, 204 users in ADOX, 257258 Users property in Catalog, 225 in Group, 235

V
Value property in Cell, 291 in Cell Properties, 291 in Field, 66, 97

in IADsPropertyValue, 704 in Recordset, 195 ValueMember property, 523 Values property in IADsPropertyEntry, 704 in SortedList, 375 Version method, 219 vertical bars (|) in XPath, 561 View object, 28, 238239, 251255, 251, 935 View Schema hyperlink, 890 View Wizard Results panel, 596, 596 Views collection, 238 views in ADOX, 249250 Views method, 387 Views property, 225 visible defaults in Client Data Manager, 829, 829 Visible property in ADO Data Control, 733 in Data Report, 783 in Data Report sections, 784 Visual Basic, 722 bound controls in. See bound data data consumers in, 796 binding with classes, 797800 data-aware classes, 796800 data-aware UserControls, 800809, 801802, 805806 Data Environment objects in. See Data Environment objects Data Report objects in. See Data Report objects for OLE DB providers, 810816 Visual Basic .NET, 338, 870 class libraries in, 353356 Command object for, 876878, 877 Connection object for, 875876, 876 constructors and destructors in, 345346 Data Form Wizard for. See Data Form Wizard DataAdapter object for, 878888, 879, 887888 DataSet object for, 888890, 889890 DataView object for, 890891 delegates in, 350351, 351 edit forms in, 891892 environment in, 326327 exception handling in, 348350, 349 inheritance in, 339342, 341 interfaces in, 346348, 348 namespaces in, 352353

Visual Basic .NETXCOPY

999

new features, 338339 overloading and overriding in, 343344, 345 Server Explorer for, 870874, 870, 874 shared members in, 342, 343 user interfaces in, 356357, 356, 358 with XML schema files, 905 creating, 906 generated code for, 909914, 909 relations for, 908 Server Explorer for, 906 Toolbox for, 907908, 907908 with Visual Basic.NET, 905 Visual Basic Upgrade Wizard, 381382, 382383 Visual Perl, 361 Visual Python, 361362, 362 Visual Studio .NET, 15, 324, 325

W
Web Forms, 323, 577 Web Forms tab, 580, 584 web services DataSets with, 508510, 509, 511 in .NET, 322323 Web Services Description Language (WSDL), 323 WHERE clause in MDX, 294, 298 in SHAPE, 163, 169 white space in MDX, 300 WhitespaceHandling property, 550 Width property, 783 wildcards in XPath, 559560, 629 WillChangeField event in ADO Data Control, 743 in Recordset, 122, 773774 WillChangeRecord event in ADO Data Control, 743 Data Form Wizard for, 737 in Recordset, 123, 774775 WillChangeRecordset event in ADO Data Control, 744 in Recordset, 122 WillConnect event in Connection, 769770 in Recordset, 110, 112115, 117

WillExecute event, 770 WillMove event in ADO Data Control, 741742 in Recordset, 120121, 772 Window Handle property, 642 Windows Advanced Server, Limited Edition, 11 Windows Forms, 514 data binding with, 514 from code, 515516 to DataGrids, 524526, 525 in IDE, 514515 to ListBoxes, CheckedListBoxes, and ComboBoxes, 522524 navigating, 520522 to properties, 517519, 517518 data manipulation through, 526531, 527 adding rows, 532 deleting rows, 532533 editing rows, 531 in .NET, 323324 sample, 533539, 533 Windows integrated authentication, 56 WinMySQLadmin, 710 WITH clause, 632, 634 WithEvents keyword, 111 WorkstationID property, 396 write conflicts, 8694 Write method in Stream, 142, 147148 in XmlDocument, 549 WriteContentsTo method, 548 WriteOnly keyword, 377 WriteSchema constant, 419, 486 WriteText method, 142, 149 WriteTo method, 548 WriteXml method, 404, 419, 485490, 557 WriteXmlSchema method, 404, 491 WSDL (Web Services Description Language), 323

X
XCOPY for ASP.NET, 578 for .NET applications, 322

1000

XML (Extensible Markup Language)XslTransform class

XML (Extensible Markup Language) converting DataSets with, 417421, 478 column mappings in, 498501, 499 DataRelations in, 495498 GetXml for, 478481 GetXmlSchema for, 481485 WriteXml for, 485490 WriteXmlSchema for, 491 writing changes only, 491495, 492 Persistence Provider support for, 26 reconstituting DataSets from, 501503, 502 inferring schemas, 506507 merging data, 504 merging DiffGrams, 504506, 505 reading schemas, 506 saving to, 200, 355356 schema files in creating, 906 generated code for, 909914, 909 relations for, 908 Server Explorer for, 906 Toolbox for, 907908, 907908 with Visual Basic.NET, 905 for synthetic Recordsets, 196199, 197 template queries, 149 XML Path Language, 558 XML Root property, 612 XML Schema specification, 483 XML Spy editor, 568

XmlDataDocument class, 553555, 554 DOM, 542548, 546, 548, 550 synchronized objects in, 557558 DataSets, 555557 with XPath queries, 558565, 561, 563 with XSLT, 565574, 566567, 569, 572 XmlDocument class, 548553 XmlNamedNodeMap class, 552 XmlNode object, 547548, 551 XmlNodeLists, 565 XmlNodeType enumeration, 546, 551 XmlReader object, 550 XmlReadMode constants, 418, 502 XMLSerializer object, 355356 XmlTextReader class, 550 XmlTextWriter, 488 XmlWriteMode constants, 419, 486 XPath with DataSets, 558565, 561, 563 and OPENXML, 626630, 628 xs:choice tag, 484 xs:complexType tag, 483484 xs:sequence tag, 484 xsl:for-each tag, 570 XSL property, 612 xsl:value-of tag, 570 XSLT (Extensible Stylesheet Language Transformations) standard, 361 with DataSets, 565574, 566567, 569, 572 for .NET, 361362 XslTransform class, 571572

Vous aimerez peut-être aussi