Related to ADO.Net
How to pass SQL query into data adapter
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pravin MorePosted Sep 23, 2011, 1:27 AM
Do like this,
SqlConnection con=new SqlConnection();
con.Open();
SqlDataAdapter adpt=new SqlDataAdapter("Select * from TableName ",con);
DataTable dt=new DataTable();
adpt.Fill(dt);
hope this will work for you.
Thanx,
Pravin.