Classes para Manipulação de BDs 5
|
|
- Alban Hunter
- 8 years ago
- Views:
Transcription
1 Classes para Manipulação de BDs 5 Ambiienttes de Desenvollviimentto Avançados Engenharia Informática Instituto Superior de Engenharia do Porto Alexandre Bragança 1998/99 Baseada em Documentos da Microsoft
2 5 Classes para Manipular BD através do ODBC Alexandre Bragança Pág 2
3 5 Classes para Manipular BD através do ODBC Grande parte das ferramentas de desenvolvimento 'esconde' a complexidade do ODBC implementando uma abstração superior para acesso a base de dados. No Visual C++ a biblioteca de classes de 'eleição' é a biblioteca MFC (Microsoft Foundation Classes). Esta biblioteca de classes contem diversas classes de apoio ao desenvolvimento de aplicações em ambiente Windows. Grande parte destas classes 'funciona' de forma bastante interligada com a própria ferramenta de desenvolvimento (Visual C++). As MFC contêm classes para acesso a bases de dados através do ODBC. Alexandre Bragança Pág 3
4 ODBC Classes These classes work with the other application framework classes to give easy access to a wide variety of databases for which Open Database Connectivity (ODBC) drivers are available. Programs that use ODBC databases will have at least a CDatabase object and a CRecordset object. CDatabase Encapsulates a connection to a data source, through which you can operate on the data source. CRecordset Encapsulates a set of records selected from a data source. Recordsets enable scrolling from record to record, updating records (adding, editing, and deleting records), qualifying the selection with a filter, sorting the selection, and parameterizing the selection with information obtained or calculated at run time. CRecordView Provides a form view directly connected to a recordset object. The dialog data exchange (DDX) mechanism exchanges data between the recordset and the controls of the record view. Like all form views, a record view is based on a dialog template resource. Record views also support moving from record to record in the recordset, updating records, and closing the associated recordset when the record view closes. CDBException An exception resulting from failures in data access processing. This class serves the same purpose as other exception classes in the exception-handling mechanism of the class library. CFieldExchange Supplies context information to support record field exchange (RFX), which exchanges data between the field data members and parameter data members of a recordset object and the corresponding table columns on the data source. Analogous to class CDataExchange, which is used similarly for dialog data exchange (DDX). Related Classes CLongBinary Encapsulates a handle to storage for a binary large object (or BLOB), such as a bitmap. CLongBinary objects are used to manage large data objects stored in database tables. CDBVariant Allows you to store a value without worrying about the value s data type. CDBVariant tracks the data type of the current value, which is stored in a union. Alexandre Bragança Pág 4
5 CDatabase A CDatabase object represents a connection to a data source, through which you can operate on the data source. A data source is a specific instance of data hosted by some database management system (DBMS). Examples include Microsoft SQL Server, Microsoft Access, Borland dbase, and xbase. You can have one or more CDatabase objects active at a time in your application. Note If you are working with the Data Access Objects (DAO) classes rather than the Open Database Connectivity (ODBC) classes, use class CDaoDatabase instead. For more information, see the articles Database Topics (General) and DAO and MFC. Both articles are in Visual C++ Programmer's Guide. To use CDatabase, construct a CDatabase object and call its OpenEx member function. This opens a connection. When you then construct CRecordset objects for operating on the connected data source, pass the recordset constructor a pointer to your CDatabase object. When you finish using the connection, call the Close member function and destroy the CDatabase object. Close closes any recordsets you have not closed previously. For more information about CDatabase, see the articles Data Source (ODBC) and Database Topics (General) in Visual C++ Programmer's Guide. #include <afxdb.h> Alexandre Bragança Pág 5
6 CDatabase Class Members Data Members m_hdbc Open Database Connectivity (ODBC) connection handle to a data source. Type HDBC. Construction CDatabase Open OpenEx Close Constructs a CDatabase object. You must initialize the object by calling OpenEx or Open. Establishes a connection to a data source (through an ODBC driver). Establishes a connection to a data source (through an ODBC driver). Closes the data source connection. Database Attributes GetConnect IsOpen GetDatabaseName CanUpdate CanTransact SetLoginTimeout SetQueryTimeout GetBookmarkPersistence GetCursorCommitBehavior GetCursorRollbackBehavior Returns the ODBC connect string used to connect the CDatabase object to a data source. Returns nonzero if the CDatabase object is currently connected to a data source. Returns the name of the database currently in use. Returns nonzero if the CDatabase object is updatable (not read-only). Returns nonzero if the data source supports transactions. Sets the number of seconds after which a data source connection attempt will time out. Sets the number of seconds after which database query operations will time out. Affects all subsequent recordset Open, AddNew, Edit, and Delete calls. Identifies the operations through which bookmarks persist on recordset objects. Identifies the effect of committing a transaction on an open recordset object. Identifies the effect of rolling back a transaction on an open recordset object. Alexandre Bragança Pág 6
7 Database Operations BeginTrans BindParameters CommitTrans Rollback Cancel ExecuteSQL Starts a transaction a series of reversible calls to the AddNew, Edit, Delete, and Update member functions of class CRecordset on the connected data source. The data source must support transactions for BeginTrans to have any effect. Allows you to bind parameters before calling CDatabase::ExecuteSQL. Completes a transaction begun by BeginTrans. Commands in the transaction that alter the data source are carried out. Reverses changes made during the current transaction. The data source returns to its previous state, as defined at the BeginTrans call, unaltered. Cancels an asynchronous operation or a process from a second thread. Executes an SQL statement. No data records are returned. Database Overridables Called by the framework to set standard connection options. The default implementation sets the query OnSetOptions timeout value. You can establish these options ahead of time by calling SetQueryTimeout. CDatabase Overview Base Class Members Hierarchy Chart Alexandre Bragança Pág 7
8 CRecordset A CRecordset object represents a set of records selected from a data source. Known as recordsets, CRecordset objects are typically used in two forms: dynasets and snapshots. A dynaset stays synchronized with data updates made by other users. A snapshot is a static view of the data. Each form represents a set of records fixed at the time the recordset is opened, but when you scroll to a record in a dynaset, it reflects changes subsequently made to the record, either by other users or by other recordsets in your application. Note If you are working with the Data Access Objects (DAO) classes rather than the Open Database Connectivity (ODBC) classes, use class CDaoRecordset instead. For more information, see the article Database Topics (General) and the article DAO and MFC. Both articles are in Visual C++ Programmer s Guide. To work with either kind of recordset, you typically derive an application-specific recordset class from CRecordset. Recordsets select records from a data source, and you can then: Scroll through the records. Update the records and specify a locking mode. Filter the recordset to constrain which records it selects from those available on the data source. Sort the recordset. Parameterize the recordset to customize its selection with information not known until run time. To use your class, open a database and construct a recordset object, passing the constructor a pointer to your CDatabase object. Then call the recordset s Open member function, where you can specify whether the object is a dynaset or a snapshot. Calling Open selects data from the data source. After the recordset object is opened, use its member functions and data members to scroll through the records and operate on them. The operations available depend on whether the object is a dynaset or a snapshot, whether it is updatable or read-only (this depends on the capability of the Open Database Connectivity (ODBC) data source), and whether you have implemented bulk row fetching. To refresh records that may have been changed or added since the Open call, call the object s Requery member function. Call the object s Close member function and destroy the object when you finish with it. In a derived CRecordset class, record field exchange (RFX) or bulk record field exchange (Bulk RFX) is used to support reading and updating of record fields. For more information about recordsets and record field exchange, see the articles Database Topics (General), Recordset (ODBC), Recordset: Fetching Records in Bulk (ODBC), and Record Field Exchange. For a focus on dynasets and snapshots, see the articles Dynaset and Snapshot. All articles are in Visual C++ Programmer s Guide. #include <afxdb.h> Alexandre Bragança Pág 8
9 CRecordset Class Members Data Members m_hstmt m_nfields m_nparams m_pdatabase m_strfilter m_strsort Contains the ODBC statement handle for the recordset. Type HSTMT. Contains the number of field data members in the recordset. Type UINT. Contains the number of parameter data members in the recordset. Type UINT. Contains a pointer to the CDatabase object through which the recordset is connected to a data source. Contains a CString that specifies a Structured Query Language (SQL) WHERE clause. Used as a filter to select only those records that meet certain criteria. Contains a CString that specifies an SQL ORDER BY clause. Used to control how the records are sorted. Construction CRecordset Open Close Constructs a CRecordset object. Your derived class must provide a constructor that calls this one. Opens the recordset by retrieving the table or performing the query that the recordset represents. Closes the recordset and the ODBC HSTMT associated with it. Recordset Attributes CanAppend CanBookmark CanRestart CanScroll CanTransact CanUpdate GetODBCFieldCount GetRecordCount GetStatus GetTableName GetSQL IsOpen IsBOF Returns nonzero if new records can be added to the recordset via the AddNew member function. Returns nonzero if the recordset supports bookmarks. Returns nonzero if Requery can be called to run the recordset s query again. Returns nonzero if you can scroll through the records. Returns nonzero if the data source supports transactions. Returns nonzero if the recordset can be updated (you can add, update, or delete records). Returns the number of fields in the recordset. Returns the number of records in the recordset. Gets the status of the recordset: the index of the current record and whether a final count of the records has been obtained. Gets the name of the table on which the recordset is based. Gets the SQL string used to select records for the recordset. Returns nonzero if Open has been called previously. Returns nonzero if the recordset has been positioned before the first record. There is no Alexandre Bragança Pág 9
10 IsEOF IsDeleted current record. Returns nonzero if the recordset has been positioned after the last record. There is no current record. Returns nonzero if the recordset is positioned on a deleted record. Recordset Update Operations AddNew CancelUpdate Delete Edit Update Prepares for adding a new record. Call Update to complete the addition. Cancels any pending updates due to an AddNew or Edit operation. Deletes the current record from the recordset. You must explicitly scroll to another record after the deletion. Prepares for changes to the current record. Call Update to complete the edit. Completes an AddNew or Edit operation by saving the new or edited data on the data source. Recordset Navigation Operations GetBookmark Assigns the bookmark value of a record to the parameter object. Move Positions the recordset to a specified number of records from the current record in either direction. MoveFirst Positions the current record on the first record in the recordset. Test for IsBOF first. MoveLast Positions the current record on the last record or on the last rowset. Test for IsEOF first. MoveNext Positions the current record on the next record or on the next rowset. Test for IsEOF first. MovePrev Positions the current record on the previous record or on the previous rowset. Test for IsBOF first. SetAbsolutePosition Positions the recordset on the record corresponding to the specified record number. SetBookmark Positions the recordset on the record specified by the bookmark. Other Recordset Operations Cancel FlushResultSet GetFieldValue GetODBCFieldInfo GetRowsetSize GetRowsFetched GetRowStatus IsFieldDirty Cancels an asynchronous operation or a process from a second thread. Returns nonzero if there is another result set to be retrieved, when using a predefined query. Returns the value of a field in a recordset. Returns specific kinds of information about the fields in a recordset. Returns the number of records you wish to retrieve during a single fetch. Returns the actual number of rows retrieved during a fetch. Returns the status of the row after a fetch. Returns nonzero if the specified field in the current Alexandre Bragança Pág 10
11 IsFieldNull IsFieldNullable RefreshRowset Requery SetFieldDirty SetFieldNull SetLockingMode SetParamNull SetRowsetCursorPosition record has been changed. Returns nonzero if the specified field in the current record is Null (has no value). Returns nonzero if the specified field in the current record can be set to Null (having no value). Refreshes the data and status of the specified row(s). Runs the recordset s query again to refresh the selected records. Marks the specified field in the current record as changed. Sets the value of the specified field in the current record to Null (having no value). Sets the locking mode to optimistic locking (the default) or pessimistic locking. Determines how records are locked for updates. Sets the specified parameter to Null (having no value). Positions the cursor on the specified row within the rowset. Recordset Overridables Check CheckRowsetError DoBulkFieldExchange DoFieldExchange GetDefaultConnect GetDefaultSQL OnSetOptions SetRowsetSize Called to examine the return code from an ODBC API function. Called to handle errors generated during record fetching. Called to exchange bulk rows of data from the data source to the recordset. Implements bulk record field exchange (Bulk RFX). Called to exchange data (in both directions) between the field data members of the recordset and the corresponding record on the data source. Implements record field exchange (RFX). Called to get the default connect string. Called to get the default SQL string to execute. Called to set options for the specified ODBC statement. Specifies the number of records you wish to retrieve during a fetch. Alexandre Bragança Pág 11
12 Example // Embed a CDatabase object // in your document class CDatabase m_dbcust; // Connect the object to a // data source (no password) // the ODBC connection dialog box // will always remain hidden m_dbcust.open( _T( "MYDATASOURCE" ), FALSE, FALSE, _T( "ODBC;UID=JOES" ), //...Or, query the user for all // connection information m_dbcust.open( NULL ); Example // Embed a CDatabase object // in your document class CDatabase m_dbcust; // Connect the object to a // read-only data source where // the ODBC connection dialog box // will always remain hidden m_dbcust.openex( _T( "DSN=MYDATASOURCE;UID=JOES" ), CDatabase::openReadOnly CDatabase::noOdbcDialog ); Example CString strcmd = "UPDATE Taxes SET Federal = 36%"; TRY m_dbcust.executesql( strcmd ); CATCH(CDBException, e) // The error code is in e->m_nretcode END_CATCH Alexandre Bragança Pág 12
13 Example The following sample code illustrates calls to GetFieldValue for a recordset object declared directly from CRecordset. // Create and open a database object; // do not load the cursor library CDatabase db; db.openex( NULL, CDatabase::forceOdbcDialog ); // Create and open a recordset object // directly from CRecordset. Note that a // table must exist in a connected database. // Use forwardonly type recordset for best // performance, since only MoveNext is required CRecordset rs( &db ); rs.open( CRecordset::forwardOnly, _T( "SELECT * FROM SomeTable" ) ); // Create a CDBVariant object to // store field data CDBVariant varvalue; // Loop through the recordset, // using GetFieldValue and // GetODBCFieldCount to retrieve // data in all columns short nfields = rs.getodbcfieldcount( ); while(!rs.iseof( ) ) for( short index = 0; index < nfields; index++ ) rs.getfieldvalue( index, varvalue ); // do something with varvalue rs.movenext( ); rs.close( ); db.close( ); Example This example rebuilds a recordset to apply a different sort order. // Example for CRecordset::Requery CCustSet rscustset( NULL ); // Open the recordset rscustset.open( ); // Use the recordset... // Set the sort order and Requery the recordset rscustset.m_strsort = "District, Last_Name"; if(!rscustset.canrestart( ) ) return; // Unable to requery if(!rscustset.requery( ) ) // Requery failed, so take action Alexandre Bragança Pág 13
14 Example This example shows a recordset created on the frame of a function. The example assumes the existence of m_dbcust, a member variable of type CDatabase already connected to the data source. // Create a derived CRecordset object CCustSet rscustset( &m_dbcust ); rscustset.open( ); if( rscustset.iseof( )!rscustset.canupdate( )!rscustset.cantransact( ) ) return; if(!m_dbcust.begintrans( ) ) // Do something to handle a failure else // Perhaps scroll to a new record... // Delete the current record rscustset.delete( ); //... // Finished commands for this transaction if( <the user confirms the transaction> ) m_dbcust.committrans( ); else // User changed mind m_dbcust.rollback( ); //... Example // Example for CRecordset::Edit // To edit a record, // First set up the edit buffer rscustset.edit( ); // Then edit field data members for the record rscustset.m_dwcustid = 2795; rscustset.m_strcustomer = "Jones Mfg"; // Finally, complete the operation if(!rscustset.update( ) ) // Handle the failure to update Alexandre Bragança Pág 14
15 Example The following code assumes that COutParamRecordset is a CRecordsetderived object based on a predefined query with an input parameter and an output parameter, and having multiple result sets. Note the structure of the DoFieldExchange override. // DoFieldExchange override // // Only necessary to handle parameter bindings. // Don't use CRecordset-derived class with bound // fields unless all result sets have same schema // OR there is conditional binding code. void COutParamRecordset::DoFieldExchange( CFieldExchange* pfx ) pfx->setfieldtype( CFieldExchange::outputParam ); RFX_Long( pfx, "Param1", m_noutparaminstructorcount ); // The "Param1" name here is a dummy name // that is never used pfx->setfieldtype( CFieldExchange::inputParam ); RFX_Text( pfx, "Param2", m_strinparamname ); // The "Param2" name here is a dummy name // that is never used // Now implement COurParamRecordset. // Assume db is an already open CDatabase object COutParamRecordset rs( &db ); rs.m_strinparamname = _T("Some_Input_Param_Value"); // Get the first result set // NOTE: SQL Server requires forwardonly cursor // type for multiple rowset returning stored // procedures rs.open( CRecordset::forwardOnly, "? = CALL GetCourses(? )", CRecordset::readOnly); // Loop through all the data in the first result set while (!rs.iseof( ) ) CString strfieldvalue; for( int nindex = 0; nindex < rs.getodbcfieldcount( ); nindex++ ) rs.getfieldvalue( nindex, strfieldvalue ); // TO DO: Use field value string. rs.movenext( ); Alexandre Bragança Pág 15
16 // Retrieve other result sets... while( rs.flushresultset( ) ) // must call MoveNext because cursor is invalid rs.movenext( ); while (!rs.iseof( ) ) CString strfieldvalue; for( int nindex = 0; nindex < rs.getodbcfieldcount( ); nindex++ ) rs.getfieldvalue( nindex, strfieldvalue ); // TO DO: Use field value string. rs.movenext( ); // All result sets have been flushed. Cannot // use the cursor, but the output parameter, // m_noutparaminstructorcount, has now been written. // Note that m_noutparaminstructorcount not valid until // CRecordset::FlushResultSet has returned FALSE, // indicating no more result sets will be returned. // TO DO: Use m_noutparaminstructorcount // Cleanup rs.close( ); db.close( ); Alexandre Bragança Pág 16
Chapter 7 -- Adding Database Support
Page 1 of 45 Chapter 7 Adding Database Support About This Chapter Most applications work with large amounts of data, often shared, that is frequently stored in a relational database management system (RDBMS).
More informationODBC Client Driver Help. 2015 Kepware, Inc.
2015 Kepware, Inc. 2 Table of Contents Table of Contents 2 4 Overview 4 External Dependencies 4 Driver Setup 5 Data Source Settings 5 Data Source Setup 6 Data Source Access Methods 13 Fixed Table 14 Table
More informationIntegrating Web & DBMS
Integrating Web & DBMS Gianluca Ramunno < ramunno@polito.it > english version created by Marco D. Aime < m.aime@polito.it > Politecnico di Torino Dip. Automatica e Informatica Open Database Connectivity
More informationAccessing Database Information Using Visual Basic:
Accessing Database Information Using Visual Basic: Data Access Objects and Remote Data Objects Amanda Reynolds Y398--Internship June 23, 1999 Abstract * Data Access Objects * Declaring a Data Bound Control
More informationVisual Basic Database Programming
Ch01 10/29/99 2:27 PM Page 1 O N E Visual Basic Database Programming Welcome to our book on Microsoft Visual Basic and ActiveX Data Objects (ADO) programming. In this book, we re going to see a tremendous
More informationODBC Chapter,First Edition
1 CHAPTER 1 ODBC Chapter,First Edition Introduction 1 Overview of ODBC 2 SAS/ACCESS LIBNAME Statement 3 Data Set Options: ODBC Specifics 15 DBLOAD Procedure: ODBC Specifics 25 DBLOAD Procedure Statements
More informationASP.NET Programming with C# and SQL Server
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET Objectives In this chapter, you will: Connect to SQL Server from ASP.NET Learn how to handle
More informationSYSMAC SCS V2.2 DATABASE
SYSMAC SCS V2.2 DATABASE OMRON ETC - UK Cx-Supervisor www.infoplc.net Technical Note Reference Number: 514-TN-002 Prepared by: Phil Carroll Issue: 1 Date: 8 th July 1999 Distribution: Internal External
More informationSiemens Applied Automation Page 1 11/26/03 9:57 PM. Maxum ODBC 3.11
Siemens Applied Automation Page 1 Maxum ODBC 3.11 Table of Contents Installing the Polyhedra ODBC driver... 2 Using ODBC with the Maxum Database... 2 Microsoft Access 2000 Example... 2 Access Example (Prior
More informationOBJECTSTUDIO. Database User's Guide P40-3203-03
OBJECTSTUDIO Database User's Guide P40-3203-03 Release information for this manual ObjectStudio Database User's Guide, P40-3203-03, is dated vember 1, 2003. This document supports Release 6.9 of ObjectStudio.
More informationChapter 4 Accessing Data
Chapter 4: Accessing Data 73 Chapter 4 Accessing Data The entire purpose of reporting is to make sense of data. Therefore, it is important to know how to access data locked away in the database. In this
More informationDuration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff
D80198GC10 Oracle Database 12c SQL and Fundamentals Summary Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff Level Professional Delivery Method Instructor-led
More informationOracle Database: SQL and PL/SQL Fundamentals
Oracle University Contact Us: 1.800.529.0165 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This course is designed to deliver the fundamentals of SQL and PL/SQL along
More informationINTRODUCTION: SQL SERVER ACCESS / LOGIN ACCOUNT INFO:
INTRODUCTION: You can extract data (i.e. the total cost report) directly from the Truck Tracker SQL Server database by using a 3 rd party data tools such as Excel or Crystal Reports. Basically any software
More informationGetting Started with STATISTICA Enterprise Programming
Getting Started with STATISTICA Enterprise Programming 2300 East 14th Street Tulsa, OK 74104 Phone: (918) 749 1119 Fax: (918) 749 2217 E mail: mailto:developerdocumentation@statsoft.com Web: www.statsoft.com
More informationOracle Database: SQL and PL/SQL Fundamentals NEW
Oracle University Contact Us: + 38516306373 Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training delivers the
More information1 Changes in this release
Oracle SQL Developer Oracle TimesTen In-Memory Database Support Release Notes Release 4.0 E39883-01 June 2013 This document provides late-breaking information as well as information that is not yet part
More informationUsing SQL Server Management Studio
Using SQL Server Management Studio Microsoft SQL Server Management Studio 2005 is a graphical tool for database designer or programmer. With SQL Server Management Studio 2005 you can: Create databases
More informationOracle Database: SQL and PL/SQL Fundamentals
Oracle University Contact Us: +966 12 739 894 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training is designed to
More informationODBC And SQL. V4.x 06/30/2005 Document v1.01
ODBC And SQL V4.x 06/30/2005 Document v1.01 Overview The purpose of this document is to provide a basic understanding of how Kepware s ODBC driver works with Microsoft SQL. This is a quick reference document,
More informationDBISAM Version 4 ODBC Driver Manual
Table of Contents DBISAM Version 4 ODBC Driver Manual Table Of Contents Chapter 1 - Before You Begin 1 1.1 Application Compatibility 1 Chapter 2 - Using the ODBC Driver 5 2.1 Configuring a Data Source
More informationIBM soliddb IBM soliddb Universal Cache Version 6.3. Programmer Guide SC23-9825-03
IBM soliddb IBM soliddb Universal Cache Version 6.3 Programmer Guide SC23-9825-03 Note Before using this information and the product it supports, read the information in Notices on page 287. First edition,
More informationMyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC
MyOra 3.0 SQL Tool for Oracle User Guide Jayam Systems, LLC Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL
More informationLearnFromGuru Polish your knowledge
SQL SERVER 2008 R2 /2012 (TSQL/SSIS/ SSRS/ SSAS BI Developer TRAINING) Module: I T-SQL Programming and Database Design An Overview of SQL Server 2008 R2 / 2012 Available Features and Tools New Capabilities
More informationCreate a New Database in Access 2010
Create a New Database in Access 2010 Table of Contents OVERVIEW... 1 CREATING A DATABASE... 1 ADDING TO A DATABASE... 2 CREATE A DATABASE BY USING A TEMPLATE... 2 CREATE A DATABASE WITHOUT USING A TEMPLATE...
More informationChancery SMS 7.5.0 Database Split
TECHNICAL BULLETIN Microsoft SQL Server replication... 1 Transactional replication... 2 Preparing to set up replication... 3 Setting up replication... 4 Quick Reference...11, 2009 Pearson Education, Inc.
More informationAdvanced Queries and Linked Servers
Advanced Queries and Linked Servers Advanced Queries and Linked Servers Objectives Create dynamic SQL in stored procedures. Use SQL Server cursors. Learn how to partition data horizontally. Create partitioned
More informationUsing the Query Analyzer
Using the Query Analyzer Using the Query Analyzer Objectives Explore the Query Analyzer user interface. Learn how to use the menu items and toolbars to work with SQL Server data and objects. Use object
More informationSQL Server Replication Guide
SQL Server Replication Guide Rev: 2013-08-08 Sitecore CMS 6.3 and Later SQL Server Replication Guide Table of Contents Chapter 1 SQL Server Replication Guide... 3 1.1 SQL Server Replication Overview...
More informationODBC Sample Application for Tandem NonStop SQL/MX
NonStop Software SDK Application TechNote ODBC Sample Application for Tandem NonStop SQL/MX NonStop Software Developers Page The Windows NT Server program discussed in this NonStop Software Application
More informationDeveloping SQL and PL/SQL with JDeveloper
Seite 1 von 23 Developing SQL and PL/SQL with JDeveloper Oracle JDeveloper 10g Preview Technologies used: SQL, PL/SQL An Oracle JDeveloper Tutorial September 2003 Content This tutorial walks through the
More informationThe JAVA Way: JDBC and SQLJ
The JAVA Way: JDBC and SQLJ David Toman School of Computer Science University of Waterloo Introduction to Databases CS348 David Toman (University of Waterloo) JDBC/SQLJ 1 / 21 The JAVA way to Access RDBMS
More informationDatabase Applications with VDBT Components
Database Applications with VDBT Components Ted Faison 96/4/23 Developing database applications has always been a very slow process, hindered by a myriad of low-level details imposed by the underlying database
More informationHow To Understand The Error Codes On A Crystal Reports Print Engine
Overview Error Codes This document lists all the error codes and the descriptions that the Crystal Reports Print Engine generates. PE_ERR_NOTENOUGHMEMORY (500) There is not enough memory available to complete
More informationTroubleshooting guide for 80004005 errors in Active Server Pages and Microsoft Data Access Components
Page 1 of 9 Troubleshooting guide for 80004005 errors in Active Server Pages and Microsoft Data Access Components This article was previously published under Q306518 On This Page SUMMARY MORE INFORMATION
More informationANDROID APPS DEVELOPMENT FOR MOBILE GAME
ANDROID APPS DEVELOPMENT FOR MOBILE GAME Lecture 7: Data Storage and Web Services Overview Android provides several options for you to save persistent application data. Storage Option Shared Preferences
More informationSQL and Java. Database Systems Lecture 19 Natasha Alechina
Database Systems Lecture 19 Natasha Alechina In this Lecture SQL in Java SQL from within other Languages SQL, Java, and JDBC For More Information Sun Java tutorial: http://java.sun.com/docs/books/tutorial/jdbc
More informationNew Features in Neuron ESB 2.6
New Features in Neuron ESB 2.6 This release significantly extends the Neuron ESB platform by introducing new capabilities that will allow businesses to more easily scale, develop, connect and operationally
More informationBeginning C# 5.0. Databases. Vidya Vrat Agarwal. Second Edition
Beginning C# 5.0 Databases Second Edition Vidya Vrat Agarwal Contents J About the Author About the Technical Reviewer Acknowledgments Introduction xviii xix xx xxi Part I: Understanding Tools and Fundamentals
More informationMOC 20461C: Querying Microsoft SQL Server. Course Overview
MOC 20461C: Querying Microsoft SQL Server Course Overview This course provides students with the knowledge and skills to query Microsoft SQL Server. Students will learn about T-SQL querying, SQL Server
More informationDatabase Access from a Programming Language: Database Access from a Programming Language
Database Access from a Programming Language: Java s JDBC Werner Nutt Introduction to Databases Free University of Bozen-Bolzano 2 Database Access from a Programming Language Two Approaches 1. Embedding
More informationDatabase Access from a Programming Language:
Database Access from a Programming Language: Java s JDBC Werner Nutt Introduction to Databases Free University of Bozen-Bolzano 2 Database Access from a Programming Language Two Approaches 1. Embedding
More informationWeb Intelligence User Guide
Web Intelligence User Guide Office of Financial Management - Enterprise Reporting Services 4/11/2011 Table of Contents Chapter 1 - Overview... 1 Purpose... 1 Chapter 2 Logon Procedure... 3 Web Intelligence
More informationCOMOS. Lifecycle COMOS Snapshots. "COMOS Snapshots" at a glance 1. System requirements for installing "COMOS Snapshots" Database management 3
"" at a glance 1 System requirements for installing "COMOS Snapshots" 2 COMOS Lifecycle Operating Manual Database management 3 Configuring "COMOS Snapshots" 4 Default settings for "COMOS Snapshots" 5 Starting
More information"SQL Database Professional " module PRINTED MANUAL
"SQL Database Professional " module PRINTED MANUAL "SQL Database Professional " module All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or
More informationData Access Guide. BusinessObjects 11. Windows and UNIX
Data Access Guide BusinessObjects 11 Windows and UNIX 1 Copyright Trademarks Use restrictions Patents Copyright 2004 Business Objects. All rights reserved. If you find any problems with this documentation,
More informationAccessing Your Database with JMP 10 JMP Discovery Conference 2012 Brian Corcoran SAS Institute
Accessing Your Database with JMP 10 JMP Discovery Conference 2012 Brian Corcoran SAS Institute JMP provides a variety of mechanisms for interfacing to other products and getting data into JMP. The connection
More informationHigh-Performance Oracle: Proven Methods for Achieving Optimum Performance and Availability
About the Author Geoff Ingram (mailto:geoff@dbcool.com) is a UK-based ex-oracle product developer who has worked as an independent Oracle consultant since leaving Oracle Corporation in the mid-nineties.
More informationFileMaker 12. ODBC and JDBC Guide
FileMaker 12 ODBC and JDBC Guide 2004 2012 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker and Bento are trademarks of FileMaker, Inc.
More informationDatabase Studio is the new tool to administrate SAP MaxDB database instances as of version 7.5.
1 2 3 4 Database Studio is the new tool to administrate SAP MaxDB database instances as of version 7.5. It replaces the previous tools Database Manager GUI and SQL Studio from SAP MaxDB version 7.7 onwards
More informationA Brief Introduction to MySQL
A Brief Introduction to MySQL by Derek Schuurman Introduction to Databases A database is a structured collection of logically related data. One common type of database is the relational database, a term
More informationDarshan Institute of Engineering & Technology PL_SQL
Explain the advantages of PL/SQL. Advantages of PL/SQL Block structure: PL/SQL consist of block of code, which can be nested within each other. Each block forms a unit of a task or a logical module. PL/SQL
More informationDIRECTV Rio Track 2 Dispatch 3 rd Party QA Truck Roll Activities Instructor Guide
Rio Track 2 Dispatch 3 rd Party QA Truck Roll Activities Table of Contents Introduction...1 Course Outline...2 Siebel (Rio) Benefits...3 Getting Started...4 Logging Onto the etrust Identity Manager...5
More informationProducing Listings and Reports Using SAS and Crystal Reports Krishna (Balakrishna) Dandamudi, PharmaNet - SPS, Kennett Square, PA
Producing Listings and Reports Using SAS and Crystal Reports Krishna (Balakrishna) Dandamudi, PharmaNet - SPS, Kennett Square, PA ABSTRACT The SAS Institute has a long history of commitment to openness
More informationServices. Relational. Databases & JDBC. Today. Relational. Databases SQL JDBC. Next Time. Services. Relational. Databases & JDBC. Today.
& & 1 & 2 Lecture #7 2008 3 Terminology Structure & & Database server software referred to as Database Management Systems (DBMS) Database schemas describe database structure Data ordered in tables, rows
More informationDatabase Programming with PL/SQL: Learning Objectives
Database Programming with PL/SQL: Learning Objectives This course covers PL/SQL, a procedural language extension to SQL. Through an innovative project-based approach, students learn procedural logic constructs
More informationTRANSACÇÕES. PARTE I (Extraído de SQL Server Books Online )
Transactions Architecture TRANSACÇÕES PARTE I (Extraído de SQL Server Books Online ) Microsoft SQL Server 2000 maintains the consistency and integrity of each database despite errors that occur in the
More informationACDS AIMS Certified Database Specialist Course.
ACDS AIMS Certified Database Specialist Course. Data Connectivity Learning Objectives 8 Be aware of the different techniques to connect an Access Data Page to different data providers among them: ODBC
More information2. Unzip the file using a program that supports long filenames, such as WinZip. Do not use DOS.
Using the TestTrack ODBC Driver The read-only driver can be used to query project data using ODBC-compatible products such as Crystal Reports or Microsoft Access. You cannot enter data using the ODBC driver;
More informationAdvanced Object Oriented Database access using PDO. Marcus Börger
Advanced Object Oriented Database access using PDO Marcus Börger ApacheCon EU 2005 Marcus Börger Advanced Object Oriented Database access using PDO 2 Intro PHP and Databases PHP 5 and PDO Marcus Börger
More informationSQL Server. 1. What is RDBMS?
SQL Server 1. What is RDBMS? Relational Data Base Management Systems (RDBMS) are database management systems that maintain data records and indices in tables. Relationships may be created and maintained
More informationBuilding Web Applications, Servlets, JSP and JDBC
Building Web Applications, Servlets, JSP and JDBC Overview Java 2 Enterprise Edition (JEE) is a powerful platform for building web applications. The JEE platform offers all the advantages of developing
More informationSAP Business Objects Business Intelligence platform Document Version: 4.1 Support Package 7 2015-11-24. Data Federation Administration Tool Guide
SAP Business Objects Business Intelligence platform Document Version: 4.1 Support Package 7 2015-11-24 Data Federation Administration Tool Guide Content 1 What's new in the.... 5 2 Introduction to administration
More informationODBC Applications: Writing Good Code
05_0137143931_ch05.qxd 2/17/09 2:04 PM Page 123 CHAPTER FIVE ODBC Applications: Writing Good Code D eveloping performance-optimized ODBC applications is not easy. Microsoft s ODBC Programmer s Reference
More informationBefore you may use any database in Limnor, you need to create a database connection for it. Select Project menu, select Databases:
How to connect to Microsoft SQL Server Question: I have a personal version of Microsoft SQL Server. I tried to use Limnor with it and failed. I do not know what to type for the Server Name. I typed local,
More informationSQL Server. 2012 for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach
TRAINING & REFERENCE murach's SQL Server 2012 for developers Bryan Syverson Joel Murach Mike Murach & Associates, Inc. 4340 N. Knoll Ave. Fresno, CA 93722 www.murach.com murachbooks@murach.com Expanded
More informationJava 7 Recipes. Freddy Guime. vk» (,\['«** g!p#« Carl Dea. Josh Juneau. John O'Conner
1 vk» Java 7 Recipes (,\['«** - < g!p#«josh Juneau Carl Dea Freddy Guime John O'Conner Contents J Contents at a Glance About the Authors About the Technical Reviewers Acknowledgments Introduction iv xvi
More informationMicrosoft' Excel & Access Integration
Microsoft' Excel & Access Integration with Office 2007 Michael Alexander and Geoffrey Clark J1807 ; pwiueyb Wiley Publishing, Inc. Contents About the Authors Acknowledgments Introduction Part I: Basic
More informationOracle 10g PL/SQL Training
Oracle 10g PL/SQL Training Course Number: ORCL PS01 Length: 3 Day(s) Certification Exam This course will help you prepare for the following exams: 1Z0 042 1Z0 043 Course Overview PL/SQL is Oracle's Procedural
More informationPersistent Stored Modules (Stored Procedures) : PSM
Persistent Stored Modules (Stored Procedures) : PSM Stored Procedures What is stored procedure? SQL allows you to define procedures and functions and store them in the database server Executed by the database
More informationBusiness Intelligence Getting Started Guide
Business Intelligence Getting Started Guide 2013 Table of Contents Introduction... 1 Introduction... 1 What is Sage Business Intelligence?... 1 System Requirements... 2 Recommended System Requirements...
More informationSAP BO 4.1 COURSE CONTENT
Data warehousing/dimensional modeling/ SAP BW 7.0 Concepts 1. OLTP vs. OLAP 2. Types of OLAP 3. Multi Dimensional Modeling Of SAP BW 7.0 4. SAP BW 7.0 Cubes, DSO s,multi Providers, Infosets 5. Business
More informationSearch help. More on Office.com: images templates
Page 1 of 14 Access 2010 Home > Access 2010 Help and How-to > Getting started Search help More on Office.com: images templates Access 2010: database tasks Here are some basic database tasks that you can
More informationDCA. Document Control & Archiving USER S GUIDE
DCA Document Control & Archiving USER S GUIDE Decision Management International, Inc. 1111 Third Street West Suite 250 Bradenton, FL 34205 Phone 800-530-0803 FAX 941-744-0314 www.dmius.com Copyright 2002,
More informationDeveloping Web Applications for Microsoft SQL Server Databases - What you need to know
Developing Web Applications for Microsoft SQL Server Databases - What you need to know ATEC2008 Conference Session Description Alpha Five s web components simplify working with SQL databases, but what
More informationOptimizing the Performance of the Oracle BI Applications using Oracle Datawarehousing Features and Oracle DAC 10.1.3.4.1
Optimizing the Performance of the Oracle BI Applications using Oracle Datawarehousing Features and Oracle DAC 10.1.3.4.1 Mark Rittman, Director, Rittman Mead Consulting for Collaborate 09, Florida, USA,
More informationCA Clarity PPM. Connector for Microsoft SharePoint Product Guide. Service Pack 02.0.01
CA Clarity PPM Connector for Microsoft SharePoint Product Guide Service Pack 02.0.01 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred
More informationVector HelpDesk - Administrator s Guide
Vector HelpDesk - Administrator s Guide Vector HelpDesk - Administrator s Guide Configuring and Maintaining Vector HelpDesk version 5.6 Vector HelpDesk - Administrator s Guide Copyright Vector Networks
More informationSimba Apache Cassandra ODBC Driver
Simba Apache Cassandra ODBC Driver with SQL Connector 2.2.0 Released 2015-11-13 These release notes provide details of enhancements, features, and known issues in Simba Apache Cassandra ODBC Driver with
More informationOracle Database: SQL and PL/SQL Fundamentals NEW
Oracle University Contact Us: 001-855-844-3881 & 001-800-514-06-97 Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals
More informationSpecialized Programme on Web Application Development using Open Source Tools
Specialized Programme on Web Application Development using Open Source Tools A. NAME OF INSTITUTE Centre For Development of Advanced Computing B. NAME/TITLE OF THE COURSE C. COURSE DATES WITH DURATION
More informationFTP Client Engine Library for Visual dbase. Programmer's Manual
FTP Client Engine Library for Visual dbase Programmer's Manual (FCE4DB) Version 3.3 May 6, 2014 This software is provided as-is. There are no warranties, expressed or implied. MarshallSoft Computing, Inc.
More informationInterBase 6. Embedded SQL Guide. Borland/INPRISE. 100 Enterprise Way, Scotts Valley, CA 95066 http://www.interbase.com
InterBase 6 Embedded SQL Guide Borland/INPRISE 100 Enterprise Way, Scotts Valley, CA 95066 http://www.interbase.com Inprise/Borland may have patents and/or pending patent applications covering subject
More informationWeb Services API Developer Guide
Web Services API Developer Guide Contents 2 Contents Web Services API Developer Guide... 3 Quick Start...4 Examples of the Web Service API Implementation... 13 Exporting Warehouse Data... 14 Exporting
More informationEmbedded SQL programming
Embedded SQL programming http://www-136.ibm.com/developerworks/db2 Table of contents If you're viewing this document online, you can click any of the topics below to link directly to that section. 1. Before
More informationPHP Language Binding Guide For The Connection Cloud Web Services
PHP Language Binding Guide For The Connection Cloud Web Services Table Of Contents Overview... 3 Intended Audience... 3 Prerequisites... 3 Term Definitions... 3 Introduction... 4 What s Required... 5 Language
More informationMyOra 3.5. User Guide. SQL Tool for Oracle. Kris Murthy
MyOra 3.5 SQL Tool for Oracle User Guide Kris Murthy Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL Editor...
More informationSPHOL207: Database Snapshots with SharePoint 2013
2013 SPHOL207: Database Snapshots with SharePoint 2013 Hands-On Lab Lab Manual This document is provided as-is. Information and views expressed in this document, including URL and other Internet Web site
More informationFileMaker 11. ODBC and JDBC Guide
FileMaker 11 ODBC and JDBC Guide 2004 2010 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker is a trademark of FileMaker, Inc. registered
More informationProduct: DQ Order Manager Release Notes
Product: DQ Order Manager Release Notes Subject: DQ Order Manager v7.1.25 Version: 1.0 March 27, 2015 Distribution: ODT Customers DQ OrderManager v7.1.25 Added option to Move Orders job step Update order
More informationUser's Guide. Using RFDBManager. For 433 MHz / 2.4 GHz RF. Version 1.23.01
User's Guide Using RFDBManager For 433 MHz / 2.4 GHz RF Version 1.23.01 Copyright Notice Copyright 2005 Syntech Information Company Limited. All rights reserved The software contains proprietary information
More informationRelease 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix ABSTRACT INTRODUCTION Data Access
Release 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix Jennifer Clegg, SAS Institute Inc., Cary, NC Eric Hill, SAS Institute Inc., Cary, NC ABSTRACT Release 2.1 of SAS
More informationFileMaker 13. ODBC and JDBC Guide
FileMaker 13 ODBC and JDBC Guide 2004 2013 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker and Bento are trademarks of FileMaker, Inc.
More informationADO and SQL Server Security
ADO and SQL Server Security Security is a growing concern in the Internet/intranet development community. It is a constant trade off between access to services and data, and protection of those services
More informationTips and Tricks SAGE ACCPAC INTELLIGENCE
Tips and Tricks SAGE ACCPAC INTELLIGENCE 1 Table of Contents Auto e-mailing reports... 4 Automatically Running Macros... 7 Creating new Macros from Excel... 8 Compact Metadata Functionality... 9 Copying,
More informationCS346: Database Programming. http://warwick.ac.uk/cs346
CS346: Database Programming http://warwick.ac.uk/cs346 1 Database programming Issue: inclusionofdatabasestatementsinaprogram combination host language (general-purpose programming language, e.g. Java)
More informationTaskCentre v4.5 Run Crystal Report Tool White Paper
TaskCentre v4.5 Run Crystal Report Tool White Paper Document Number: PD500-03-13-1_0-WP Orbis Software Limited 2010 Table of Contents COPYRIGHT 1 TRADEMARKS 1 INTRODUCTION 2 Overview 2 Features 2 TECHNICAL
More informationHow To Create A Powerpoint Intelligence Report In A Pivot Table In A Powerpoints.Com
Sage 500 ERP Intelligence Reporting Getting Started Guide 27.11.2012 Table of Contents 1.0 Getting started 3 2.0 Managing your reports 10 3.0 Defining report properties 18 4.0 Creating a simple PivotTable
More informationPerformance Implications of Various Cursor Types in Microsoft SQL Server. By: Edward Whalen Performance Tuning Corporation
Performance Implications of Various Cursor Types in Microsoft SQL Server By: Edward Whalen Performance Tuning Corporation INTRODUCTION There are a number of different types of cursors that can be created
More information