473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Sixe in KB of a dataset or datatable

Hello, does anyone knows how to know the size in Kb of data stored ina a
dataset?
Thanks
Mar 9 '07 #1
3 1090
That is sort of a how long is a string question.

You would need to calculate the number of rows, and the amount of data for
each row. If you have strings this will be very difficult. There is also
overhead with internal variables in the object etc.

Not an easy thing to calculate as there is not SizeOf(object as object) as
integer to return this information.

Lloyd Sheen

"Manekurt" <m.*********@ga.m.a.c.om.com.arwrote in message
news:Of**************@TK2MSFTNGP03.phx.gbl...
Hello, does anyone knows how to know the size in Kb of data stored ina a
dataset?
Thanks
Mar 9 '07 #2
Thank you, what I really need, is to calculate the data transfer from a SQL
Server database, I thought this was less complicated.
I renew my question, is there a simple way to calculate in Kb, the
comunication to a SQL Server?
Thank you again

"Lloyd Sheen" <a@b.cescribió en el mensaje
news:e3**************@TK2MSFTNGP02.phx.gbl...
That is sort of a how long is a string question.

You would need to calculate the number of rows, and the amount of data for
each row. If you have strings this will be very difficult. There is also
overhead with internal variables in the object etc.

Not an easy thing to calculate as there is not SizeOf(object as object) as
integer to return this information.

Lloyd Sheen

"Manekurt" <m.*********@ga.m.a.c.om.com.arwrote in message
news:Of**************@TK2MSFTNGP03.phx.gbl...
>Hello, does anyone knows how to know the size in Kb of data stored ina a
dataset?
Thanks

Mar 9 '07 #3
I guess we need to know what you mean by the KB's for a connection.

There are many resources used depending on how you connect. There will be
objects on the client workstation , a connection and a command. On the
server there will the connection and whatever memory is used for the query
and the query plan.

What is it that you are trying to use this information for?

Lloyd Sheen

"Manekurt" <ma********@g-a-ma.com.com.arwrote in message
news:uk*************@TK2MSFTNGP06.phx.gbl...
Thank you, what I really need, is to calculate the data transfer from a
SQL Server database, I thought this was less complicated.
I renew my question, is there a simple way to calculate in Kb, the
comunication to a SQL Server?
Thank you again

"Lloyd Sheen" <a@b.cescribió en el mensaje
news:e3**************@TK2MSFTNGP02.phx.gbl...
>That is sort of a how long is a string question.

You would need to calculate the number of rows, and the amount of data
for each row. If you have strings this will be very difficult. There is
also overhead with internal variables in the object etc.

Not an easy thing to calculate as there is not SizeOf(object as object)
as integer to return this information.

Lloyd Sheen

"Manekurt" <m.*********@ga.m.a.c.om.com.arwrote in message
news:Of**************@TK2MSFTNGP03.phx.gbl...
>>Hello, does anyone knows how to know the size in Kb of data stored ina a
dataset?
Thanks

Mar 9 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Frnak McKenney | last post by:
I'm using an in-core DataSet as an image of my application's 'database' (a multi-table Access97 mdb file). Updates are made to the DataTables within the DataSet via forms with bound TextBoxes,...
3
by: Bill C. | last post by:
Hi, I've got a simple console app that just reads an XML file into a DataSet then prints out a description of each table in the DataSet, including column names and row values for each column. ...
35
by: MuZZy | last post by:
Hi All, I got a issue here and hope someone can help me: Let's consider this code: // =================== CODE START ================================= using System; using System.Data; ...
15
by: JIM.H. | last post by:
Hello, Can I send a dataset as a parameter into stored procedure and import data to a table in the stored procedure? Thanks, Jim.
1
by: cindy | last post by:
Get data into datatable, add to dataset dsSearch " Get data into datatable, add to dataset dsSearch Using In-Memory SQL Engine join the tables and select the filenames from the join, add to...
5
by: Roy Lawson | last post by:
I am having no problems connecting to a DB, creating a DataAdapter, and creating a dataset...and connecting to the data. Using the builtin data objects to do all this. My only problem now is...
3
by: Datatable Dataset Datagrid help | last post by:
Hi I am somewhat confused, I am new at VB.net I use XML data, I have a datagrid, I created a datatable so that I can create a custom format like true is this graphic false is this graphic and...
10
by: dauphian | last post by:
Hello, I am new to .net and am trying to build a report application that queries 4 different tables based on a id, and I need to return them in the same table for easy viewing. Basically, I...
3
by: Tom | last post by:
I have a dataTable being returned from my datalayet, I need to convert it to a dataSet so I can do some data manipulation to it prior to populating my datagrid. How can I convert the datatable to a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.