DataAdapter SelectCommand is NULL!!

  • Thread starter Thread starter Leon_Amirreza
  • Start date Start date
L

Leon_Amirreza

this piece of code generate run time error "object reference not set to an
instance" :

SqlAdapter sqla = new SqlAdapter;
sqla.SelectCommand.CommandTimeout = 60;

SelectCommand is null, but when i check the dataset in the designer it has a
select command (actually adapter and table are created by by dragging the
table from server explorer to the dataset).
 
Back
Top