Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Loretta Carpenter   on Aug 19 In Asp.net Category.

  
Question Answered By: Kim Cruz   on Aug 19

Two things. A DataTable is already exactly what GetRows is.

www.learnasp.com/freebook/learn/datatable.aspx

It does disconnect from datasource after it is filled and all interactions with a DataTable require no database connectivity except when picked up and dropped off. DataTables are the benefits of GetrOws with more powers thatn array. They can be sorted, filtered and much more yet are not connected.

I was always a HUGE getrows advocate see:
http://www.learnasp.com/advice/whygterows.asp
and Datatables now mean that all ADO.net progammers have tho worlds greatest getrows.

Utility Belt has easy way to make array if you want mere array not Datatable if you want something slightly lighter. see the sample at:
www.learnasp.com/.../utilitybelt_xray.aspx

the fragment:
dim arryNY as string(,)
utlty1.DBPopulate(strConnect,"select * from publishers where state='NY'",arryNY)
in that code is populating a 2d array from a datatable.

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on GetRows of ADO in ADO.Net Or get search suggestion and latest updates.


Tagged: