In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "what is the method of compiling database in Visual C++ language". In daily operation, I believe that many people have doubts about the method of compiling database in Visual C++ language. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "what is the method of compiling database in Visual C++ language?" Next, please follow the editor to study!
An odbc-based application does not rely on any dbms for database operations, does not directly deal with dbms, and all database operations are completed by the corresponding dbms odbc driver. In other words, whether it is a foxpro, access, or oracle database, it can be accessed using odbc api. Thus, the advantage of odbc is that it can handle all databases in a unified way.
A complete Visual C++ language consists of the following parts:
Odbc Manager (administrator). The program is located in the 32-bit odbc of the windows 95 Control Panel (control panel). Its main task is to manage the installed odbc drivers and manage data sources. Driver Manager (driver manager). The driver manager is included in odbc32.dll and is transparent to users. Its task is to manage odbc drivers and is the most important part of odbc. Odbc api .
Odbc driver. Are dll that provide an interface between odbc and the database. Data source. The data source contains information such as database location and database type, which is actually an abstraction of data connection. The relationship between the components is shown in the following figure:
In order to access a database, the application must first register a data source with the odbc manager. The manager establishes the relationship between the odbc and the specific database according to the database location, database type and odbc driver provided by the data source. In this way, as long as the application provides the data source name to the odbc,odbc, it can establish a connection to the corresponding database.
In odbc, odbc api cannot access the database directly and must exchange information with the database through the driver manager. The driver manager is responsible for passing the application's call to odbc api to the correct driver, and the driver returns the result to the application through the driver manager after performing the corresponding operation.
Explain how to get started with Visual C++
Describe the skills of learning the C++ language
A general introduction to the language structure of C++
A few minutes to help you solve the complexity of C++
C++ programmers talk about C++ programming skills
Odbc driver support is required when accessing odbc data sources. Sql server, access, paradox, dbase, foxpro, excel, oracle and microsoft text drivers can be installed with Visual C++ language installer. By default, vc5.0 only installs sql server, access, foxpro and dbase drivers. If users need to install other drivers, they need to rerun vc5.0 setup and select the required drivers.
1 ado is an integral part of Microsoft's entire com strategy system.
Active data objects (ado) are a set of com components provided by Microsoft. Ado is based on the com architecture advocated by Microsoft, and all its interfaces are automation interfaces, so ado can be accessed through interfaces in C++, visualbasic, delphi and other development languages that support com. By using the new technology of ole db, ado can access the data of relational database, text file, non-relational database, index server and active directory service in the same way, which expands the range of data sources that can be used in the application, and thus becomes the access to data source components in the whole com strategy system of Microsoft, and is a substitute for odbc.
2 composition of Visual C++ language model
Compared with Microsoft's other data access models dao and rdo, the ado object model is very concise, consisting of only three main objects, connection, command, recordset, and several helper objects, and their interrelationships are shown in the figure. The connection object provides the association between the ole db data source and the dialog object, which handles the authentication of the user's identity through the user name and password, and provides transaction support; it also provides execution methods to simplify the process of data source connection and data retrieval. The command object encapsulates commands that can be interpreted by the data source, which can be anything that can be understood by sql commands, stored procedures, or the underlying data source.
Explain how to get started with Visual C++
Describe the skills of learning the C++ language
A general introduction to the language structure of C++
A few minutes to help you solve the complexity of C++
C++ programmers talk about C++ programming skills
Record set is used to represent the table data returned from the data source. It encapsulates the methods of navigation, record update, record deletion and new record addition of the record collection, and provides the ability to update records in batches. Other helper objects provide columns that encapsulate ado errors, encapsulate command parameters, and encapsulate a collection of records.
At this point, the study of "what is the method of compiling a database in Visual C++ language" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.