Universal Data Link
   HOME

TheInfoList



OR:

Microsoft Data Access Components (MDAC; also known as Windows DAC) is a framework of interrelated
Microsoft Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
technologies that allows programmers a uniform and comprehensive way of developing applications that can access almost any data store. Its components include:
ActiveX Data Objects In computing, Microsoft's ActiveX Data Objects (ADO) comprises a set of Component Object Model (COM) objects for accessing data sources. A part of MDAC (Microsoft Data Access Components), it provides a middleware layer between programming la ...
(ADO),
OLE DB OLE DB (''Object Linking and Embedding, Database'', sometimes written as OLEDB or OLE-DB) is an Application programming interface, API designed by Microsoft that allows accessing data from a variety of sources in a uniform manner. The API provid ...
, and
Open Database Connectivity In computing, Open Database Connectivity (ODBC) is a standard application programming interface (API) for accessing database management systems (DBMS). The designers of ODBC aimed to make it independent of database systems and operating systems. An ...
(ODBC). There have been several deprecated components as well, such as the
Jet Database Engine The Access Database Engine (also Office Access Connectivity Engine or ACE and formerly Microsoft Jet Database Engine, ''Microsoft JET Engine'' or simply ''Jet'') is a database engine on which several Microsoft products have been built. The firs ...
, MSDASQL (the OLE DB provider for ODBC), and Remote Data Services (RDS). Some components have also become
obsolete Obsolescence is the process of becoming antiquated, out of date, old-fashioned, no longer in general use, or no longer useful, or the condition of being in such a state. When used in a biological sense, it means imperfect or rudimentary when comp ...
, such as the former Data Access Objects
API An application programming interface (API) is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build ...
and
Remote Data Objects Microsoft Data Access Components (MDAC; also known as Windows DAC) is a framework of interrelated Microsoft technologies that allows programmers a uniform and comprehensive way of developing applications that can access almost any data store. Its ...
. The first version of MDAC was released in August 1996. At that time Microsoft stated MDAC was more a concept than a stand-alone program and had no widespread distribution method. Later Microsoft released upgrades to MDAC as web-based redistributable packages. Eventually, later versions were integrated with
Microsoft Windows Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
and
Internet Explorer Internet Explorer (formerly Microsoft Internet Explorer and Windows Internet Explorer, commonly abbreviated as IE or MSIE) is a deprecation, retired series of graphical user interface, graphical web browsers developed by Microsoft that were u ...
, and in MDAC 2.8 SP1 they ceased offering MDAC as a redistributable package. Throughout its history, MDAC has been the subject of several security flaws, which led to attacks such as an escalated privileges attack, although the vulnerabilities were generally fixed in later versions and fairly promptly. The current version is 2.8
service pack In computing, a service pack comprises a collection of updates, fixes, or enhancements to a software program delivered in the form of a single installable package. Companies often release a service pack when the number of individual patches to a ...
1, but the product has had many different versions and many of its components have been deprecated and replaced by newer Microsoft technologies. MDAC is now known as Windows DAC in
Windows Vista Windows Vista is a major release of the Windows NT operating system developed by Microsoft. It was the direct successor to Windows XP, released five years earlier, which was then the longest time span between successive releases of Microsoft W ...
.


Architecture

The latest version of MDAC (2.8) consists of several interacting components, all of which are
Windows Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
specific except for
ODBC In computing, Open Database Connectivity (ODBC) is a standard application programming interface (API) for accessing database management systems (DBMS). The designers of ODBC aimed to make it independent of database systems and operating systems. An ...
(which is available on several platforms). MDAC architecture may be viewed as three layers: a programming interface layer, consisting of ADO and
ADO.NET ADO.NET is a data access technology from the Microsoft .NET Framework that provides communication between relational and non-relational systems through a common set of components. ADO.NET is a set of computer software components that programmers ...
, a database access layer developed by database vendors such as Oracle and Microsoft (
OLE DB OLE DB (''Object Linking and Embedding, Database'', sometimes written as OLEDB or OLE-DB) is an Application programming interface, API designed by Microsoft that allows accessing data from a variety of sources in a uniform manner. The API provid ...
, .NET managed providers and
ODBC In computing, Open Database Connectivity (ODBC) is a standard application programming interface (API) for accessing database management systems (DBMS). The designers of ODBC aimed to make it independent of database systems and operating systems. An ...
drivers), and the database itself. These component layers are all made available to applications through the MDAC
API An application programming interface (API) is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build ...
. The
Microsoft SQL Server Microsoft SQL Server is a proprietary relational database management system developed by Microsoft using Structured Query Language (SQL, often pronounced "sequel"). As a database server, it is a software product with the primary function of ...
Network Library, a proprietary access method specific to Microsoft SQL Server, is also included in the MDAC. Developers of Windows applications are encouraged to use ADO or ADO.NET for data access, the benefit being that users of the application program are not constrained in their choice of database architecture except that it should be supported by MDAC. Naturally, developers still have the choice of writing applications which directly access OLE DB and ODBC.


Microsoft SQL Server Network Library

The Microsoft SQL Server Network Library (also known as Net-Lib) is used by the Microsoft SQL Server to read and write data using many different
network protocol A communication protocol is a system of rules that allows two or more entities of a communications system to transmit information via any variation of a physical quantity. The protocol defines the rules, syntax, semantics, and synchronization of ...
s. Though Net-Lib is specific to the SQL Server, Microsoft includes it with MDAC. The SQL Server uses the Open Data Services (ODS) library to communicate with Net-Lib, which interfaces directly with the
Windows NT Windows NT is a Proprietary software, proprietary Graphical user interface, graphical operating system produced by Microsoft as part of its Windows product line, the first version of which, Windows NT 3.1, was released on July 27, 1993. Original ...
operating system line's
Win32 The Windows API, informally WinAPI, is the foundational application programming interface (API) that allows a computer program to access the features of the Microsoft Windows operating system in which the program is running. Programs can acces ...
subsystem A system is a group of interacting or interrelated elements that act according to a set of rules to form a unified whole. A system, surrounded and influenced by its environment, is described by its boundaries, structure and purpose and is exp ...
. The SQL Server Network Library is controlled through the use of a Client Network Utility, which is bundled with the SQL Server. Each Net-Lib supported network protocol has a separate driver (not to be confused with a
device driver In the context of an operating system, a device driver is a computer program that operates or controls a particular type of device that is attached to a computer or automaton. A driver provides a software interface to hardware devices, enabli ...
), and has support for a
session layer In the seven-layer OSI model of computer networking, the session layer is layer 5. The session layer provides the mechanism for opening, closing and managing a session between end-user application processes, i.e., a semi-permanent dialogue. ...
in its protocol stack. There are two general types of Net-Lib: the primary and the secondary. The primary Net-Lib consists of a ''Super Socket'' Net-Lib and the ''Shared Memory'' Net-Lib, while there are numerous secondary Net-Libs, including
TCP/IP The Internet protocol suite, commonly known as TCP/IP, is a framework for organizing the communication protocols used in the Internet and similar computer networks according to functional criteria. The foundational protocols in the suite are ...
and named pipes network libraries (named pipes are a method of communicating with other processes via a system-persistent
pipeline A pipeline is a system of Pipe (fluid conveyance), pipes for long-distance transportation of a liquid or gas, typically to a market area for consumption. The latest data from 2014 gives a total of slightly less than of pipeline in 120 countries ...
that is given an identity). The Microsoft OLE DB Provider for SQL Server (SQLOLEDB) communicates via primary Net-Libs. The Super Socket Net-Lib deals with inter-computer communications and coordinates the secondary Net-Libs – though the TCP/IP secondary Net-Lib is an exception in that it calls on the Windows Sockets 2 API directly. The
Banyan VINES Banyan VINES is a discontinued network operating system developed by Banyan Systems for computers running AT&T's UNIX System V. ''VINES'' is an acronym for ''Virtual Integrated NEtwork Service''. Like Novell NetWare, VINES's network services ...
,
AppleTalk AppleTalk is a discontinued proprietary suite of networking protocols developed by Apple Computer for their Macintosh computers. AppleTalk includes a number of features that allow local area networks to be connected with no prior setup or the ...
,
ServerNet ServerNet is a switched fabric communications link primarily used in proprietary computers made by Tandem Computers, Compaq, and HP. Its features include good scalability, clean fault containment, error detection and failover. The ServerNet arch ...
,
IPX/SPX IPX/SPX stands for Internetwork Packet Exchange/Sequenced Packet Exchange. IPX and SPX are networking protocols used initially on networks using the (since discontinued) Novell NetWare operating systems. They also became widely used on networks ...
, Giganet, and
RPC RPC may refer to: Science and technology * Rational polynomial coefficient * Reactive Plastic Curtain, a carbon-dioxide-absorbing device used in some rebreather breathing sets * Regional Playback Control, a regional lockout technology for DVDs ...
Net-Libs were dropped from MDAC 2.5 onwards. The Network Library router had the job of managing all these protocols, however now only the named pipes secondary Net-Lib is managed by the router. The Super Socket Net-Lib also handles
data encryption In cryptography, encryption (more specifically, encoding) is the process of transforming information in a way that, ideally, only authorized parties can decode. This process converts the original representation of the information, known as plai ...
via the use of the Windows SSL API. The Shared Memory Net-Lib, on the other hand, manages connections between multiple instances of SQL Server that exist on one computer. It uses a shared memory area to communicate between the processes. This is inherently secure; there is no need for data encryption between instances of SQL Server that exist on one computer as the operating system does not allow any other process access to the instances' area of shared memory. Net-Lib is also able to support the impersonation of a logged in user's security context for protocols that support authenticated connections (called ''trusted connections''). This allows Net-Lib to provide an integrated logon authentication mechanism via the use of Windows Authentication. Windows Authentication is not supported on Windows 98 or Windows Me.Kalen Delaney (2000)
"Inside Microsoft SQL Server 2000"
3rd edition. Redmond: Microsoft Press, pp. 70–74.


