R
rodchar
hey all,
here's a snippet from my datalayer class:
da.MissingSchemaAction = MissingSchemaAction.AddWithKey;
da.Fill(ds);
dts = ds.Tables;
i was just wondering if the following is possible.
my problem is when the Fill returns no tables because much of the code was
designed to see at least one table. and i guess i could go around the code
checking for an empty table but i'd like to please get some other possible
ideas if i may.
such as, is it possible in sql side to return an empty row with the schema
thru a select statement or something?
or is there a way on the c# side to create the table and a blank row with
the schema seeing as the dataset is untyped?
i just would like to know if i can get a table with a blank row of the
schema if the .Fill method returns no tables.
thanks for any suggestions,
rodchar
here's a snippet from my datalayer class:
da.MissingSchemaAction = MissingSchemaAction.AddWithKey;
da.Fill(ds);
dts = ds.Tables;
i was just wondering if the following is possible.
my problem is when the Fill returns no tables because much of the code was
designed to see at least one table. and i guess i could go around the code
checking for an empty table but i'd like to please get some other possible
ideas if i may.
such as, is it possible in sql side to return an empty row with the schema
thru a select statement or something?
or is there a way on the c# side to create the table and a blank row with
the schema seeing as the dataset is untyped?
i just would like to know if i can get a table with a blank row of the
schema if the .Fill method returns no tables.
thanks for any suggestions,
rodchar