As Simon_Whale has already said this is far too complicated to be able to give an answer in a forum like this.
Your only hope is to use Google/Bing/Yahoo and gather little bits of info about it and combine them until you find something that works.
There are a couple of commands that might get you started:-
DBCC - a transact-sql command. Use search for full details on this.
fn_dblog - an undocumented (meaning beware) SQLServer function.
Here [
^] is one article on it. Use search for more info.
There are plenty of articles out there on running Transact-SQL commands from VB. Search for them.