Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding records to MySQL
Message
De
03/06/2007 12:01:00
 
 
À
02/06/2007 04:45:31
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01229939
Message ID:
01230041
Vues:
21
Stuart,

I don't use MySQL and I don't use the CommandBuilder, but a Google on your error message turned up this:

http://forums.devshed.com/net-development-87/update-datasaet-to-mysql-84331.html

He says:
ADO.Net makes heavy use of the schema information of your database and i guess your MySQL driver (or mysql itself) doesn't support returning enough information to generate the dynamic INSERT/UPDATE/DELETE statement called/generated by the DataSet.

IMHO you need to generate your sql statements by yourself (if you stick to using MySQL - or try another provider if there's one...)


The poster in this following link shows how to get some schema information and it solved his problem (but I don't know if he was using MySql or not) ... so check it out:

http://discuss.develop.com/archives/wa.exe?A2=ind0110d&L=dotnet&P=39101

Hopefully it will help. =0)

~~Bonnie



>Hi
>I am once again having a go at using MySQL as a back end. I can now query MySQL but I cannot add a record. It fails at
>
>IDbCommand cb = this.CommandBuilder.GetInsertCommand();
>
>
>And I get the error
>
>
>Dynamic SQL generation is not supported against a SelectCommand that does not return any base table
>
>
>Any ideas?
>
>THANKS
>
>Stuart
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform