Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dataset size ?

Status
Not open for further replies.

HagaiGold

Programmer
Dec 3, 2002
2
IL
How do I calculate DATASET size, after I filled it?
 
I'm not sure what you mean by size. If you're trying to find out the number of tables and the number of rows in each table then you could do something like this:

Dim i As Integer
Dim j As Integer

i = dsMyDataSet.Tables.Count

For j = 0 To i - 1
Dim a As Integer
a = dsMyDataSet.Tables(j).Rows.Count
Console.WriteLine(dsMyDataSet.Tables(j).ToString & " has " & a.ToString & " rows.")
Next
 
Thnkas man...
But what I realyy meant is the actual storage of bytes of the Dataset object !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top