4
Reply

Difference between connected and disconnected database in .net with sql server?

Aleena Saviour

Aleena Saviour

Nov 28, 2016
2.4k
0

    Not sure why interviewer thought to mention SQL Server in specific.With ADO.Net, there are 2 ways to access data---Connected architecture--Disconnected architectureDataReader is example of connected architecture as it keeps conneection open untill all records are fetched. It's forward only so, you do not have access to previous items in the same connection.DataSet is an example of disconnected architecture as it gets all records at once and closes connection.Check this blog: http://helpingdotnet.blogspot.in/2011/10/connected-and-disconnected-architecture.html

    Suvendu Shekhar Giri
    February 23, 2017
    1

    Main difference is that :In connected architecture we should manually open DB connectionIn Disconnected connection maintained automatically

    Manav Pandya
    February 09, 2017
    1

    In connected mode All time data accessed from database. But in disconnected mode all the data stored on browser

    Mukesh Kumar
    August 31, 2017
    0

    if we use connected mode then all time data accessed from server this decreases the performance &if we use disconnected mode then first time data accessed from server and stored at client system cache this increases the performance but decreases security

    Mukesh Kumar
    August 23, 2017
    0