473,785 Members | 3,214 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Connected vs. Disconnected ADO.NET

Hi,

From my understanding DataSet is used for disconnected data access in ADO.NET. However, I haven’t come across an example to use continuous data access with ADO.NET using C# . Is continuously connection possible and allowed in ADO.NET and Is there a simple example available?

Thanks.
Nov 15 '05 #1
3 8776
Yes, the connected part of ADO.NET is to use a DataReader. Do an MSDN search
on DataReader and you should get plenty of information and examples.

--
Sam Gentile [C#/.NET MVP]
..NET Blog http://samgentile.com/blog/
MSDN Column:
http://msdn.microsoft.com/library/de...tml/bridge.asp
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
"light_wt" <an*******@disc ussions.microso ft.com> wrote in message
news:E1******** *************** ***********@mic rosoft.com...
Hi,

From my understanding DataSet is used for disconnected data access in ADO.NET. However, I haven't come across an example to use continuous data
access with ADO.NET using C# . Is continuously connection possible and
allowed in ADO.NET and Is there a simple example available?
Thanks.

Nov 15 '05 #2
Hi,

a DataReader is a connected data access. See MSDN to more details.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"light_wt" <an*******@disc ussions.microso ft.com> wrote in message
news:E1******** *************** ***********@mic rosoft.com...
Hi,

From my understanding DataSet is used for disconnected data access in ADO.NET. However, I haven't come across an example to use continuous data
access with ADO.NET using C# . Is continuously connection possible and
allowed in ADO.NET and Is there a simple example available?
Thanks.

Nov 15 '05 #3
Hi,

Yes, take a look at the SqlDataReader class or the OleDbDataReader class
topics in MSDN.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"light_wt" <an*******@disc ussions.microso ft.com> wrote in message
news:E1******** *************** ***********@mic rosoft.com...
Hi,

From my understanding DataSet is used for disconnected data access in ADO.NET. However, I haven’t come across an example to use continuous data
access with ADO.NET using C# . Is continuously connection possible and
allowed in ADO.NET and Is there a simple example available?
Thanks.


Nov 15 '05 #4

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

Similar topics

4
2320
by: Steve Le Monnier | last post by:
The ADO.NET DataSet is idea for application development, especially if you need disconnected data. DataReader objects are great in the connected environment but are forward only. What do you do when you want a connected application but need the ability scroll forward and backward within the result set. What I'm trying to achieve is to build an application that has navigation buttons, thus allowing the user to step forward or backward...
0
1075
by: Cat | last post by:
Hello. Is it POSSIBLE to get notified when the machine is connected to the internet or disconnected from the internet? I mean, using .NET class not using Windows API. Other than pinging a website continuously at a time interval. If it is impossible, please answer NO to my question. That will help me to stop searching for this. Thank you.
3
1765
by: leveraged | last post by:
Why can I only connect to or create a web app in VS 2003 using localhost while I am connected to the internet. I have no problems using VS 2002 but for some reason I get Microsoft Development Environment dialog that says 'A connection with the server could not be established.' whnever I try with VS 2003. I've read a number of other posts (through google) but none seem to ever finish with a resolution. I suppose I could continue to work...
2
2319
by: Robert Scheer | last post by:
Hi. My site needs to know if the user is connected before executing some queries on my database. Actually, I have a page loaded by an Iframe that runs every 30 seconds and updates a field on my database to tells me the user is connected. If this field is not updated for more than one minute I consider the user disconnected. The problem is, if that page does not load for any anormal reason (an IIS error like Page Could not be Loaded,...
9
1825
by: Steven Nagy | last post by:
I know that .NET is based on a disconnected architecture, but I can't conceive of why continually opening and closing a connection would be faster than leaving a connection open. So I ran a test and came up with a result of exactly the same times! 50 rows selected into a datareader, in a loop of 50 One opens and closes the connection in each iteration of the loop, the other just opens before the loop starts, then closes after the loop is...
1
1948
by: dejavue82 | last post by:
Hello fellow programmers! My question concerns the scalability of database access. In coldfusion (or php for that matter) for example, there seems to be only the connected model for accessing a DB. On the other hand, there is asp.net 2.0, which provides disconnected and connected access. Question: Would databinding to controls directly, in ASP.NET 2.0 (without the manual coding of ADO.net), be as affective (scalable) as using the...
7
16944
by: semedao | last post by:
Hi all, I view many posts about this issue , the connected property does not tell us the current status of the socket. based on couple of suggestions of msdn , and some article here , I try to write an helper method that will tell if the socket is connected or not , but it's not working good continue to tell me that the socket is connectedeven if the other party already call shutdown(both) + close , or , even if the other party close the...
2
3334
by: Gabriel | last post by:
Hello, I'm looking for documentation with "Best Practice" for ASP.NET application In which case use Connected or Disconnected mode Typed dataset or not ? I didn'd find anything pertinent ....
4
15306
by: keithseah | last post by:
Hi all, i've been having this problem and its kiiling me! i'm a newbie at this so i hope someone would be able to help me. picture link: http://i98.photobucket.com/albums/l272/rachelyeo/ErrorWebApplication2.jpg this pops up whenever i click on the Disconnect button after i have connected. these are the following codes for the program.
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10315
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10085
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8968
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6737
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.