hi
Any one can help me
I use SqlDataAdapter and it has some built in properties like updatecommand, selectcommand, deletecommand,insertcommand and i have also try to use theme but problem is that, these propeties are run successfully but database is not chaged can any one help mee....?
Loading

Sam HobbsPosted Jun 8, 2011, 9:03 PM
anand sengarPosted Jun 8, 2011, 8:21 AM
Smart LuckyPosted Jun 8, 2011, 8:03 AM
I refer this tutorial
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.updatecommand.aspx
anand sengarPosted Jun 8, 2011, 3:58 AM
why you are not using SqlDataAdapter adapter = new SqlDataAdapter(cmd); insted of adapter.SelectCommand = cmd;.
Try it once i think this is the good way.
Anand