|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Create Recordset from a non standard data sourceHi,
How do you create a recordset from an array or collection? What I mean is, if I have some data like an array or a collection can I make that the source of a record set and then use SQL commands to manipulate it without using a database XML file or webservice. Regards, Mike Not yet (this will be likely in the next release, see LINQ).
For now : - you can databind an array and others collections to controls - you could create an in memory DataTable and work on this (though you won't have SQL capabilities but I suppose you don't have an expensive set of data ?) - you could use a lightweight db - you likely have thrid party products able to do that (but IMO doesn't change much from above) - from where are loaded your data ? (you could access the files through a driver allowing to perform perhaps the most basic statements) etc... -- Patrice "Mike Spike" <M***@melted-Cpu-co.uk> a écrit dans le message de news: OJqb2mzqGHA.4***@TK2MSFTNGP04.phx.gbl...Show quoteHide quote > Hi, > > How do you create a recordset from an array or collection? > > What I mean is, if I have some data like an array or a collection can I > make that the source of a record set and then use SQL commands to > manipulate it without using a database XML file or webservice. > > Regards, > > Mike > Patrice,
There is in my opinion asked a Recordset, which is in my opinion an Ado part. Why are you than giving an DataTable (ADONET) solution? Cor Show quoteHide quote "Patrice" <scr***@chez.com> schreef in bericht news:eQGmbwzqGHA.148@TK2MSFTNGP04.phx.gbl... > Not yet (this will be likely in the next release, see LINQ). > > For now : > - you can databind an array and others collections to controls > - you could create an in memory DataTable and work on this (though you > won't have SQL capabilities but I suppose you don't have an expensive set > of data ?) > - you could use a lightweight db > - you likely have thrid party products able to do that (but IMO doesn't > change much from above) > - from where are loaded your data ? (you could access the files through a > driver allowing to perform perhaps the most basic statements) > etc... > > -- > Patrice > > "Mike Spike" <M***@melted-Cpu-co.uk> a écrit dans le message de news: > OJqb2mzqGHA.4***@TK2MSFTNGP04.phx.gbl... >> Hi, >> >> How do you create a recordset from an array or collection? >> >> What I mean is, if I have some data like an array or a collection can I >> make that the source of a record set and then use SQL commands to >> manipulate it without using a database XML file or webservice. >> >> Regards, >> >> Mike >> > >
check database connection/open
Default date Combining datatables HELP! Why is SqlException being caught in this code if it can't connect to SQL Server? Access Databse "Select * from Bilag Where Mdates Between #1/1/2006# And #31/1/2006#" Display Unicode characters on Winforms concurrency question Refreshing datagridview after a rowtemplate height change ADO.NET in VB6 How to download a file from Server to client local pc without user intervention? |
|||||||||||||||||||||||