Code:1
string Query="Select * from Employee";
SqlCommand cmd=new SqlCommand(Query,con);
SqlDataAdapter da=new SqlDataAdapter(cmd);
da.Fill(ds)//DataSet
Code:2
string Query="Select * from Employee";
SqlDataAdapter da=new SqlDataAdapter(Query,con);
da.Fill(ds)
Anyone please explain the difference between the above two set of codes ?