OLE DB

OLE DB OLE DB (''Object Linking and Embedding, Database'', sometimes written as OLEDB or OLE-DB) is an Application programming interface, API designed by Microsoft that allows accessing data from a variety of sources in a uniform manner. The API provid ...
(also called OLEDB or OLE-DB) allows MDAC applications access to different types of
data Data ( , ) are a collection of discrete or continuous values that convey information, describing the quantity, quality, fact, statistics, other basic units of meaning, or simply sequences of symbols that may be further interpreted for ...
stores in a uniform manner. Microsoft has used this technology to separate the application from data can store in the website the data store that it needs to access. This was done because different applications need access to different types and sources of data, and do not necessarily need to know how to access technology-specific functionality. The technology is conceptually divided into ''consumers'' and ''providers''. The consumers are the applications that need access to the data, and the provider is the software component that exposes an OLE DB interface through the use of the
Component Object Model Component Object Model (COM) is a binary-interface technology for software components from Microsoft that enables using objects in a language-neutral way between different programming languages, programming contexts, processes and machines ...
(or COM). OLE DB is the database access interface technology used by MDAC. OLE DB providers can be created to access such simple data stores as a text file or
spreadsheet A spreadsheet is a computer application for computation, organization, analysis and storage of data in tabular form. Spreadsheets were developed as computerized analogs of paper accounting worksheets. The program operates on data entered in c ...
, through to such complex databases as
Oracle An oracle is a person or thing considered to provide insight, wise counsel or prophetic predictions, most notably including precognition of the future, inspired by deities. If done through occultic means, it is a form of divination. Descript ...
and SQL Server. However, because different data store technology can have different capabilities, OLE DB providers may not implement every possible interface available. The capabilities that are available are implemented through the use of COM objects an OLE DB provider will map the data store technology's functionality to a particular COM interface. Microsoft calls the availability of an interface to be "provider-specific" as it may not be applicable depending on the database technology involved. Additionally, however, providers may also augment the capabilities of a data store; these capabilities are known as ''services'' in Microsoft parlance. The ''Microsoft OLE DB Provider for SQL Server'' (SQLOLEDB) is the OLE DB provider that Microsoft provides for the
Microsoft SQL Server Microsoft SQL Server is a proprietary relational database management system developed by Microsoft using Structured Query Language (SQL, often pronounced "sequel"). As a database server, it is a software product with the primary function of ...
from version 6.5 upwards.


Universal data link

Universal data link files (or '.udl files') provide a common user interface for specifying connection attributes. A user can use a Data Link Properties
dialog box In computing, a dialog box (also simply dialog) is a graphical control element in the form of a small window that communicates information to the user and prompts them for a response. Dialog boxes are classified as " modal" or "modeless", dep ...
to save connection information in a .udl file as an alternative to directly specifying them by hand in a connection string. Consequently, these files provide a convenient level of
indirection In computer programming, an indirection (also called a reference) is a way of referring to something using a name, reference, or container instead of the value itself. The most common form of indirection is the act of manipulating a value through ...
. Additionally, the dialog box specifies a number of alternate OLE DB data providers for a variety of target applications.MSDN
"Creating and Configuring Universal Data Link (.udl) Files"
Microsoft. Archived February 17, 2007; accessed April 28, 2007.


ODBC

Open Database Connectivity In computing, Open Database Connectivity (ODBC) is a standard application programming interface (API) for accessing database management systems (DBMS). The designers of ODBC aimed to make it independent of database systems and operating systems. An ...
(ODBC) is a native interface that is accessed through a
programming language A programming language is a system of notation for writing computer programs. Programming languages are described in terms of their Syntax (programming languages), syntax (form) and semantics (computer science), semantics (meaning), usually def ...
(usually C) that can make calls into a native library. In MDAC this interface is defined as a DLL. A separate module or driver is needed for each database that must be accessed. The functions in the ODBC API are implemented by these DBMS-specific drivers. The driver that Microsoft provides in MDAC is called the SQL Server ODBC Driver (SQLODBC), and (as the name implies) is designed for Microsoft's SQL Server. It supports SQL Server v6.5 and upwards. ODBC allows programs to use
SQL Structured Query Language (SQL) (pronounced ''S-Q-L''; or alternatively as "sequel") is a domain-specific language used to manage data, especially in a relational database management system (RDBMS). It is particularly useful in handling s ...
requests that will access databases without having to know the proprietary interfaces to the databases. It handles the SQL request and converts it into a request that the individual database system understands. According to Microsoft, "After SQL Server 2012, the ODBC driver will be updated for the most recent server features, including Microsoft Windows Azure SQL Database, and released as the Microsoft ODBC Driver for SQL Server."Prash Shirolkar, Alyssa Henry, Stephen Pepitone, Acey J. Bunch and David Schwartz (September 2011)
"Data Access Technologies Road Map"
Microsoft Corporation Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
. Archived 8 November 2017; accessed March 1, 2018.


ADO

