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

odbc datacomponent problems

I have used typed datasets by creating a Data Component (data.vb) by
creating a new component in a vb or asp/vb.net project, dragging data tables
onto the component, which generates the connection and adapters for me.
After getting everything set up the way I like it, I then tell it to
generate a dataset (let's call that ds.xsd) and place that on the component
as well. Then all I need to do is add the fill method, update method, etc
for the dataset in the code for the data component.

This always seemed to work well with Microsoft SQL Server, but now I am
doing it with mysql and I am very frustrated. I can drag the tables over
and I get odbc connection object and odbc data adapters. I can rapidly fix
the incorrect sql statements generated. This is not even the problem. I
can also generate the dataset - AFTER I go into each and every data adapter
and configure a table mapping.

But what happens quite often, is the Visual Studio IDE loses table mappings
and I have to REENTER all of them. Sometimes I have to delete the dataset
and renter all the table mappings and regenerate. And, once in a while,
I've even had to recreate the datacomponent and go through the whole thing
again!

This is cost me tons of time. I am trying to find a better way to get the
typed datasets and KEEP them, and if I need to make a change, I don't want
to have to blow it all away and reconfigure everything!

Any ideas or information appreciated.

Scott Emick
Nov 18 '05 #1
1 1050
"news.microsoft.com" <se****@ham.fox-international.com> wrote in message news:<eE**************@TK2MSFTNGP12.phx.gbl>...
I have used typed datasets by creating a Data Component (data.vb) by
creating a new component in a vb or asp/vb.net project, dragging data tables
onto the component, which generates the connection and adapters for me.
After getting everything set up the way I like it, I then tell it to
generate a dataset (let's call that ds.xsd) and place that on the component
as well. Then all I need to do is add the fill method, update method, etc
for the dataset in the code for the data component.

This always seemed to work well with Microsoft SQL Server, but now I am
doing it with mysql and I am very frustrated. I can drag the tables over
and I get odbc connection object and odbc data adapters. I can rapidly fix
the incorrect sql statements generated. This is not even the problem. I
can also generate the dataset - AFTER I go into each and every data adapter
and configure a table mapping.

But what happens quite often, is the Visual Studio IDE loses table mappings
and I have to REENTER all of them. Sometimes I have to delete the dataset
and renter all the table mappings and regenerate. And, once in a while,
I've even had to recreate the datacomponent and go through the whole thing
again!

This is cost me tons of time. I am trying to find a better way to get the
typed datasets and KEEP them, and if I need to make a change, I don't want
to have to blow it all away and reconfigure everything!

Any ideas or information appreciated.

Scott Emick

What I did here was eventually create some code to read all the tables
I want into a dataset (or at least get the schema) and then did a
writexmlschema to create an xsd file. (after setting the
MissingSchemaAction to AddWithKey) I then used the XSD.exe tool to
generate the typed dataset object.

Things are much more stable now, and I learned quite a bit.

Scott
Nov 18 '05 #2

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

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
1
by: rguti | last post by:
Anybody know when the new version of the ODBC Driver is gonna be out? I'm using 3.51.11-1, but I'm having problems transferring information from SQL Server. Thanks.
2
by: uli2003wien | last post by:
Dear group, we are dealing with some very specific problems with ODBC, where a connection from SQL-Server to Mysql works with ODBC-driver 3.51.10.00 and does NOT work with ODBC-driver...
3
by: Ian | last post by:
We are currently experiencing problems with our Access XP database. We are using access as the front-end and are connecting to Oracle 7.3 via ODBC. Our users are running Win 98 and Win Xp. We are...
0
by: Julia Baresch | last post by:
Everyone, I posted the message below back in February and didn't get any information. I also wasn't able to find any documentation in MS Help, web site, or other groups. I'm posting now with...
9
by: mcbill20 | last post by:
Hello all. I just installed Oracle 10g developer tools on a machine running XP Pro and Office XP. Before this I had just the Oracle 9 client installed. I the previous configuration, I was able to...
2
by: Crazy Cat | last post by:
Hi all, I am having trouble getting linked Oracle 9 server in MS SQL Server 2005 Express to work properly. My machine is running Windows XP. The Microsoft and Oracle OLE DB Providers have...
16
by: network-admin | last post by:
We have Problems with Access query on Oracle 10g Database with ODBC Connection. The Query_1 is such as select * from xtable where ycolumn <"S" Result = ODBC Faild...
8
by: Phil Reynolds | last post by:
We are using SQL Server as a back end to an Access front end on a LAN using ODBC linked tables. Users are periodically getting the "data has been changed by another user" error, and it's causing...
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
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.