Connecting to SQL Server

Does anyone know a template for connecting to SQL server from C++. It appears to be ODBC but I can't get the exact information I need to locate a database. I have done this in asp.net to Access and php to mysql so the concept is nothing new. Also have the sqlapi installed.

Thanks
If you already have the MySQL api installed you can get Mysql++ (C++ wrapper for the API) and the documentation and examples are nice.
You may also use SQL Anywhere with their included SDK.
Topic archived. No new replies allowed.