ActiveX Data Objects In computing, Microsoft's ActiveX Data Objects (ADO) comprises a set of Component Object Model (COM) objects for accessing data sources. A part of MDAC (Microsoft Data Access Components), it provides a middleware layer between programming la ...
(ADO) is a high-level programming interface to OLE DB. It uses a hierarchical
object Object may refer to: General meanings * Object (philosophy), a thing, being, or concept ** Object (abstract), an object which does not exist at any particular time or place ** Physical object, an identifiable collection of matter * Goal, an a ...
model to allow applications to programmatically create, retrieve, update and delete data from sources supported by OLE DB. ADO consists of a series of hierarchical COM-based objects and collections, an object that acts as a container of many other objects. A programmer can directly access ADO objects to manipulate data, or can send an
SQL Structured Query Language (SQL) (pronounced ''S-Q-L''; or alternatively as "sequel") is a domain-specific language used to manage data, especially in a relational database management system (RDBMS). It is particularly useful in handling s ...
query to the database via several ADO mechanisms. ADO is made up of nine objects and four
collections Collection or Collections may refer to: Computing * Collection (abstract data type), the abstract concept of collections in computer science * Collection (linking), the act of linkage editing in computing * Garbage collection (computing), autom ...
. The collections are: # Fields: This collection contains a set of Field objects. The collection can be used in either a Recordset object or in a Record object. In a Recordset object, each of the Field objects that make up the Fields collection corresponds to a column in that Recordset object. In a Record object, a Field can be an absolute or relative URL that points into a tree-structured namespace (used for
semi-structured data Semi-structured data is a form of structured data that does not obey the tabular structure of data models associated with relational databases or other forms of data tables, but nonetheless contains tags or other markers to separate semantic elem ...
providers like the Microsoft OLE DB Provider for Internet Publishing) or as a reference to the default Stream object associated with that Record object.MSDN
"Fields Collection"
Microsoft. Archived September 7, 2012; accessed September 19, 2005.
# Properties: An object can have more than one Property object, which are contained in the object's Properties collection.MSDN
"Properties Collection"
Microsoft. Archived June 6, 2011; accessed September 19, 2005.
# Parameters: A Command object can have several Parameter commands to change its predefined behaviour, and each of the Parameter objects are contained in the Command object's Parameters collectionMSDN
"Parameters Collection"
Microsoft. Archived June 6, 2011; accessed September 19, 2005.
# Errors: All provider created errors are passed to a collection of Error objects, while the Errors collection itself is contained in a Connection object. When an ADO operation creates an error, the collection is cleared and a new group of Error objects are created in the collection.MSDN
"Errors Collection"
Microsoft. Archived June 6, 2011; accessed September 19, 2005.
The objects are: # Connection: The connection object is ADO's connection to a data store via OLE DB. The connection object stores information about the session and provides methods of connecting to the data store. As some data stores have different methods of establishing a connection, some methods may not be supported in the connection object for particular OLE DB providers. A connection object connects to the data store using its 'Open' method with a connection string which specifies the connection as a list of key value pairs (for example: "Provider='SQLOLEDB';Data Source='TheSqlServer'; Initial Catalog='Northwind';Integrated Security='SSPI';").MSDN
"ADO 2.8: Using a connection object"
Microsoft. Archived September 7, 2009; accessed September 10, 2005.
The start of which must identify the type of data store connection that the connection object requires. This must be either: #* an OLE DB provider (for example SQLOLEDB), using the syntax "provider=" #* a file name, using the syntax "file name=" #* a remote provider and server (see RDS), using the syntax "Remote provider=" and "Remote server=" #* an absolute
URL A uniform resource locator (URL), colloquially known as an address on the Web, is a reference to a resource that specifies its location on a computer network and a mechanism for retrieving it. A URL is a specific type of Uniform Resource Identi ...
, using the syntax "URL="MSDN
"ADO Connection String"
Microsoft. Accessed September 10, 2005.
# Command: After the connection object establishes a session to the data source, instructions are sent to the data provider via the command object. The command object can send SQL queries directly to the provider through the use of the ''CommandText'' property, send a parameterised query or
stored procedure A stored procedure (also termed prc, proc, storp, sproc, StoPro, StoredProc, StoreProc, sp, or SP) is a subroutine available to applications that access a relational database management system (RDBMS). Such procedures are stored in the database d ...
through the use of a ''Parameter'' object or ''Parameters'' collection or run a query and return the results to a dataset object via the ''Execute'' method. There are several other methods that can be used in the Command object relating to other objects, such as the Stream, RecordSet or Connection objects.MSDN
"Command Object Overview"
Microsoft. Archived June 6, 2011; accessed September 10, 2005
# Recordset: A recordset is a group of records, and can either come from a base table or as the result of a query to the table. The RecordSet object contains a ''Fields'' collection and a ''Properties'' collection.MSDN
"Examining Data"
Microsoft. Archived June 6, 2011; accessed September 10, 2005.
The Fields collection is a set of Field objects, which are the corresponding
columns A column or pillar in architecture and structural engineering is a structural element that transmits, through compression, the weight of the structure above to other structural elements below. In other words, a column is a compression member ...
in the table. The Properties collection is a set of Property objects, which defines a particular functionality of an OLE DB provider. The RecordSet has numerous methods and properties for examining the data that exists within it.MSDN
"ADO 2.8 API Reference: Recordset Object Properties, Methods, and Events"
Microsoft. Archived February 4, 2008.
Records can be updated in the recordset by changing the values in the record and then calling on the Update or UpdateBatch method. Adding new records is performed through the AddNew function and then by calling on the Update or UpdateBatch method.MSDN
"Editing data"
Microsoft. Archived June 6, 2011; accessed September 10, 2005.
Records are also deleted in the recordset with the Delete method and then by calling on the Update method. However, if for some reason the deletion cannot occur, such as because of violations in
referential integrity Referential integrity is a property of data stating that all its references are valid. In the context of relational databases, it requires that if a value of one attribute (column) of a relation (table) references a value of another attribute (e ...
, then the recordset will remain in edit mode after the call to the Update method. The programmer must explicitly call on the CancelUpdate function to cancel the update. Additionally, ADO can roll back transactions (if this is supported) and cancel batch updates.MSDN
"Deleting records using the Delete method"
Microsoft. Archived June 6, 2011; accessed September 10, 2005.
Recordsets can also be updated in one of three ways: via an immediate update, via a batch update,MSDN
"Updating and Persisting Data"
Microsoft. Archived June 6, 2011; accessed September 12, 2005.
or through the use of transactions: ## Immediate: The recordset is locked using the adLockOptimistic or adLockPessimistic lock. The data are updated at the data source after the record is changed and the Update method is called. ## Batch: The recordset is locked using adLockBatchOptimistic and each time Update is called the data are updated in a temporary buffer. Finally, when UpdateBatch is called the data are completely updated back at the data source. This has the advantage of it all being done in memory, and if a problem occurs then UpdateCancel is called and the updates are not sent to the data source ## Transaction: If the OLE DB provider allows it, transactions can be used. To start the transaction, the programmer invokes the BeginTrans method and does the required updates. When they are all done, the programmer invokes the CommitTrans method. RollbackTrans can be invoked to cancel any changes made inside the transaction and roll back the database to the state before the transaction beganMSDN
"Transaction Processing"
Microsoft. Archived June 6, 2011; accessed September 12, 2005.
# Record: This object represents one record in the database, and contains a fields collection. A RecordSet consists of a collection of Record objects.MSDN
"Record Object"
Microsoft. Archived June 6, 2011; accessed September 12, 2005.
# Stream: A stream, mainly used in a RecordSet object, is a means of reading and writing a stream of bytes.MSDN
"Records and Streams"
Microsoft. Archived June 6, 2011; accessed September 12, 2005.
It is mostly used to save a recordset in an XML format,MSDN
"Streams and Persistence"
Microsoft. Archived June 6, 2011; accessed September 12, 2005.
to send commands to an OLE DB provider as an alternative to the CommandText object and to contain the contents of a binary or text file. # Parameter: A parameter is a means of altering the behaviour of a common piece of functionality, for instance a stored procedure might have different parameters passed to it depending on what needs to be done; these are called ''parameterised commands''.MSDN
"Parameter Object"
Microsoft. Archived June 6, 2011; accessed September 12, 2005.
# Field: Each Record object contains many fields, and a RecordSet object has a corresponding Field object also. The RecordSet object's Field object corresponds to a
column A column or pillar in architecture and structural engineering is a structural element that transmits, through compression, the weight of the structure above to other structural elements below. In other words, a column is a compression member ...
in the database table that it references.MSDN
"Field Object"
Microsoft. Archived June 6, 2011; accessed September 12, 2005.
# Property: This object is specific to the OLE DB provider and defines an ability that the provider has implemented. A property object can be either a ''built-in'' property – it is a well defined property implemented by ADO already and thus cannot be altered – or a ''dynamic'' property – defined by the underlying data provider and can be changedMSDN
"Property Object"
Microsoft. Archived June 6, 2011; accessed September 13, 2005.
# Error: When an OLE DB provider
error An error (from the Latin , meaning 'to wander'Oxford English Dictionary, s.v. “error (n.), Etymology,” September 2023, .) is an inaccurate or incorrect action, thought, or judgement. In statistics, "error" refers to the difference between t ...
occurs during the use of ADO, an Error object will be created in the Errors collection.MSDN
"Error Handling"
Microsoft. Archived June 6, 2011; accessed September 18, 2005.
Other errors do not go into an Error object, however. For instance, any errors that occur when manipulating data in a RecordSet or Field object are stored in a Status property.MSDN
"Field-Related Error Information"
Microsoft. Archived June 6, 2011; accessed September 18, 2005.


ADO.NET

ADO.NET ADO.NET is a data access technology from the Microsoft .NET Framework that provides communication between relational and non-relational systems through a common set of components. ADO.NET is a set of computer software components that programmers ...
is the latest version of ADO (after ADO 2.8, now often referred to as ADO Classic) and is part of the MDAC 2.8 stack alongside classic ADO. It is built around
Microsoft .NET The Microsoft .NET strategy is a marketing plan that Microsoft followed in the early 2000s. Steve Ballmer described it as the company's "most ambitious undertaking since Internet Strategy Day in 1995". In support of this strategy, between 2000 an ...
. Though sometimes seen as an evolutionary step up from ADO, some fundamental structural changes were made by Microsoft. ADO.NET runs through a .NET Managed Provider, a modified version of an OLE DB provider specifically designed for .NET. The object structure is no longer built around a Recordset object. Instead a Dataset object is used to contain data gathered from multiple sources. This is transparent to the programmer. Unlike the old ADO Recordset, the Dataset's design promotes the use of disconnected data. Conceptually, a Dataset object can be seen as a small in-memory relational database in its own right that allows for manipulation of data in any direction. In order to propagate changes back into the database, a DataAdapter object is used that transfers data from between the data source and the DataSet object. Cursors were also deprecated in ADO.NET, being replaced with a
DataReader In ADO.NET, a DataReader is a broad category of objects used to sequentially read data from a data source. DataReaders provide a very efficient way to access data, and can be thought of as a Firehose cursor from Active Server Pages, ASP Classic, ...
object, which is used to efficiently process a large list of results one record at a time without storing them.Doug Rothaus & Mike Pizzo (December 2001)
"ADO.NET for the ADO Programmer"
MSDN, Microsoft. Archived March 2, 2011; accessed September 22, 2005.


Deprecated and obsolete components

MDAC is a continually evolving component framework. As such, there have been several components that were previously part of it but have since been deprecated or removed entirely from the framework.


Jet Database Engine and JRO

Jet stands for ''Joint Engine Technology'' and was a
database engine A database engine (or storage engine) is the underlying software component that a database management system (DBMS) uses to create, read, update and delete (CRUD) data from a database. Most database management systems include their own application ...
used for
Microsoft Access Microsoft Access is a database management system (DBMS) from Microsoft that combines the relational database, relational Access Database Engine (ACE) with a graphical user interface and software-development tools. It is a member of the Microsof ...
,
Microsoft Exchange Server Microsoft Exchange Server is a mail server and calendaring server developed by Microsoft. It runs exclusively on Windows Server operating systems. The first version was called Exchange Server 4.0, to position it as the successor to the relat ...
and
Visual Basic Visual Basic is a name for a family of programming languages from Microsoft. It may refer to: * Visual Basic (.NET), the current version of Visual Basic launched in 2002 which runs on .NET * Visual Basic (classic), the original Visual Basic suppo ...
. Jet was part of a
Relational Database Management System A relational database (RDB) is a database based on the relational model of data, as proposed by E. F. Codd in 1970. A Relational Database Management System (RDBMS) is a type of database management system that stores data in a structured for ...
(RDBMS) and offered a single
interface Interface or interfacing may refer to: Academic journals * ''Interface'' (journal), by the Electrochemical Society * '' Interface, Journal of Applied Linguistics'', now merged with ''ITL International Journal of Applied Linguistics'' * '' Inter ...
that other software could use to access Microsoft databases. Jet also provided support for security,
referential integrity Referential integrity is a property of data stating that all its references are valid. In the context of relational databases, it requires that if a value of one attribute (column) of a relation (table) references a value of another attribute (e ...
,
transaction processing In computer science, transaction processing is information processing that is divided into individual, indivisible operations called ''transactions''. Each transaction must succeed or fail as a complete unit; it can never be only partially c ...
,
index Index (: indexes or indices) may refer to: Arts, entertainment, and media Fictional entities * Index (''A Certain Magical Index''), a character in the light novel series ''A Certain Magical Index'' * The Index, an item on the Halo Array in the ...
ing, record and page locking, and data replication. In later versions of Jet, the engine was extended to run
SQL Structured Query Language (SQL) (pronounced ''S-Q-L''; or alternatively as "sequel") is a domain-specific language used to manage data, especially in a relational database management system (RDBMS). It is particularly useful in handling s ...
queries, store character data in
Unicode Unicode or ''The Unicode Standard'' or TUS is a character encoding standard maintained by the Unicode Consortium designed to support the use of text in all of the world's writing systems that can be digitized. Version 16.0 defines 154,998 Char ...
format, create views, and allowed bi-directional replication with the Microsoft SQL Server. It was superseded by
MSDE Microsoft SQL Server Data Engine (MSDE, also Microsoft Data Engine or Microsoft Desktop Engine) is a relational database management system developed by Microsoft. It is a scaled-down version of Microsoft SQL Server 7.0 or 2000 which is free for no ...
which was superseded
SQL Server Express Microsoft SQL Server Express is a version of Microsoft's SQL Server relational database management system that is free to download, distribute and use. It comprises a database specifically targeted for embedded and smaller-scale applications. Th ...
. There were three modules to Jet. One was the Native Jet ISAM Driver, a Jet
dynamic link library A dynamic-link library (DLL) is a shared library in the Microsoft Windows or OS/2 operating system. A DLL can contain executable code (functions), data, and resources. A DLL file often has file extension .dll even though this is not require ...
(DLL) that could directly manipulate Microsoft Access database files (MDB), which was a modified form of an
Indexed Sequential Access Method Indexed Sequential Access Method (ISAM) is a method for creating, maintaining, and manipulating computer files of data so that records can be retrieved sequentially or randomly by one or more keys. Indexes of key fields are maintained to achieve ...
(ISAM) database. Another one of the modules were the ISAM Drivers, DLLs that allowed access to ISAM databases, among them being
Xbase xBase is the generic term for all programming languages that derive from the original dBASE (Ashton-Tate) programming language and database formats. These are sometimes informally known as dBASE "clones". While there was a non-commercial predec ...
,
Paradox A paradox is a logically self-contradictory statement or a statement that runs contrary to one's expectation. It is a statement that, despite apparently valid reasoning from true or apparently true premises, leads to a seemingly self-contradictor ...
,
Btrieve Btrieve is a transactional database ( navigational database) software product. It is based on Indexed Sequential Access Method (ISAM), which is a way of storing data for fast retrieval. There have been several versions of the product for DOS, Linux ...
and
FoxPro FoxPro is a text-based (computing), text-based Procedural programming, procedurally oriented programming language and database management system (DBMS), and it is also an object-oriented programming language, originally published by Fox Softwar ...
files. The final module was the Data Access Objects (DAO) DLL,
DAO The Tao or Dao is the natural way of the universe, primarily as conceived in East Asian philosophy and religion. This seeing of life cannot be grasped as a concept. Rather, it is seen through actual living experience of one's everyday being. T ...
allowed programmers access to the Jet engine. It was basically an
object-oriented Object-oriented programming (OOP) is a programming paradigm based on the concept of '' objects''. Objects can contain data (called fields, attributes or properties) and have actions they can perform (called procedures or methods and impleme ...
data language used by Access Basic and
Visual Basic Visual Basic is a name for a family of programming languages from Microsoft. It may refer to: * Visual Basic (.NET), the current version of Visual Basic launched in 2002 which runs on .NET * Visual Basic (classic), the original Visual Basic suppo ...
application developers to access Jet. Similarly, the ''Microsoft Jet OLE DB Provider and Replication Objects'' (JRO) which allowed replication between Jet data sources was removed from MDAC 2.6.NET Framework Developer Center
"Windows DAC/MDAC Deprecated Components"
MSDN, Microsoft. Archived September 14, 2008; accessed August 5, 2005.


MSDASQL and Oracle ODBC

The Microsoft OLE DB Provider for ODBC, or MSDASQL, was an OLE DB provider for allowing
ActiveX Data Objects In computing, Microsoft's ActiveX Data Objects (ADO) comprises a set of Component Object Model (COM) objects for accessing data sources. A part of MDAC (Microsoft Data Access Components), it provides a middleware layer between programming la ...
access to databases via any ODBC driver. Microsoft supplied several OLE-DB providers (for the Indexing Service,
Active Directory Active Directory (AD) is a directory service developed by Microsoft for Windows domain networks. Windows Server operating systems include it as a set of processes and services. Originally, only centralized domain management used Active Direct ...
, Jet, SQL Server, Oracle (MSDAORA) and Internet Publishing), however unless otherwise directed, ADO defaulted to using MSDASQL as the default provider. After MDAC 2.5 both the Oracle ODBC driver and MSDASQL supported Oracle 7 and partially supported Oracle 8i. Features that were not supported were: * CLOB, BLOB, BFILE, NCHAR, NCLOB, and NVARCHAR2 Oracle datatypes * Unicode support for Oracle 7.x and 8i * multiple client instances of Oracle * nested
outer join A join clause in the Structured Query Language (SQL) combines column (database), columns from one or more table (database), tables into a new table. The operation corresponds to a Join (relational algebra), join operation in relational algebra. In ...
s Microsoft initially deprecated the MSDASQL component for their 64-bit operating systemsMSDN
"Microsoft OLE DB Provider for ODBC"
Microsoft. Archived June 6, 2011; accessed July 30, 2005.
and the Microsoft Oracle ODBC driver was later superseded by a .NET Managed Oracle Provider, which supported Oracle 9i.Microsoft (August 25, 2004)
"INFO: Limitations of Microsoft Oracle ODBC Driver and OLEDB Provider
Archived January 29, 2005; accessed August 4, 2005.
However,
Windows Server 2008 Windows Server 2008, codenamed "Longhorn Server" (alternatives: "Windows Vista Server" or "Windows Server Vista"), is the seventh major version of the Windows NT operating system produced by Microsoft to be released under the Windows Server b ...
and
Windows Vista SP1 Windows Vista is a major release of the Windows NT operating system developed by Microsoft. It was the direct successor to Windows XP, released five years earlier, which was then the longest time span between successive releases of Microsoft W ...
ship with a 64-bit version of MSDASQL.


Remote Data Services (RDS)

Remote Data Services (RDS) allowed the retrieval of a set of data from the server, which the client then altered in some way and then sent back to the server for further processing.MSDN
"Remote Data Service (RDS)"
Microsoft. Archived May 14, 2011; accessed August 11, 2005.
With the popular adoption of
Transact-SQL Transact-SQL (T-SQL) is Microsoft's and Sybase's proprietary extension to the SQL (Structured Query Language) used to interact with relational databases. T-SQL expands on the SQL standard to include procedural programming, local variables, vari ...
, which extends SQL with such programming constructs as loops and conditional statements, this became less necessary and it was eventually deprecated in MDAC 2.7. Microsoft produced
SOAP Soap is a salt (chemistry), salt of a fatty acid (sometimes other carboxylic acids) used for cleaning and lubricating products as well as other applications. In a domestic setting, soaps, specifically "toilet soaps", are surfactants usually u ...
Toolkit 2.0, which allows clients to do this via an open
XML Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing data. It defines a set of rules for encoding electronic document, documents in a format that is both human-readable and Machine-r ...
-based standard.


SQLXML

SQLXML was designed for SQL Server 2000, but was deprecated with MDAC 2.6. It allowed Microsoft's relational database to be viewed by
XPath XPath (XML Path Language) is an expression language designed to support the query or transformation of XML documents. It was defined by the World Wide Web Consortium (W3C) in 1999, and can be used to compute values (e.g., strings, numbers, or ...
and allowed data to viewable as an
XML Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing data. It defines a set of rules for encoding electronic document, documents in a format that is both human-readable and Machine-r ...
file. It has not actually been deprecated but has been removed from later versions of MDAC, though Microsoft does provide it as a downloadable component and will support it on their 64-bit operating systems.


Obsolete components

Several components have been completely removed from MDAC by Microsoft and are no longer supported. They are: * ESQL/C:
Embedded SQL Embedded SQL is a method of combining the computing power of a programming language and the database manipulation capabilities of SQL. Embedded SQL statements are SQL statements written inline with the program source code, of the host language. T ...
(also known as E-SQL or ESQL/C) is a way of using SQL when programming in Visual C. Microsoft dropped support for this after SQL Server 6.5 was released, though they did license some of the ESQL/C run-time environment to a company called
Micro Focus Micro Focus International plc was a British multinational software and information technology business based in Newbury, Berkshire, England. The firm provided software and consultancy. The company was listed on the London Stock Exchange and t ...
, who develops
COBOL COBOL (; an acronym for "common business-oriented language") is a compiled English-like computer programming language designed for business use. It is an imperative, procedural, and, since 2002, object-oriented language. COBOL is primarily ...
compilers and toolsKalen Delaney (2000)
"Inside Microsoft SQL Server 2000"
3rd edition. Redmond: Microsoft Press, pp. 65. .
* DAO: DAO, or Data Access Objects were an
object oriented Object-oriented programming (OOP) is a programming paradigm based on the concept of '' objects''. Objects can contain data (called fields, attributes or properties) and have actions they can perform (called procedures or methods and impleme ...
interface created by Microsoft which allowed early versions of
Microsoft Access Microsoft Access is a database management system (DBMS) from Microsoft that combines the relational database, relational Access Database Engine (ACE) with a graphical user interface and software-development tools. It is a member of the Microsof ...
and
Visual Basic Visual Basic is a name for a family of programming languages from Microsoft. It may refer to: * Visual Basic (.NET), the current version of Visual Basic launched in 2002 which runs on .NET * Visual Basic (classic), the original Visual Basic suppo ...
to access the
Jet Database Engine The Access Database Engine (also Office Access Connectivity Engine or ACE and formerly Microsoft Jet Database Engine, ''Microsoft JET Engine'' or simply ''Jet'') is a database engine on which several Microsoft products have been built. The firs ...
. Later (in version 3.5) it was able to bypass the Jet engine altogether and directly access
ODBC In computing, Open Database Connectivity (ODBC) is a standard application programming interface (API) for accessing database management systems (DBMS). The designers of ODBC aimed to make it independent of database systems and operating systems. An ...
data sources.Christine Solomon (1997)
"Microsoft Office 97 Developer's Handbook"
Redmond: Microsoft Press, pp. 195–200.
* RDO: Remote Data Objects, or RDO, was a
Microsoft Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
technology that allowed for the creation of interfaces that directly called on ODBC. RDO version 2.0 was the final version developed by Microsoft. * DB-Library: a C-based API that allowed an application to interact with SQL Server. It will not be supported on any product after SQL Server 2000, and no features were added after SQL Server 6.5.


History

Microsoft has released several versions of MDAC over time. The distribution method has varied and the feature-set is different for each version.


MDAC 1.0

MDAC 1.0 was first released in August 1996.Christian Koller
"ADO und MDAC Versionen"
AspHeute.com. Archived August 15, 2006; accessed July 1, 2005 .
According to Microsoft, "MDAC 1.0 existed more as concept than a coordinated, stand-alone setup program." The MDAC 1.0 stack consisted of ODBC 3.0, OLE DB 1.1, ADO 1.0, and the Advanced Data Connector (ADC) 1.0 – which according to Microsoft was the precursor to the Remote Data Service of MDAC 1.5. It also included ODBC drivers for Access/Jet, SQL Server and
Oracle An oracle is a person or thing considered to provide insight, wise counsel or prophetic predictions, most notably including precognition of the future, inspired by deities. If done through occultic means, it is a form of divination. Descript ...
databases. MDAC 1.0 was released via several mechanisms: the Advanced Data Connector shipped with Internet Information Server (IIS) 3.0 and as a downloadable cab file; OLE DB 1.1 and ADO 1.0 shipped with the OLE DB 1.1 SDK, which came with
Visual Studio Visual Studio is an integrated development environment (IDE) developed by Microsoft. It is used to develop computer programs including web site, websites, web apps, web services and mobile apps. Visual Studio uses Microsoft software development ...
97 and was also downloadable.Microsoft (January 23, 2007)
"INFO: What are MDAC, DA SDK, ODBC, OLE DB, ADO, RDS, and ADO/MD?"
Archived September 4, 2009; accessed July 1, 2005.
MDAC 1.0 came with Active Server Pages, that itself came in IIS 3.0, and also came with Visual InterDev 1.0.


MDAC 1.5

MDAC 1.5 was released between September 1997 and March 1998, and involved a more centralised distribution mechanism than MDAC 1.0. It was released with Microsoft Internet Explorer 4.0, the Internet Client SDK 4.0 and through a CD-ROM given out at the 1997
Professional Developers Conference Microsoft's Professional Developers Conference (PDC) was a series of conferences for software developers; the conference was held infrequently to coincide with beta releases of the Microsoft Windows, Windows operating system, and showcased topic ...
(PDC). There were five versions of MDAC 1.5: * MDAC 1.5 (initial release): included with Internet Explorer 4.0 and the Internet Client SDK. * MDAC 1.5a: downloadable from Microsoft's website * MDAC 1.5b: came with
Windows NT 4.0 Windows NT 4.0 is a major release of the Windows NT operating system developed by Microsoft, targeting the data server and personal workstation markets. It is the direct successor to Windows NT 3.51, and was released to manufacturing on July 3 ...
Option Pack & Office 97 * MDAC 1.5c: fixed issues with ADO threading and ODBC Connection Pooling and was distributed via the Microsoft website. It only came with the ADO/MDAC runtime components. * MDAC 1.5d: came included with
Windows 98 Windows 98 is a consumer-oriented operating system developed by Microsoft as part of its Windows 9x family of Microsoft Windows operating systems. It was the second operating system in the 9x line, as the successor to Windows 95. It was Software ...
and
Internet Explorer Internet Explorer (formerly Microsoft Internet Explorer and Windows Internet Explorer, commonly abbreviated as IE or MSIE) is a deprecation, retired series of graphical user interface, graphical web browsers developed by Microsoft that were u ...
4.01 service pack 1. The different versions of MDAC 1.5 consisted of: * ODBC 3.5 * OLE DB 1.5 * ADO 1.5 * Remote Data Service 1.5, which superseded the Advanced Data Connector. This version of MDAC had a security flaw that made it vulnerable to an escalated privileges attack. The vulnerability caused systems that had both IIS and MDAC installed to give an unauthorized web user the ability to execute shell commands on the IIS system as a privileged user. This allowed the attacker to use MDAC to tunnel SQL and other ODBC data requests through the public connection to a private back-end network when on a
multi-homed Multihoming is the practice of connecting a host or a computer network to more than one network. This can be done in order to increase reliability or performance. A typical host or end-user network is connected to just one network. Connecting to ...
Internet-connected IIS system. It also allowed the user to gain unauthorized access to secured, non-published files on the IIS systemTechNet
"Microsoft Security Program: Frequently Asked Questions: Microsoft Security Bulletin (MS99-025)"
Microsoft. Archived May 9, 2005; accessed July 6, 2005.
MDAC 1.5 was the last data access component release supported under Windows NT 3.51 SP5.


MDAC 2.0

MDAC 2.0 was distributed with the Data Access 2.0 SDK and included the contents of MDAC 1.5, the ODBC 3.5 SDK and the OLE DB 1.5 SDK, and the OLE DB for
OLAP In computing, online analytical processing (OLAP) (), is an approach to quickly answer multi-dimensional analytical (MDA) queries. The term ''OLAP'' was created as a slight modification of the traditional database term online transaction processi ...
Specification. It also had included many updates to the core product, including a security feature added to the RDS which prevented it from being used maliciously an IIS server.Microsoft (September 30, 2003
"PRB: RDS Handler Error Messages Due to Security Settings"
Archived February 19, 2005; accessed July 6, 2005.
This version came included in Windows NT 4.0 SP4, and also with Visual Studio 6.0, which came with the full Data Access SDK.


MDAC 2.1

MDAC 2.1 was distributed with SQL Server 7.0 and SQL Server 6.5 SP5. MDAC 2.1 SP1 was distributed with Internet Explorer 5 and MDAC 2.1 SP1a (GA) was distributed with
Microsoft Office Microsoft Office, MS Office, or simply Office, is an office suite and family of client software, server software, and services developed by Microsoft. The first version of the Office suite, announced by Bill Gates on August 1, 1988, at CO ...
2000, BackOffice 4.5 and Visual Studio 98 SP3. However, none of these versions of MDAC were released to the general public via the
World Wide Web The World Wide Web (WWW or simply the Web) is an information system that enables Content (media), content sharing over the Internet through user-friendly ways meant to appeal to users beyond Information technology, IT specialists and hobbyis ...
. MDAC 2.1 SP2 was distributed from Microsoft's website. The components that were included with 2.1 were: * ADO 2.1 * RDS 2.1 * OLE DB 2.1 * the OLE DB Provider for ODBC, SQL Server and Oracle * JRO 2.1 * a Jet driver * RDO. This version had security vulnerabilities whereby an unchecked buffer could allow an elevated privileges attack. This was found some time later and it affected MDAC 2.1, 2.5 and 2.6 and was addressed in a later patchMicrosoft
"Data Access Components: Security Hotfix for Q329414"
Archived November 23, 2002.


MDAC 2.5

MDAC 2.5 was released on February 17, 2000, and distributed with
Windows 2000 Windows 2000 is a major release of the Windows NT operating system developed by Microsoft, targeting the server and business markets. It is the direct successor to Windows NT 4.0, and was Software release life cycle#Release to manufacturing (RT ...
, and the MDAC service packs were released in parallel with the Windows 2000 service packs. They were also distributed through Microsoft's website. Three service packs were released. The components included with 2.5 were: * ADO 2.5 * ADO MD 2.5 * ADOX 2.5 * RDS 2.5 * OLE DB 2.5 * many OLE DB Providers * JRO 2.5 * ODBC 3.51 * many ODBC drivers * many Jet drivers. Several issues were found in this version of MDAC. When using OLE DB Session Pooling, Microsoft COM+ would try to continuously load and unload OLE DB, and a conflict could arise that caused the OLE DB Session Pooling to run at 100% CPU usage. This was later fixed.Microsoft (October 11, 2005)
"OLE DB Session Pooling Causes 100 Percent CPU Usage (MDAC 2.5)"
Archived September 26, 2006; accessed July 6, 2005.
Microsoft published a full list of bugs fixed in MDAC 2.5 Service Pack 2 and MDAC 2.5 Service Pack 3. A security vulnerability also existed (later fixed) whereby an unchecked buffer was found in the SQL Server Driver. This flaw was introduced in MDAC 2.5 SP2.


MDAC 2.6

MDAC 2.6 was released in September 2000 and was distributed through the web and with Microsoft SQL Server 2000Microsoft (July 19, 2004
"Release manifest for MDAC 2.6 (2.60.6526.3)"
Archived October 19, 2005; accessed July 6, 2005.
MDAC 2.6 RTM, SP1 (released June 20, 2001), and SP2 (released June 11, 2002) were distributed in parallel with the Microsoft SQL Server 2000 service packs, and could also be downloaded from the Microsoft website. Beginning with this version of MDAC, Microsoft Jet, Microsoft Jet OLE DB Provider, and the ODBC Desktop Database Drivers were not included. Instead, these could be installed manually.Microsoft (October 13, 2004)
"MDAC version 2.6 and later do not contain Jet or Desktop ODBC drivers"
Archived October 19, 2004; accessed July 6, 2005.
Microsoft also released an alert warning that MDAC 2.6 should not be installed on an SQL Server 7.0 Cluster, because "if you install MDAC 2.6 or later on any node in the cluster, directly or through the installation of another program, it may cause a catastrophic failure of the SQL Server Agent or other SQL Server services."Microsoft (September 22, 2004)
"MDAC 2.6 or later should not be installed on SQL Server 7.0 clusters"
Archived October 20, 2004; accessed July 6, 2005.
This issue affected
Veritas Software Veritas Technologies LLC is an American international data management company headquartered in Mountain View, California, Santa Clara, California. The company has its origins in Tolerant Systems, founded in 1983 and later renamed Veritas Softwa ...
's Backup Exec 9.0 for Windows Servers, because it installs Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) as its database. Revision 4367 installed MDAC version 2.6 SP2 while revision 4454 installed MDAC version 2.7 SP1, which did not have the problemVeritas (June 25, 2003)
"VERITAS Backup Exec (tm) 9.0 for Windows Servers should not be installed on a Microsoft SQL Server 7.0 Cluster"
Archived February 11, 2005.


MDAC 2.7

MDAC 2.7 was released in October 2001 through Microsoft's website. A refresh release was issued in April 2002 through the release of Windows XP and through Microsoft's website. Version 2.7 was available in U.S. English, Chinese (Traditional and Simplified), German, Japanese, Korean,
Brazilian Portuguese Brazilian Portuguese (; ; also known as pt-BR) is the set of Variety (linguistics), varieties of Portuguese language native to Brazil. It is spoken by almost all of the 203 million inhabitants of Brazil and widely across the Brazilian diaspora ...
,
Czech Czech may refer to: * Anything from or related to the Czech Republic, a country in Europe ** Czech language ** Czechs, the people of the area ** Czech culture ** Czech cuisine * One of three mythical brothers, Lech, Czech, and Rus *Czech (surnam ...
, Danish, Greek, Slovak, Slovenian, Spanish, Finnish, French, Hungarian, Italian,
Dutch Dutch or Nederlands commonly refers to: * Something of, from, or related to the Netherlands ** Dutch people as an ethnic group () ** Dutch nationality law, history and regulations of Dutch citizenship () ** Dutch language () * In specific terms, i ...
, Norwegian, Polish, Portuguese, Russian, Swedish, and Turkish.
Hebrew Hebrew (; ''ʿÎbrit'') is a Northwest Semitic languages, Northwest Semitic language within the Afroasiatic languages, Afroasiatic language family. A regional dialect of the Canaanite languages, it was natively spoken by the Israelites and ...
and
Arabic Arabic (, , or , ) is a Central Semitic languages, Central Semitic language of the Afroasiatic languages, Afroasiatic language family spoken primarily in the Arab world. The International Organization for Standardization (ISO) assigns lang ...
were only available through Windows XP. The main feature change was support for Microsoft's
64-bit In computer architecture, 64-bit integers, memory addresses, or other data units are those that are 64 bits wide. Also, 64-bit central processing units (CPU) and arithmetic logic units (ALU) are those that are based on processor registers, a ...
operating system, however support for
Banyan VINES Banyan VINES is a discontinued network operating system developed by Banyan Systems for computers running AT&T's UNIX System V. ''VINES'' is an acronym for ''Virtual Integrated NEtwork Service''. Like Novell NetWare, VINES's network services ...
was also dropped from this version of MDAC. There were several known issues:Microsoft (May 28, 2004)
"Release manifest for MDAC 2.7 Refresh (2.70.9001.0)"
Archived November 17, 2004; accessed April 10, 2019.
MDAC 2.7 continued causing connectivity problems on clustered servers running Microsoft SQL Server 6.5 or SQL Server 7.0, with no workaround provided by Microsoft. When creating or configuring ODBC data source names (DSNs) using the Microsoft SQL Server ODBC driver the network library protocol might unexpectedly switch to
TCP/IP The Internet protocol suite, commonly known as TCP/IP, is a framework for organizing the communication protocols used in the Internet and similar computer networks according to functional criteria. The foundational protocols in the suite are ...
, even if the DSN was configured to use named pipes.Microsoft (December 5, 2003)
"PRB: Configuring DSNs with SQL Server Net-Libraries"
Archived October 19, 2004.
This issue was found by ''
InfoWorld ''InfoWorld'' (''IW'') is an American information technology media business. Founded in 1978, it began as a monthly magazine. In 2007, it transitioned to a Web-only publication. Its parent company is International Data Group, and its sister pu ...
'' reporter Randall C. Kennedy, who identified that the change was actually made in MDAC 2.6 but was never documented. It was discovered when testing client/server database workloads on a Windows XP computer; ''InfoWorld'' claims that although overall server CPU utilization rose by only 8 percent using TCP/IP,
context switch In computing, a context switch is the process of storing the state of a process or thread, so that it can be restored and resume execution at a later point, and then restoring a different, previously saved, state. This allows multiple processes ...
es per second dropped by more than 150 percent (which is of course impossible because you would then have a negative context switch rate - the drop is either 33% or 60% depending on which planet the author was on at the time of writing) for a 10-user workload. They were unimpressed that a fundamental functional change to the default behaviour of Net-Lib occurred without more than a passing mention in an unrelated document.Randall C. Kennedy (November 21, 2001)
"It's not a bug, it's a feature"
InfoWorld ''InfoWorld'' (''IW'') is an American information technology media business. Founded in 1978, it began as a monthly magazine. In 2007, it transitioned to a Web-only publication. Its parent company is International Data Group, and its sister pu ...
. Archived March 10, 2007.
Windows XP users also sometimes experienced problems connecting to SQL Server because SQL Server attempts to use
certificate Certificate may refer to: * Birth certificate * Marriage certificate * Death certificate * Gift certificate * Certificate of authenticity, a document or seal certifying the authenticity of something * Certificate of deposit, or CD, a financial p ...
s it finds on the local computer, however if there is more than one certificate available it did not know which one to use.Microsoft (December 3, 2003)
"SQL Server 2000 installation or local connections fail with "SSL Security error:ConnectionOpen (SECDoClientHandshake())" Error Message"
Archived November 17, 2004.
When attempting to use
Microsoft Analysis Services Microsoft SQL Server Analysis Services (SSAS) is an online analytical processing (OLAP) and data mining tool in Microsoft SQL Server. SSAS is used as a tool by organizations to analyze and make sense of information possibly spread out across mul ...
2000 RTM, an error would sometimes appear when trying to browse cubes.Microsoft (April 24, 2003)
"FIX: Cannot Browse Cubes or Process Mining Model After You Install Analysis Services 2000 RTM"
Archived May 17, 2005.
Microsoft also discovered a problem in
Windows 95 Windows 95 is a consumer-oriented operating system developed by Microsoft and the first of its Windows 9x family of operating systems, released to manufacturing on July 14, 1995, and generally to retail on August 24, 1995. Windows 95 merged ...
,
Windows 98 Windows 98 is a consumer-oriented operating system developed by Microsoft as part of its Windows 9x family of Microsoft Windows operating systems. It was the second operating system in the 9x line, as the successor to Windows 95. It was Software ...
, and
Windows Me Windows Me (Millennium Edition) is an operating system developed by Microsoft as part of its Windows 9x family of Microsoft Windows operating systems. It was the successor to Windows 98, and was released to manufacturing on June 19, 2000, and t ...
's setup program which prevented the MDAC installation program from rolling back when it encountered an installation error.Microsoft (September 2, 2004)
"PRB: MDAC Rollback May Fail on Windows 95, Windows 98, and Windows Millennium Edition"
Archived October 19, 2004.
Several security issues were resolved by Microsoft for MDAC 2.7.
David Litchfield David Litchfield (born 1975) is a British security expert and The Director of Information Security Assurance for Apple. Anne Saita, writing for ''Information Security'' magazine, called him along with his brother Mark Litchfield, "World's Best Bug ...
of Next Generation Security Software Ltd reported a security vulnerability that results because one of the ODBC functions in MDAC that is used to connect to data sources contained an unchecked buffer.TechNet (July 31, 2002)
Microsoft Security Bulletin MS02-040 Unchecked Buffer in MDAC Function Could Enable System Compromise (Q326573)"
Microsoft. Archived April 11, 2004.
Another vulnerability that was fixed was one whereby an attacker could respond to an SQL Server discovery message broadcast by clients with a specially crafted packet that could cause a buffer overflow.TechNet (August 20, 2003)
"Microsoft Security Bulletin MS03-033 Unchecked Buffer in MDAC Function Could Enable System Compromise (823718)"
Microsoft. Archived May 6, 2004.
Another flaw was found whereby code could be executed remotely when the attacker responded to the broadcast with another specially crafted packet.TechNet (April 1, 2004)
"Microsoft Security Bulletin MS04-003 Buffer Overrun in MDAC Function Could Allow Code Execution (832483)"
Microsoft. Archived April 14, 2004.


MDAC 2.8

MDAC 2.8 was released in August 2003 and distributed with Microsoft
Windows Server 2003 Windows Server 2003, codenamed "Whistler Server", is the sixth major version of the Windows NT operating system produced by Microsoft and the first server version to be released under the Windows Server brand name. It is part of the Windows NT ...
, as well as on Microsoft'
Data Access Technologies
website. It did not introduce any new features to the product but fixed a number of bugs and security issues – a reg file (automates changes to the registry) was removed that made the server run in an "unsafe" mode whereby the RDS could be exploited to gain unauthorized access to the systemMicrosoft (April 25, 2003)
"INFO: Handunsf.reg File Has Been Removed in MDAC 2.8 Redist Setup for Security Reasons"
Archived October 19, 2004.
and a new restriction was imposed on the length of the Shape query string.Microsoft (September 3, 2004)
"FIX: "Argument passed to data shaping service was invalid" error after you apply MDAC 2.8"
Archived October 19, 2004.
There were also several ODBC Administrator changes.Microsoft (May 15, 2003)
"INFO: ODBC Administrator Changes in MDAC 2.8"
Archived October 21, 2004.
On May 23, 2005, Brad Rhodes (Lead Program Manager of Microsoft Data Access Technologies) announced that MDAC 2.8 SP1 was the last stand-alone redistributable of MDAC that Microsoft will ship. MDAC is now an official component of the Microsoft's operating system, though they will be providing ongoing bug and security fixes to previously released versions of the web-distributable version.Brad Rhodes (May 23, 2005)
"The end of the MDAC Redistributable"
MSDN, Microsoft. Accessed August 11, 2005.
Microsoft (January 24, 2005
"Release strategy for Microsoft Data Access Components"
Archived February 20, 2006; retrieved August 11, 2005.
However, Microsoft has created a new component called the SQL Native Client (SQLNCLI), which is a stand-alone data access API that has combined the OLE DB and ODBC libraries into one DLL. It was formed to be independent of MDAC, which is now reliant on the state the operating system is in – a developer now links to this library and avoids situations where an update of the operating system which updates MDAC breaks applications built to a different version of MDAC.Acey J. Bunch (April 26, 2005)
"Introducing SQL Native Client"
MSDN, Microsoft. Archived September 24, 2005.
Windows 7 Windows 7 is a major release of the Windows NT operating system developed by Microsoft. It was Software release life cycle#Release to manufacturing (RTM), released to manufacturing on July 22, 2009, and became generally available on October 22, ...
SP1 has broken
forward compatibility Forward compatibility or upward compatibility is a design characteristic that allows a system to accept input intended for a later version of itself. The concept can be applied to entire systems, electrical interfaces, telecommunication signal ...
of MDAC 2.8. Software compiled on Windows 7 SP1 that relies on MDAC ADO will not work on Windows versions prior to Windows 7 SP1 (including Windows 7 RTM, Vista, XP).EinmalIM (February 18, 2011)
"Breaking change in MDAC ADODB COM components in Windows 7 Service Pack 1"
MSDN, Microsoft. Archived February 26, 2011; accessed March 9, 2011.
Microsoft has provided solutions to work around this issue for some applications but VBA applications remain affected.Microsoft (March 16, 2011)
"An ADO application that is re-compiled on a Windows 7 Service Pack 1-based computer does not run on down-level operating systems"
Archived March 20, 2011; accessed March 17, 2011.
The fix for this issue has been release in February 2012.Microsoft (February 14, 2012)
"An ADO-based application that is compiled in Windows 7 SP1 or in Windows Server 2008 R2 SP1 does not run in earlier versions of Windows"
Archived March 8, 2012; accessed April 20, 2012.


Windows DAC 6.0

Windows Vista Windows Vista is a major release of the Windows NT operating system developed by Microsoft. It was the direct successor to Windows XP, released five years earlier, which was then the longest time span between successive releases of Microsoft W ...
will no longer use MDAC, but instead use Windows DAC, which consists of updated versions of ADO, OLE DB, and ODBC components. According to Microsoft, "Windows DAC includes some changes to work with Windows Vista, but is almost entirely functionally equivalent to MDAC 2.8."MSDN
"FAQ About Windows DAC/MDAC"
Archived June 5, 2011; accessed December 12, 2006.


Version checking

There are two ways of checking the version of MDAC that is installed on a computer. For Windows 2000, Windows XP and Windows Server 2003, one way to check is via Microsoft's Component Checker program, which compares the value of each installed MDAC DLL to the MDAC file manifest. The second way is to check the key HKEY_LOCAL_MACHINE\Software\Microsoft\DataAccess\FullInstallVer in the
Windows registry The Windows Registry is a hierarchical database that stores low-level settings for the Microsoft Windows operating system and for applications that opt to use the registry. The kernel, device drivers, services, Security Accounts Manager, a ...
. Microsoft notes that this information may be incorrect for versions of MDAC prior to 2.1 when compared with the versions of the MDAC files installed to the systemMicrosoft (January 18, 2005)
"How to check for MDAC version"
Archived December 24, 2005; accessed September 29, 2005.


References


Further reading

* MSDN
"ADO API Reference"
Microsoft. Archived September 27, 2011; accessed May 3, 2014. * MSDN
"ADO Programmer's Guide"
Microsoft. Archived September 30, 2011; accessed May 3, 2014.


External links


Microsoft MDAC Center

MDAC Downloads

MDAC History
{{Microsoft APIs Data Access Components