Click here to Skip to main content
11,428,281 members (62,678 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
i wanted to know without connecting to database how can we retrieve data.
what is connected architecture and disconnected architecture,what is the difference between these.
Posted 5-Dec-12 20:58pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Nice question Mr. Karthikeyan but I am afraid you can't retrieve data without even connecting to a DB until and unless you are a magician..lol..:P:P

the next part of ur question has probabale answers.
Connected architecture refers to being connected to the server evry single instant of time to retrieve real time data and stats...for ex:In a railway reservation system, you would have to be connected to the server everytime to knw the status or your own booking and stuffs....
Coming to .NET POV, open the connection, work and process ur dataset and then close the connection.

In case of disconnected architecture, you dont nee to be connected to the server evrytime.Open the connection,retreive the dataset from the server,close the connection,work on the datset and process it....Its just like a local copy on ur system..

And btw..there are numerou articles on MSDN or even here to make use of..

Hope it helps...Smile | :) Smile | :)
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

May Be You Asking About SQL dataadapter which works in disconneted manner we need not to open or close sql connection

but SQL datareader works in connected manner here we have to open and close the sql connection.

and it can't be possible to fetch data without connection string or connection.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

hi,

i dont know the way of your first Question. becoz thats impossible. but i can say answer for your second question that is,

In Disconnected architecture DataSet is used for retriewing data from database. Then no need for maintaining the connection also. All the operations can be performed with the data once retriewed. It wont cause traffic problem while working with database.
 
In connected architecture DataReader is used for retriewing data from database. Here a connection is always maintained. Update, Delete, Read and Select operations can be performed on each time at database.., so tat a connection must be needed to be maintained.. so it cause traffic problems.


regards
sarva
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

No you can't.. Its not possible..
Assume that, I'm askhin' for 5$ and you don't have it, So how'd you give me 5$ ??
Same way, for database transaction you must have open connection.. Smile | :) but ya except SqlDataAdapter ....
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.150428.2 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100