sqlcon.Open(); SqlCommand sqlcmd = new SqlCommand("select * from tablename", sqlcon); sqlcmd.CommandType = CommandType.StoredProcedure; sqlcmd.CommandText = "select * from tablename"; sqladp.SelectCommand = sqlcmd; sqladp.Fill(ds);
Mark as Answer if its helpful to you Kumaraspcode2009@gmail.com
Thank you for posting at Dotnetfunda [Administrator]
Login to post response