I know its possible ot inherit / ovveride existing objects in VB.Net but its not somthing I've ever done.
I have the need to log SQL queries to a seperate database and rather than write a seperate sub then call it over and over again I was hoping that there might be a way to create a new object that inherits the sqlcommand object (in paticular the executescalar/nonquery). That way I can declare an instance of myOwnSQLcommand, and each time I call the ExecuteScalar/NonQuery functions not only would it perform the requested databse operation but it would also write the SQL query out to a seperate databse/sql server.
Is this possbile? I really looking for a step in the right direction here guys.