11---
2- title : " C ++ ODBC app accessing a SQL database"
3- description : " This C++ sample application demonstrates how to use the ODBC APIs to connect to and access a SQL database."
2+ title : C / C ++ ODBC app accessing a SQL database
3+ description : This C / C ++ sample application demonstrates how to use the ODBC APIs to connect to and access a SQL database.
44ms.custom : " "
5- ms.date : " 06/19/2020 "
5+ ms.date : 01/11/2022
66ms.prod : sql
77ms.prod_service : connectivity
88ms.reviewer : " "
@@ -15,8 +15,7 @@ ms.author: v-davidengel
1515
1616[ !INCLUDE [ sql-asdb] ( ../../includes/applies-to-version/sql-asdb.md )]
1717
18-
19- This C++ sample application demonstrates how to use the ODBC APIs to connect to and access a SQL database.
18+ This C / C++ sample application demonstrates how to use the ODBC APIs to connect to and access a SQL database.
2019
2120Between October 2013 and July 2019, this sample C++ ODBC application was downloaded 47,300 times. In July 2019, this application source was moved from Microsoft's Code Gallery to this webpage.
2221
@@ -29,7 +28,7 @@ Was: https://code.msdn.microsoft.com/windowsapps/ODBC-sample-191624ae/sourcecod
2928
3029## A. ReadMe.txt
3130
32- ```
31+ ``` text
3332Environment Where Tested
3433===============================
3534Visual Studio 2012
@@ -733,36 +732,36 @@ void HandleDiagnosticRecord (SQLHANDLE hHandle,
733732
734733## C. odbcsql.sln code
735734
736- ```
735+ ```text
737736Microsoft Visual Studio Solution File, Format Version 12.00
738737# Visual Studio Version 16
739738VisualStudioVersion = 16.0.29230.47
740739MinimumVisualStudioVersion = 10.0.40219.1
741740Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "odbcsql", "odbcsql.vcxproj", "{C5948D2C-C53D-4933-9AC5-48066AD6A560}"
742741EndProject
743742Global
744- GlobalSection(SolutionConfigurationPlatforms) = preSolution
745- Debug|x64 = Debug|x64
746- Debug|x86 = Debug|x86
747- Release|x64 = Release|x64
748- Release|x86 = Release|x86
749- EndGlobalSection
750- GlobalSection(ProjectConfigurationPlatforms) = postSolution
751- {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Debug|x64.ActiveCfg = Debug|x64
752- {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Debug|x64.Build.0 = Debug|x64
753- {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Debug|x86.ActiveCfg = Debug|Win32
754- {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Debug|x86.Build.0 = Debug|Win32
755- {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Release|x64.ActiveCfg = Release|x64
756- {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Release|x64.Build.0 = Release|x64
757- {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Release|x86.ActiveCfg = Release|Win32
758- {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Release|x86.Build.0 = Release|Win32
759- EndGlobalSection
760- GlobalSection(SolutionProperties) = preSolution
761- HideSolutionNode = FALSE
762- EndGlobalSection
763- GlobalSection(ExtensibilityGlobals) = postSolution
764- SolutionGuid = {32894C74-C0AE-427F-969B-5F757A98EAFF}
765- EndGlobalSection
743+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
744+ Debug|x64 = Debug|x64
745+ Debug|x86 = Debug|x86
746+ Release|x64 = Release|x64
747+ Release|x86 = Release|x86
748+ EndGlobalSection
749+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
750+ {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Debug|x64.ActiveCfg = Debug|x64
751+ {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Debug|x64.Build.0 = Debug|x64
752+ {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Debug|x86.ActiveCfg = Debug|Win32
753+ {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Debug|x86.Build.0 = Debug|Win32
754+ {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Release|x64.ActiveCfg = Release|x64
755+ {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Release|x64.Build.0 = Release|x64
756+ {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Release|x86.ActiveCfg = Release|Win32
757+ {C5948D2C-C53D-4933-9AC5-48066AD6A560}.Release|x86.Build.0 = Release|Win32
758+ EndGlobalSection
759+ GlobalSection(SolutionProperties) = preSolution
760+ HideSolutionNode = FALSE
761+ EndGlobalSection
762+ GlobalSection(ExtensibilityGlobals) = postSolution
763+ SolutionGuid = {32894C74-C0AE-427F-969B-5F757A98EAFF}
764+ EndGlobalSection
766765EndGlobal
767766```
768767
0 commit comments