473,413 Members | 1,799 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,413 software developers and data experts.

Execute Query on a TOTALLY disconnected DataSet

Hi All

Is there a way to Execute a query (possibly including two tables and joins)
on a totally disconnected dataset.
By 'Totally Disconnted' , I mean there is no DB and there is no DBConnection
/ DBCommand - all the data and structure is in memory.
The query is to be used to databind a grid, so some sort of view is needed
( i.e. its not a one time query ).

Its like having a mini in-memory DB on the client side and looking for a way
to have a view running stored procedure.

( NOTE: DataView's RowStateFilter and DataTables Select might not be helpful
in this case )

Thank You
rawCoder
Nov 21 '05 #1
1 1306
rawCoder,

The DataSet is totally disconnected. There is no way to "connect" it to
anything. When it is populated, it doesn't have knowledge of the
connection, or the commands used to populate it.

The only way to perform a query on that data would be to use the Select
method on the DataTable class, and if that doesn't work, then you will have
to evaluate the values in the rows yourself.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"rawCoder" <ra******@hotmail.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
Hi All

Is there a way to Execute a query (possibly including two tables and
joins)
on a totally disconnected dataset.
By 'Totally Disconnted' , I mean there is no DB and there is no
DBConnection
/ DBCommand - all the data and structure is in memory.
The query is to be used to databind a grid, so some sort of view is needed
( i.e. its not a one time query ).

Its like having a mini in-memory DB on the client side and looking for a
way
to have a view running stored procedure.

( NOTE: DataView's RowStateFilter and DataTables Select might not be
helpful
in this case )

Thank You
rawCoder

Nov 21 '05 #2

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

Similar topics

4
by: Thomas Scheiderich | last post by:
Why would you use the Recordset object over the Execute method of getting data from your Sql database. For example, I have the following: Execute Method...
1
by: Andrew | last post by:
I'm a long time VB6/ADO and Java developer new to ADO.NET. I'm trying to decide on best practices and I'd appreciate any assistance. I have one specific question and another more general...
1
by: rawCoder | last post by:
Hi All Is there a way to Execute a query (possibly including two tables and joins) on a totally disconnected dataset. By 'Totally Disconnted' , I mean there is no DB and there is no DBConnection...
5
by: J | last post by:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here ip() If Not IsPostBack Then ...
2
by: Sky | last post by:
Hello, The books on C# I have read talk of using the DataSets in disconnected mode, and Adding/Removing/Updating records from it, and letting it handle all the updating on the Database in one...
5
by: Jason Shohet | last post by:
I have an asp.net app, and suddenly, I lose connection to the web server. I'd like a way -- if the update doesn't go thru, to 'cache' the changes to the dataset. Then the next time the user hits...
2
by: Jeff Thur | last post by:
I am trying to Execute a simple Stored Procedure using ASP/VB. I have spent numerous hours with this, researching books and looking on the internet. I can't get a direct answer. THis is my...
7
by: JIM.H. | last post by:
Hello, Is there any difference to between SLQ string in the code and call execute query and call a stored procedure and execute the query that way concerning speed, effectiveness, reliability,...
5
by: Crash | last post by:
Is there any sort of query engine for use with .NET datasets? I have an application that has a very small disconnected client database - 2 dozen tables, largest table @100 rows. If loaded into a...
4
by: K Viltersten | last post by:
Today, i run the code below and while it works, i can't stop wondering if it can be performed in a better way. Especially, i'd like to know if the declaration of the adapter is neccessary. ...
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?
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.