I am using ado connection to connect to sql 2008 from inno, and i would like to know if we can log the details into a file so that can capture the errors thrown by sql.
Note: Thru ado connection I am not just executing select querys, i am using ado connection to execute set of statements to create database, procedure, tables etc.
For logging a database provider specific errors, use the
Errors
collection of the ADOConnection
object. How to log these errors to a file, shows the following pseudo-script: