A
Alexander Ovchinnikov
Hello All!
I have some problem with Yes/No field in MS Access.
In WebService I create DataSet and return it client like next:
DataSet ds = new DataSet( );
daContentList = new OdbcDataAdapter( mysection.SelectRequest,
( string )ConfigurationSettings.AppSettings[ "ConnectionString" ]
);
OdbcCommandBuilder cbContentList = new OdbcCommandBuilder(
daContentList );
if( mysection.TableName.Equals( string.Empty ) ){
daContentList.FillSchema( ds, SchemaType.Source, sName );
daContentList.Fill( ds, sName );
}else{
daContentList.FillSchema( ds, SchemaType.Source, mysection.TableName
);
daContentList.Fill( ds, mysection.TableName );
}
ds.DataSetName = sName;
return ds;
The code worked perfectly but Schema is incorrect in some places for
example for all xs:string, xs:int alements schema allowed
minOccurs="0" and for all bit fields xs:boolean minOccurs="1". This
behaviour is incorrect cause I have some mondatory Text fields and all
bit fields are optional
What's wrong with my schema for dataset?
Thanks Alex
I have some problem with Yes/No field in MS Access.
In WebService I create DataSet and return it client like next:
DataSet ds = new DataSet( );
daContentList = new OdbcDataAdapter( mysection.SelectRequest,
( string )ConfigurationSettings.AppSettings[ "ConnectionString" ]
);
OdbcCommandBuilder cbContentList = new OdbcCommandBuilder(
daContentList );
if( mysection.TableName.Equals( string.Empty ) ){
daContentList.FillSchema( ds, SchemaType.Source, sName );
daContentList.Fill( ds, sName );
}else{
daContentList.FillSchema( ds, SchemaType.Source, mysection.TableName
);
daContentList.Fill( ds, mysection.TableName );
}
ds.DataSetName = sName;
return ds;
The code worked perfectly but Schema is incorrect in some places for
example for all xs:string, xs:int alements schema allowed
minOccurs="0" and for all bit fields xs:boolean minOccurs="1". This
behaviour is incorrect cause I have some mondatory Text fields and all
bit fields are optional
What's wrong with my schema for dataset?
Thanks Alex