This paper describes some of the roles of SQL in Visual Basic, C++, and Java programming regarding its use with databases. It provides some code snippets to show some of the ways that programming languages interact with SQL to compile and perform database operations.
From the Paper:
"SQL - Structured Query Language is very important since it is the language most electronic databases are based on. Unfortunately SQL is not really a programming language like most modern languages (Not Turing complete) so is it usually used in conjunction with actual programming languages like Visual Basic , C++ and Java to provide data driven applications. It provides a sort of library for high level languages and performs many of the basic database commands needed to run database applications."