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....?
Problem In SqlDataAdapter
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.


anand sengar29 reputationPosted Jun 7, 2011, 11:58 PM EDT
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
Smart LuckyRank #2,625 · 531 reputationPosted Jun 8, 2011, 4:03 AM EDT
I refer this tutorial
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.updatecommand.aspx
anand sengar29 reputationPosted Jun 8, 2011, 4:21 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Jun 8, 2011, 5:03 PM EDT