473,763 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Errors encountered generating datasets.

Hello:

I am working with VB.Net and Oracle 10g database on a Windows 20043 server.

I added a OleDBConnection to a form, configured the connection strings. And,
I added a OleDBDataAdapte r and configured that o point to a single table with
the statement, "Select * from Customer". I Then created a dataset and
accepted the suggested dataset name dataset2.

I then dropped a Wingrid on the form and when I looked at the code, the
following two lines have been identified as wrong:

Me.DataSet21 = New test.DataSet2
and
Protected WithEvents DataSet21 As test.DataSet2

I do see an xsd file, DataSet2.xsd in my project.

What am I doing wrong?

Thanks for your help.

Venki

Nov 21 '05 #1
4 922
Venki,

If you rightclick on the icon of the dataadapter than you see "generate
dataset".

That creates a class (a vbnet file) for you. (you see them when you unhide
in top the files using the icon in top of the solution explorer)

Did you know that Oracle has its own provider those give you more
performance

I hope this helps,

Cor

"vvenk" <vv***@discussi ons.microsoft.c om> schreef in bericht
news:25******** *************** ***********@mic rosoft.com...
Hello:

I am working with VB.Net and Oracle 10g database on a Windows 20043
server.

I added a OleDBConnection to a form, configured the connection strings.
And,
I added a OleDBDataAdapte r and configured that o point to a single table
with
the statement, "Select * from Customer". I Then created a dataset and
accepted the suggested dataset name dataset2.

I then dropped a Wingrid on the form and when I looked at the code, the
following two lines have been identified as wrong:

Me.DataSet21 = New test.DataSet2
and
Protected WithEvents DataSet21 As test.DataSet2

I do see an xsd file, DataSet2.xsd in my project.

What am I doing wrong?

Thanks for your help.

Venki

Nov 21 '05 #2
Cor:

That's exactly what I did; right-click on the data adapter to create the
dataset.

Since I was stumped, I created a new solution and it did not happen in that!

Venkat

"Cor Ligthert [MVP]" wrote:
Venki,

If you rightclick on the icon of the dataadapter than you see "generate
dataset".

That creates a class (a vbnet file) for you. (you see them when you unhide
in top the files using the icon in top of the solution explorer)

Did you know that Oracle has its own provider those give you more
performance

I hope this helps,

Cor

"vvenk" <vv***@discussi ons.microsoft.c om> schreef in bericht
news:25******** *************** ***********@mic rosoft.com...
Hello:

I am working with VB.Net and Oracle 10g database on a Windows 20043
server.

I added a OleDBConnection to a form, configured the connection strings.
And,
I added a OleDBDataAdapte r and configured that o point to a single table
with
the statement, "Select * from Customer". I Then created a dataset and
accepted the suggested dataset name dataset2.

I then dropped a Wingrid on the form and when I looked at the code, the
following two lines have been identified as wrong:

Me.DataSet21 = New test.DataSet2
and
Protected WithEvents DataSet21 As test.DataSet2

I do see an xsd file, DataSet2.xsd in my project.

What am I doing wrong?

Thanks for your help.

Venki


Nov 21 '05 #3
Venki,

And do you see that dataset.vb file now in solution explorere?

You can open it, it is just a class. (I assume that you are using Net 1.x by
the way in Net 2.0 it is a little bit different).

Cor
Nov 21 '05 #4
Cor:

Yes; I don't know what went wrong with the other solution. But I am all set
now. Thanks for your help.

Venki

"Cor Ligthert [MVP]" wrote:
Venki,

And do you see that dataset.vb file now in solution explorere?

You can open it, it is just a class. (I assume that you are using Net 1.x by
the way in Net 2.0 it is a little bit different).

Cor

Nov 21 '05 #5

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

Similar topics

0
2226
by: linda | last post by:
I can use GD::Graph to generate a graph with two-axes by using two datasets and generate a stacked bar chart by using multiple datasets now. However, I want to generate a mixed-type graph which contains a stacked bar chart and a linespoints chart. Is this possible for me to generate the stacked bar chart by setting 'cumulate' option against the left axis and to generate the linespoints charts against the right axis simultaneously? ...
1
1531
by: Jack Notarangelo | last post by:
Hello, I am interested in anyone's preference as to creating datasets in code vs generating them using the UI. I know typing is an advantage of the latter method. But any other information would be welcome. Thanks in advance! Jack
10
2346
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a similar name to the table. Rather than making a long Select Case that could become obsolete if lookup tables are added and the source table of the ListBox is edited I came up with this code.) This code works but of course it gives me build...
4
1739
by: Aaron W. LaFramboise | last post by:
I'm seeking a solution to my C++-life long dilemma of how to deal with errors when exceptions aren't appropriate. Below I highlight two error cases, which mainly occur when trying to handle "unexpected" errors on system interfaces. I am an experienced modern C++ programmer, and I'm mainly interested in the case where the error is in a generic, reusable component where invasive control over the user is unacceptable. Case 1: An error...
10
1965
by: Al Christoph | last post by:
Please forgive me if this is the wrong place to post this. The last place I posted got me a fairly rude response. I guess vb.db people just don't want to think about XML as database. At any rate, here is what I posted: I have downloaded the final production version of VS 2005 pro after testing with Team version. I wonder if I've been screwed or if it's just too early on a Sunday morning. It seems to me that it was relatively trivial to...
4
6403
by: Brice Avila | last post by:
Hello, IHAC running DB2 7.1.1.93 on Solaris 8. When he tried restoring this instance from a different server (alternate client restore) he encountered: db2 => restore database dumbunny load /usr/openv/netbackup/bin/nbdb2.so open 1 sessions taken at 20041022181323 buffer 1024 replace existing without prompting
0
3169
by: Andrew Dowding | last post by:
Hi Everybody, I have been looking at problems with my Windows Forms C# application and it's little Jet 4 (Access) database for the last few days. The Windows Forms app implements a facade and implementation, data abstraction layer. But because each data adapter in the implementation layer has a connection object that opens and closes as needed, I found I got several errors from the Jet engine when there were simultaneous connections to...
4
1340
by: MadCrazyNewbie | last post by:
Hey Group, Please bare with me ehile I try and explain, i think i maybe on the wrong track but this is driving me crazy now:( I have the following code: Private Sub frmMainMenuPasswords_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load odcPasswordLists.ConnectionString = Connection.String
3
10283
by: sklett | last post by:
This BUG that is so ridiculous I can't believe they shipped 05 is making my life hell. I have tried the various solutions found on the web and none of them have worked thus far. What's even more troublesome is that it appears that 05 uses these new partial classes which would makes rolling back to 03 not possible. The error I get when trying to load my Form in the designer is as follows:...
4
1445
by: S Chapman | last post by:
Is there any tool that generates Typed DataTables rather than Typed Datasets? The trouble we are having is we have quite a few tables in our database and a single table can be a part of more than one dataset. If we use the XSD.Exe, the datatable definitions are repeated in every dataset they appear in; causing our data definition layer to bloat. Let us say there is a database table called Account which appears in two dataset definitions...
0
9566
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9389
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10149
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10003
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8825
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6643
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5271
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5410
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3918
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 we have to send another system

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.