473,465 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DataSet and View

How can I fill DataSet witch data from view?
Sample:
daDictionary = new OleDbDataAdapter("select * from " + viewName,
myConnection);
daDictionary.Fill( myDataSet, viewName);

What must be done to do it?

Regards
Krzysztof
Nov 15 '05 #1
3 3631
Hi,

The same as filling from table.
Is there any error you are getting?

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com

"Krzysztof" <kk******@poczta.onet.pl> wrote in message
news:bq**********@news.onet.pl...
How can I fill DataSet witch data from view?
Sample:
daDictionary = new OleDbDataAdapter("select * from " + viewName,
myConnection);
daDictionary.Fill( myDataSet, viewName);

What must be done to do it?

Regards
Krzysztof

Nov 15 '05 #2

<ciach>
How can I fill DataSet witch data from view?
Sample:
daDictionary = new OleDbDataAdapter("select * from " + viewName,
myConnection);
daDictionary.Fill( myDataSet, viewName);


did you open myConnection before you using it?

pozdrawiam

Przemek Sulikowski
ps. i dlaczego nie zapytales wczesniej na alt.pl.comp.lang.charp
Nov 15 '05 #3
Hi Selvin,

There is no need to open the connection before - Fill is smart enough to
open/close it if it is closed...

--
Miha Markic - DXSquad/RightHand .NET consulting & software development
miha at rthand com

Developer Express newsgroups are for peer-to-peer support.
For direct support from Developer Express, write to su*****@devexpress.com
Bug reports should be directed to: su*****@devexpress.com
Due to newsgroup guidelines, DX-Squad will not answer anonymous postings.

"Selvin" <selvin_nospam@nospam_osadkowski.com.pl> wrote in message
news:bq**********@news.onet.pl...
did you open myConnection before you using it?

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: yma | last post by:
Hi, I tried to use a listbox to display a column in MS Access 2000 nwind.mdb by using ole DataAdapter, Connection and dataset controls. But I got "It is already opened exclusively by another...
0
by: John Bailey | last post by:
I have a dataset with multiple data tables. I need to bind this to a wizard interface, where each portion of the wizard udates the information in one of the datatables. I am using formviews in...
1
by: cindy | last post by:
Get data into datatable, add to dataset dsSearch " Get data into datatable, add to dataset dsSearch Using In-Memory SQL Engine join the tables and select the filenames from the join, add to...
3
by: Gary | last post by:
I have a DataSet where two tables have a relation (the parent / child relationship is also successfully added to the DataSet Relations collection). I am looking for a way to programmatically...
11
by: scorpion53061 | last post by:
Well I had a way to write an array to an excel spreadsheet but on a huge time critical run it failed iwth the dreaded HRESULT: 0x800A03EC error. It worked fine when i sampled the data to go in but...
1
by: BobAchgill | last post by:
OK. I drag a Dataset over from the Toolbox and drop on the form... How do I get that dataset connected to my XML file? I know how to do this programmatically but how to do it in the form...
3
by: BartMan | last post by:
Greetings, I have a gridview which is sitting on a multi view control (witin a view), and it is bound to a dataset which I dynamically apply to the control within asp.net page. The problem is...
9
by: =?Utf-8?B?RGljaw==?= | last post by:
I have a function that creates a DataSet, populates its many DataTables and then returns the DataSet. I want to bind separate controls to each of the DataSet's DataTables, e.g. a separate...
7
by: =?Utf-8?B?ZG91Zw==?= | last post by:
Have loaded balanced web servers that we do not allow to connect to our database. Content is created and pushed to these sites. I want to add a web service that may get multiple requests a second...
4
by: John Sheppard | last post by:
Hello there, I was wondering if anyone knows if there is an easy way to import expressions into my typed dataset from the original view/sql statement For example if I drag a view from the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.