Ooops j'avais pas grillé que ta cible était MSSQL..., dsl!
donc:
Si tu utilise Visual Studio, voici un passage tiré de la MSDN:
(data source ca se fait dans le panneau de config)
Open
Database Connectivity (ODBC)
The database classes are implemented with ODBC, which uses SQL in a
call-level interface rather than embedding SQL commands in the code. ODBC uses
SQL to communicate with a data
source through ODBC drivers. These drivers interpret the SQL and translate
it, if necessary, for use with a particular database format, such as Microsoft
Access. For more information about how ODBC uses SQL, see the article ODBC and the ODBC SDK Programmer's Reference on
the MSDN Library CD.
The Database Classes
The database classes are designed to let you manipulate and update data in an
existing data source. The MFC Application Wizard,
the MFC ODBC Consumer Wizard
(accessed through Add Class), and the database classes construct most of
the SQL statements for you.
The database classes use a portion of SQL known as the Data Manipulation
Language (DML). These commands let you work with all or part of the data source,
add new records, edit records, and delete records. The following table lists the
most common SQL keywords and the ways the database classes use them.