Search Wiki:
Resource Page Description
This is a windbg script that I wrote to dump the column names from a data table.

http://blogs.msdn.com/vijaysk/


$$
$$ Dumps all column names from a DataTable
$$
$$ Written by: Vijay
$$
$$ Run as: $$>a<DumpColumnNames.txt DataTableAddress
$$
$$ Example : $$>a<D:\CaseFiles\DumpColumnNames.txt 0x5a055714
$$

ad /q *

.printf "\n Data Table : ${$arg1} \n";

.foreach (DataColumn {!do poi(poi(poi(${$arg1}+ 0x18) + 0x8) + 0x4) -v -short}){
.printf " Data Column : ${DataColumn} \t";
$$ !do poi(${DataColumn}+0x28)
!dumpfield -field _columnName ${DataColumn} -string
}
.printf "\n";


For more details about the script visit http://blogs.msdn.com/vijaysk/archive/2008/01/15/windbg-scripting-dump-data-column-names-from-a-table.aspx
Last edited Feb 5 2008 at 11:40 PM  by vijaysk, version 4
Updating...
Page view tracker