V
VB Programmer
I'm creating a generic sql "helper" function called "GetDataReader". This
is what I want it to do:
Inputs: DbConnectionString, SqlString
1. Connects to db using DbConnectionString
2. Gets data reader based on SqlString
3. Loop through it and fill a new datatable
4. Close all connections
How do I do #3? I do NOT have pre-defined column names, amount of columns,
etc...
Thanks!
is what I want it to do:
Inputs: DbConnectionString, SqlString
1. Connects to db using DbConnectionString
2. Gets data reader based on SqlString
3. Loop through it and fill a new datatable
4. Close all connections
How do I do #3? I do NOT have pre-defined column names, amount of columns,
etc...
Thanks!