mysql - Clearing DataTable Automatically Before Filling -


i had quick question. i'm new .net. there way set datatable clear everytime before fill it? looking @ tableadapter , saw 'clearbeforefill property' , thinking existed dataadapter or datatables specifically.

'construct query dim queryaccountdata$ = "select * " & tablename & " accountnumber=" & accountnumber  'execute query , fill datatable in dataset using adapter new mysqldataadapter(queryaccountdata, connection)     adapter.fill(ds, "holdings") end using  ds.tables("holdings")      'assign variables      rows_lastindex = .rows.count - 1      if rows_lastindex = -1 throw new applicationexception("account number not found in database") etc.... 

thanks!


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -