Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. rule of DataAdapter

rule of DataAdapter

Scheduled Pinned Locked Moved Database
question
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    messages
    wrote on last edited by
    #1

    Hi everyone I have a question,is it correct connected data objects consist of connection,command,reader and dataadapter(why we need to DataAdapter in a connected model?),transaction,.... disconnected data objects consist of dataset,dataTable,datarow,dataadapter so we have two main models connected and disconnected. what is the rule of DataAdapter in connected model? why do we need to use of a dataadpter to fill a dataset like this in a connected model?

    .....
    sqlDataAdapter = new SqlDataAdapter(cmdString, sqlConnection);
    sqlDataAdapter.SelectCommand = sqlCommand;
    SqlDataAdapter sqlDataAdapter;
    sqlDataSet = new DataSet();
    sqlDataSet.Clear();
    int intValue = sqlDataAdapter.Fill(sqlDataSet);

    is it right we are shifting of connected model to disconnected model,if yes why?

    P 1 Reply Last reply
    0
    • M messages

      Hi everyone I have a question,is it correct connected data objects consist of connection,command,reader and dataadapter(why we need to DataAdapter in a connected model?),transaction,.... disconnected data objects consist of dataset,dataTable,datarow,dataadapter so we have two main models connected and disconnected. what is the rule of DataAdapter in connected model? why do we need to use of a dataadpter to fill a dataset like this in a connected model?

      .....
      sqlDataAdapter = new SqlDataAdapter(cmdString, sqlConnection);
      sqlDataAdapter.SelectCommand = sqlCommand;
      SqlDataAdapter sqlDataAdapter;
      sqlDataSet = new DataSet();
      sqlDataSet.Clear();
      int intValue = sqlDataAdapter.Fill(sqlDataSet);

      is it right we are shifting of connected model to disconnected model,if yes why?

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      I would not include DataAdapter in the "connected" category. The "connected" paradigm is still appropriate for many applications, but less so with distributed applications. DataAdapters cause me nothing but trouble; I don't use them. X|

      M 1 Reply Last reply
      0
      • P PIEBALDconsult

        I would not include DataAdapter in the "connected" category. The "connected" paradigm is still appropriate for many applications, but less so with distributed applications. DataAdapters cause me nothing but trouble; I don't use them. X|

        M Offline
        M Offline
        messages
        wrote on last edited by
        #3

        Is it correct we can fill a dataset with connected objects(connection,command,dataadapter) and without them(with data source window)? if yes so we are using of the connected objects to fill a disconnected object(dataset),right?

        P 1 Reply Last reply
        0
        • M messages

          Is it correct we can fill a dataset with connected objects(connection,command,dataadapter) and without them(with data source window)? if yes so we are using of the connected objects to fill a disconnected object(dataset),right?

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          DataAdapters enable the disconnected paradigm.

          M 1 Reply Last reply
          0
          • P PIEBALDconsult

            DataAdapters enable the disconnected paradigm.

            M Offline
            M Offline
            messages
            wrote on last edited by
            #5

            And we can use of it form programming (dataset dt=new,....) and from toolbox in the visual studio,right?

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups