You have to supply the Sql Statement or Stored Procedure for the DataAdapter as
VB.NET
da.SelectCommand.CommandText = 'Select * from '
or
da = new SqlDataAdapter ('Select * from ', cn)
C#
da.SelectCommand.CommandText ='Select * from ';
or
da = new SqlDataAdapter ('Select * from ', cn);
Share with