how to find sizeof(recordset) in ?

dim rs as new adodb.recordset "select * from emp",cn ....
how to find sizeof(rs)  or memoryoccupied(rs)
I want to find how many bytes  has occupied  for  rs while that appliation is running ?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tamilsoftAuthor Commented:
how to calculate in coding ?
Alfredo Luis Torres SerranoASP .Net DeveloperCommented:
Assuming you have a table inside a dataset, thus:

Dim daTemp As New SqlDataAdapter("select * from Temp",oconn)

Dim dsTemp As New DataSet("Temp")

daprod.Fill(dsTemp, "Temp")

dim i as integer

i = dsprod.tables(0).rows.count

Hope this help
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

tamilsoftAuthor Commented:
expert mister "Masteraco".  your answer is wrong.  I dont ask about  sql table record count.
I asked is   I want to find TotalBytes(recordset).

Alfredo Luis Torres SerranoASP .Net DeveloperCommented:
Probably you could do it taking the number of columns and determine the size of each column by its datatype for fixed-length datatypes.

Calculate the space used for any nullable columns Then calculate the rowspace:

Row_Size = Fixed_Data_Size + Variable_Data_Size + Null_Bitmap + 4

tamilsoftAuthor Commented:
I dont understand. please explain
what is fixed_Data_size  ?
what is variable_Data_size  ?
what is Null_Bitmap +4 ?
Alfredo Luis Torres SerranoASP .Net DeveloperCommented:
fixed data size is where the field type is varchar nvarchar and you explicity specify the size of the data.

Variable data size in where the field type is ntext and those fields that the size are variable.

And null bitmap in in the case you have image fields.
tamilsoftAuthor Commented:
ok."Masteraco". your answer creates idea. I want  sizeof(datatypes)  for oracle. but you have told sizeof(datatypes) for sql server.
I want sizes for   oracle.
Alfredo Luis Torres SerranoASP .Net DeveloperCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.