Posts Tagged ‘datasets’

DataSets, TableAdapters, and Transient Retry Logic For SqlAzure

ppl-men-055The main project I’m working on these days is moving several web sites to Azure.  It is something I’ve wanted to be able to try for a while.  I’m working with several other agencies on this project and some Microsoft consultants so there is some good guidance along the way.

One of the things I wasn’t aware of until yesterday is that SqlAzure can shut down in the middle of your code trying to access it.  Actually, this could happen on any SQL server, but it happens frequently enough under Azure that we need to code for it.

Enter the Transient Conditions Handling Framework.

There has been a lot written about how to use this, and I don’t plan on covering that material yet again.  The particular issue we ran up against is that our code uses the standard DataSet/TableAdapter framework that MS gave us long ago.

Read the rest of this entry »

One Form with Multiple Tables

B01I0093 I received the following question a few days ago:

“I am trying to use three tables from the same dataset in one form that I am creating in vs.net winforms my problem I guess is the setup of it as I can get them all on the form but cant get them to all post to the separate tables when I click save I am using a mysql database with the Mysql connector not the obdc can this even be done?”

Frustrating, isn’t it?  .NET makes some things SO easy, and then when it isn’t you figure you must have done something wrong.

The good news is, your problem probably has nothing to do with using mySQL–it is all in how you are using the database stuff in WinForms.

Read the rest of this entry »

Silverlight – Databinding to a Web Service

misc_vol1_049 In the last several posts, I’ve demonstrated various ways of getting data onto the screen.  What I’ve purposely omitted up until this point is how to update this information.

So let’s start by going back to the demo we created in Febuary.

What we ended up with is an application that would display the First name and the last name out of the Person class.

What we want to do today is to update the code so that the person class gets its data from a database on the server using a web service.  So the first thing we’ll want to do is create a web service.

Read the rest of this entry »

Silverlight, Web Services and Datasets

G05B0037 I sat down today to learn about using Silverlight and Dataset from a Web Service.  Something you’d think would be rather trivial.

I mean, seriously folks.  We use Datasets as a means of transporting data up and down the tiers of just about everything we do in .NET.  It would stand to reason that using DataSets as our transport mechanism in Silverlight would be a given.

Read the rest of this entry »

Using DataSets to Process XML

I started a project recently that requires me to process an XML file from Google. Being the lazy sort, I’d really rather just use the data as though it were part of a database and forget that it was ever XML. So I’m using a method in the DataSet class that I’m finding is rather obscure. ReadXml().

Read the rest of this entry »

Bear