Thread View: alt.pl.comp.lang.csharp
2 messages
2 total messages
Started by Krzysztof
Tue, 25 Nov 2003 18:45
UnFill Data Set?
Author: Krzysztof
Date: Tue, 25 Nov 2003 18:45
Date: Tue, 25 Nov 2003 18:45
18 lines
1643 bytes
1643 bytes
Mam takie pytanko...Ale najpierw fragment kodu:
---------------------
daDictionary = new OleDbDataAdapter("select * from " + tabName,
myConnection);
OleDbCommandBuilder build = new OleDbCommandBuilder(daDictionary);
daDictionary.UpdateCommand = build.GetUpdateCommand();
// wypelnic DataSet
daDictionary.Fill( myDataSet, tabName);
-----------------------------
Oczywiscie Command Builder to tak na wypadek modyfikacji danych na tabeli...
Ale pytanka:
1. Jak wywalic tabele z DataSet? (myDataSetRemove?)
2. Jak zresetowac dane z tabeli pomijajac wszystkie modyfikacje?
3. Dlaczego do tego DataSet nie mozna zaczytac widoku? mocno by mi to
uproscilo przetwazanie
Pozdrawiam
Krzysztof
Re: UnFill Data Set?
Author: Selvin
Date: Thu, 27 Nov 2003 14:20
Date: Thu, 27 Nov 2003 14:20
29 lines
1783 bytes
1783 bytes
> Mam takie pytanko...Ale najpierw fragment kodu:
> ---------------------
> daDictionary = new OleDbDataAdapter("select * from " + tabName,
> myConnection);
> OleDbCommandBuilder build = new OleDbCommandBuilder(daDictionary);
> daDictionary.UpdateCommand = build.GetUpdateCommand();
> // wypelnic DataSet
> daDictionary.Fill( myDataSet, tabName);
> -----------------------------
> Oczywiscie Command Builder to tak na wypadek modyfikacji danych na
tabeli...
> Ale pytanka:
> 1. Jak wywalic tabele z DataSet? (myDataSetRemove?)
myDataSet.Tables.Remove()
> 2. Jak zresetowac dane z tabeli pomijajac wszystkie modyfikacje?
myDataSet.Reset()
> 3. Dlaczego do tego DataSet nie mozna zaczytac widoku? mocno by mi to
> uproscilo przetwazanie
tzn a czemu nie mozna (bo nie probowalem) wywala blad czy ... ? no wlasnie
co?
pozdrawiam
Przemek Sulikowski
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads