473,376 Members | 1,043 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,376 software developers and data experts.

Is there easier way to regenerate a dataset in VS.NET?

Hello,

Thanks for reviewing my question. I would like to know if there is an easier way to regenerate your dataset in VS.NET when your database schema changes. I am frequently add or remove fields in my database and then on the VS.NET C# windows form side, I delete the dataset, the dataadapeter and the sqlconnection. Deleting just the dataset doesn't work - generating it from the dataadapeter creates a dataset with the old schema. Is there an easier way than deleting those 3 objects?

Many Thanks to the Expert
Peter
Nov 16 '05 #1
1 2672
Hi
What you are using here is what is known as typed dataset . the idea of
the typed dataset depend manly on knowing the realational structure of the
database beforehand ( at design time). this way you can simply refer to the
table by there name . If you are using that then by design you have to
change that at design every time you change your database schema.
Whoever , if you are using normal dataset ( typed is a subset , they
inherit form l dataset class ) you can simply use the InferXmlSchema()
function with load the schema of the dataset from an xml file . Although
this association happens at runtime, still you have to change that file
every time you change your database. Anther thing you can do however, is to
work with dataset without worrying about the schema, this can also be done
so it wouldn't matter what structure your database has.
hope that helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

Nov 16 '05 #2

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

Similar topics

1
by: Derek Fountain | last post by:
I have a script that has confirmed a user's login credentials and wants to move onward. I want to regenerate the session ID, so I have code something like this: $_SESSION = array(); //...
1
by: Tom Gao | last post by:
is there anyway to regenerate resource files in a project ? my resource files gets muddled sometimes and dataset disappears from the designer Thanks Tom
0
by: Peter | last post by:
Hello, Thanks for reviewing my question. I would like to know if there is an easier way to regenerate your dataset in VS.NET when your database schema changes. I am frequently add or remove...
0
by: PiotrO | last post by:
hello everybody, i'm posting this problem because i spent a few hours on reading forums, newsgroups, tutorials and others but i still dont know how to solve my problem. It concerns displaying...
1
by: Li Pang | last post by:
The process is to replace manual operations: 1. open a test.xml with Excel 2. save to a test.xls file Thanks in advance
13
by: dm1608 | last post by:
I know all the hype right now from Microsoft is how much easier, faster, and less code ASP.NET 2.0 provides over previous versions. I'm puzzled by this as I could turn out an classic ASP webpage...
0
by: John Dalberg | last post by:
I use VS 2005 to generate a dataaset (xsd and related files). During development, I modify the underlying schema a lot and it's time consuming everytime I make a change, I go through the process of...
7
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I'm not sure whether I'm missing something or not. I reviewed the SQL Statements generated by tableadapter when the selectcommand is select *. It seems they are extremely bad. The updatecommand...
3
by: readnlearn | last post by:
hii everyone can any one please tell me how to display a image after 3 time wrong entering of password or user name.... am using captcha but cannt display in the same page.... please help mee
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.