ne rabotaet metod Fill() MySqlDataAdapter-a..

ghenadie
Дата: 23.03.2006 11:10:50
Dobrii den'!

ne rabotaet metod Fill() MySqlDataAdapter-a..

imeetsia string mySQLScript cotoromu prisvaevaetsia ogromneishii mySql script
vipolniaiu snachala:
FunctionsUtils.mysqlDataAdapter.SelectCommand = new MySql.Data.MySqlClient.MySqlCommand(mySQLScript,FunctionsUtils.mysqlConn);

(gde: mysqlDataAdapter public static MySqlDataAdapter peremenaia, mysqlConn - public static MySqlConnection peremenaia)

kogda pitaius' vipolnit' metod Fill() to vidaiot kriticheskoe soobshenietipa :
" An unhandled exception of type 'MySql.Data.MySqlClient.MySqlException' occurred in system.data.dll
Additional information: There is already an open DataReader associated with this Connection which must be closed first."

Esli peremenoi mySQLScript prisvaivaiu prosteishii my sql script to vsio rabotaet bez oshibok.

Podskajite pojaluista gde problema?
Spasibo!