473,322 Members | 1,408 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,322 software developers and data experts.

Dataset to database.

Hi I am using a dataset to display my information to a user, however
my dataset is in no way matching all of the fields and columns of my
ms sql database, I fairly extensively modify the data so that the user
can understand it from the raw table.

My question is there some sort of mapping interface that I can use for
these cast and sometimes complete conversions between my dataset table
data and the database. I was hoping there was a more automatic way to
go about it with all the update and insert features of the dataset
then having to write up string sql statements that have the
information.

Is there a better form item to be using? Or any suggestions?

Thank you, Craig.
Nov 16 '05 #1
2 4776
Craig,

You might be able to use table mappings in this situation. Check out
the section of the .NET framework documentation titled "Table Mapping in
Data Adapters", located at (watch for line wrap):

http://search.microsoft.com/search/r...=&qn=&c=10&s=1

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Craig" <sa*****@hotmail.com> wrote in message
news:35**************************@posting.google.c om...
Hi I am using a dataset to display my information to a user, however
my dataset is in no way matching all of the fields and columns of my
ms sql database, I fairly extensively modify the data so that the user
can understand it from the raw table.

My question is there some sort of mapping interface that I can use for
these cast and sometimes complete conversions between my dataset table
data and the database. I was hoping there was a more automatic way to
go about it with all the update and insert features of the dataset
then having to write up string sql statements that have the
information.

Is there a better form item to be using? Or any suggestions?

Thank you, Craig.

Nov 16 '05 #2
Oops, wrong link. Here is the right one:

http://msdn.microsoft.com/library/de...taadapters.asp
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Craig" <sa*****@hotmail.com> wrote in message
news:35**************************@posting.google.c om...
Hi I am using a dataset to display my information to a user, however
my dataset is in no way matching all of the fields and columns of my
ms sql database, I fairly extensively modify the data so that the user
can understand it from the raw table.

My question is there some sort of mapping interface that I can use for
these cast and sometimes complete conversions between my dataset table
data and the database. I was hoping there was a more automatic way to
go about it with all the update and insert features of the dataset
then having to write up string sql statements that have the
information.

Is there a better form item to be using? Or any suggestions?

Thank you, Craig.

Nov 16 '05 #3

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

Similar topics

40
by: Peter Row | last post by:
Hi all, Here is my problem: I have a SQL Server 2000 DB with various NVarChar, NText fields in its tables. For some stupid reason the data was inserted into these fields in UTF8 encoding. ...
4
by: Frnak McKenney | last post by:
I'm using an in-core DataSet as an image of my application's 'database' (a multi-table Access97 mdb file). Updates are made to the DataTables within the DataSet via forms with bound TextBoxes,...
5
by: Grant | last post by:
Hello, How come when I add a new row to my dataset table it shows up as changed (agencyData.Haschanges() = True) but when I delete a row the dataset thinks here are no...
1
by: Mike Hnatt | last post by:
I'm baffled. My data store (database) is not updating with a refreshed dataset. Here's what is going on: 1) Create a dataset from a table in a database. 2) Create a copy of this dataset and...
1
by: Asha | last post by:
greetings, i've manually created a dataset which contains data input from users. i validate the dataset against the business logic and once everything is done, i would like to save the values in...
1
by: Arpan | last post by:
The following ASPX code snippet creates a DataSet programmatically right from the scratch: 'create an empty DataSet Dim objDS As New DataSet("MyDataSet") 'create a new table & add columns Dim...
22
by: EMW | last post by:
Hi, I managed to create a SQL server database and a table in it. The table is empty and that brings me to my next chalenge: How can I get the info in the table in the dataset to go in an empty...
2
by: Carl Summers | last post by:
I have a table in an Access database that has no sort applied in Access. When I fill a dataset with data from that table (the entire one dimensional table) my dataset is sorted differently than...
9
by: Mr Newbie | last post by:
HI People, Thanks to all who helped me earlier on the subject of @@IDentity. However, I seem to have hit another snagette! My DataSet contains two tables from the SQL Server. lets say Master...
3
by: Ken Fine | last post by:
This is a question that someone familiar with ASP.NET and ADO.NET DataSets and DataTables should be able to answer fairly easily. The basic question is how I can efficiently match data from one...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.