473,670 Members | 2,405 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data Connections Wizard

Hi All,

I used the data connections wizard to automatically
create the connections, data adapters and then data
set to contain the date from my database. The typed
dataset that is created is placed in a class on its own,
however the resulting objects are created with Friend
scope in the main form.

I would like to use the data stored in these objects in
other forms I will require in my application, to hold lists
of options in combo boxes, etc.

Does anyone have any suggestions as to how I should
declare these variables, or indeed, redfine them so that
I can call them without getting a NullReference
excpetion when trying to access the dataset on another
form?

Many thanks,

Jason.
Nov 20 '05 #1
2 860
Jason,

By the wizard created strongly typed dataset helps you in standard
situations when you are using it to display information. So very good
usable, however I do not know a MSDN samples where it is used for updating a
database or/and more of that stuff.

So make your choise use the wizard and keep you on the situations where for
it is created, make your own strongly typed datasets by hand or use untyped
datasets.

Just my opinion.

Cor
Nov 20 '05 #2
Hi Cor,

thanks for the info. I am using a control that works best
then the DS is generated with the Wizard so I would
like to stick with it until I have figured out how to use
the 3rd party control from code.

Thanks,

Jason.

On Mon, 26 Jul 2004 12:06:37 +0200, "Cor Ligthert"
<no**********@p lanet.nl> wrote:
Jason,

By the wizard created strongly typed dataset helps you in standard
situations when you are using it to display information. So very good
usable, however I do not know a MSDN samples where it is used for updating a
database or/and more of that stuff.

So make your choise use the wizard and keep you on the situations where for
it is created, make your own strongly typed datasets by hand or use untyped
datasets.

Just my opinion.

Cor


Nov 20 '05 #3

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

Similar topics

5
14395
by: charlies224 | last post by:
Hi, I am using SQL 2000 and has a table that contains more than 2 million rows of data (and growing). Right now, I have encountered 2 problems: 1) Sometimes, when I try to query against this table, I would get sql command time out. Hence, I did more testing with Query Analyser and to find out that the same queries would not always take about the same time to be executed. Could anyone please tell me what would affect the speed of the...
1
10508
by: Alex | last post by:
Hi all, I've seen this noted in many posts, but nothing I've checked out gives me any clue on how to do this. Basically as my topic says, I have a DTS and I simply need to export some data from a table in MS SQL 2000 to an Excel spreadsheet. I also need to automate this process so it can run nightly and each new day a new spreadsheet will be on a network share for us to pick-up.
0
927
by: Curt tabor | last post by:
The toolbox seems to missing a lot of data components that were in VS 2002. In VS 2005, there are a lot of new things like datasources and views that get data on a form quickly, but connections and data adapters are gone and so it seems are thier wizards. Why was this done? Is there anyway to get a wizard to configure a dbconnecction or data adapter in VS 2005? Curt
5
2873
by: rogsonl | last post by:
My computer was moved last week, and the company changed the network groups we work on. As a result, one of the main benefits from Whidbey (database connectivity) no longer works. Situation: 1. I open a new project based on a windows form 2. I click on "data" and then "Add New Data Source" then I click on next within the wizard 3. I have 3 choices Database, Local Database, Web service and Object. 4. I choose Database, click next and get...
2
1834
by: Crazy Cat | last post by:
I have an Excel add-in that connects to a SQL Server Express 2005 database. I've decided to create a configuration piece for this add-in in Visual Studio 2005 Express. I added a data connection using the data connection wizard and all appeared to go well. Anyways when I attempt to open SQL Server Express to administer the database, it was corrupted and I had to restore it. I eventually got it to work correctly (I'm pretty sure I followed...
0
4672
by: Macca | last post by:
Hi, I am writing an asychronous socket server to handle 20+ simulataneous connections. I have used the example in MSDN as a base. The code is shown at end of question. Each connection has a number of different types of data coming in. I have a databuffer for each type of data coming in.
3
1897
by: ebrastow | last post by:
Hi folks, I'm a VB newbie - been using PowerBuilder for 12 years and thought I'd see how Visual Basic has come along these days. I'm using MS Visual Studio 2005 Professional, trying to connect to a SQL Server 2000 Standard (SP4) database on another machine. For weeks, whenever I've had time to try this, I have gone through the "Add New Data Source..." wizard, filled in all of the information
0
7160
by: JP | last post by:
Hello: I am using VB 6.0 with a Windows XP Professional environment. I am also using Access 2000. I am currently building a program and need reporting capabilities. So, I started a Data Project (first time I've ever used it so it's already a "mystery"). I clicked on DataEnvironment1 and showed the object. Then I added a connection. Used the wizard and under: Provider I Selected Microsoft Jet 4.0 OLE DB Provider
8
3071
by: Brock | last post by:
I am trying to populate a Crystal Report from data in my DataGrid. The reason for this is that I want the user to be able to change values without updating the database, but still have their report reflect the values they anticipate committing to see hypothetical totals of columns from a set of records. These records are displaying properly on my DataGrid but I'm not sure how to get Crystal Reports 10 to use as its datasource the dataset...
0
8466
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
8901
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
8813
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
7412
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...
1
6212
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5683
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();...
1
2799
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
2
2037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1791
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.