|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Simple ADO.NEt questionWhat is the equivalent of
DataEnvironment1.rsCommand1("FIELD") [VB Dataenvironment] in ADO.NET? It's hard to exactly answer your question since we no longer use Data
Environments or Recordsets. We now store data in a disconnected mode inside of an entity called a DataTable. DataTables can be used as individual units or placed inside of a larger entity called a DataSet (where other DataTables can be stored inside of a Tables collection). Either way, you access a field of a DataTable via it's "Item" property: DataTable.Item("FIELD") Show quote "Arsalan" <arsalan_as***@hotmail.com> wrote in message news:%23VFtQD63EHA.1392@tk2msftngp13.phx.gbl... > What is the equivalent of > > DataEnvironment1.rsCommand1("FIELD") [VB Dataenvironment] > > in ADO.NET? > Thanks.
So what step do i need to follow, first i've to make dataset, and fill it , then link datatable to dataset ? am I right? Show quote "Scott M." <s-mar@nospam.nospam> wrote in message news:e$6bon63EHA.1204@TK2MSFTNGP10.phx.gbl... > It's hard to exactly answer your question since we no longer use Data > Environments or Recordsets. We now store data in a disconnected mode > inside of an entity called a DataTable. DataTables can be used as > individual units or placed inside of a larger entity called a DataSet > (where other DataTables can be stored inside of a Tables collection). > > Either way, you access a field of a DataTable via it's "Item" property: > > DataTable.Item("FIELD") > > > "Arsalan" <arsalan_as***@hotmail.com> wrote in message > news:%23VFtQD63EHA.1392@tk2msftngp13.phx.gbl... >> What is the equivalent of >> >> DataEnvironment1.rsCommand1("FIELD") [VB Dataenvironment] >> >> in ADO.NET? >> > > The act of filling a DataSet will cause a DataTable to be created (if none
exist already). Or, you could manually populate a DataTable and then add it to a DataSet. Show quote "Arsalan" <arsalan_as***@hotmail.com> wrote in message news:e3a%23Ka73EHA.1596@tk2msftngp13.phx.gbl... > Thanks. > > So what step do i need to follow, > first i've to make dataset, and fill it , then link datatable to dataset ? > am I right? > > "Scott M." <s-mar@nospam.nospam> wrote in message > news:e$6bon63EHA.1204@TK2MSFTNGP10.phx.gbl... >> It's hard to exactly answer your question since we no longer use Data >> Environments or Recordsets. We now store data in a disconnected mode >> inside of an entity called a DataTable. DataTables can be used as >> individual units or placed inside of a larger entity called a DataSet >> (where other DataTables can be stored inside of a Tables collection). >> >> Either way, you access a field of a DataTable via it's "Item" property: >> >> DataTable.Item("FIELD") >> >> >> "Arsalan" <arsalan_as***@hotmail.com> wrote in message >> news:%23VFtQD63EHA.1392@tk2msftngp13.phx.gbl... >>> What is the equivalent of >>> >>> DataEnvironment1.rsCommand1("FIELD") [VB Dataenvironment] >>> >>> in ADO.NET? >>> >> >> > > Thanks a lot
Show quote "Scott M." <s-mar@nospam.nospam> wrote in message news:uhgFKHA4EHA.2316@TK2MSFTNGP15.phx.gbl... > The act of filling a DataSet will cause a DataTable to be created (if none > exist already). > > Or, you could manually populate a DataTable and then add it to a DataSet. > > > "Arsalan" <arsalan_as***@hotmail.com> wrote in message > news:e3a%23Ka73EHA.1596@tk2msftngp13.phx.gbl... >> Thanks. >> >> So what step do i need to follow, >> first i've to make dataset, and fill it , then link datatable to dataset >> ? am I right? >> >> "Scott M." <s-mar@nospam.nospam> wrote in message >> news:e$6bon63EHA.1204@TK2MSFTNGP10.phx.gbl... >>> It's hard to exactly answer your question since we no longer use Data >>> Environments or Recordsets. We now store data in a disconnected mode >>> inside of an entity called a DataTable. DataTables can be used as >>> individual units or placed inside of a larger entity called a DataSet >>> (where other DataTables can be stored inside of a Tables collection). >>> >>> Either way, you access a field of a DataTable via it's "Item" property: >>> >>> DataTable.Item("FIELD") >>> >>> >>> "Arsalan" <arsalan_as***@hotmail.com> wrote in message >>> news:%23VFtQD63EHA.1392@tk2msftngp13.phx.gbl... >>>> What is the equivalent of >>>> >>>> DataEnvironment1.rsCommand1("FIELD") [VB Dataenvironment] >>>> >>>> in ADO.NET? >>>> >>> >>> >> >> > > |
|||||||||||||||||||||||