Hi All,
iam using Button Control When User Click the Button only Records is Erase in Table in the Below My Script where iam doing Wrong Let me Know.
sql connction con = new sql connction ("Data Source=sys2;Initial Catalog=MuraliIIT;User ID=sa;Password=rits@1234");
string s = "Truncate Table TableName";
sqladapter da = new sql Adapter(s,con);
Dataset ds = new Dataset ();
da.fill(ds,"TableName");
string s = "Truncate Table TableName";
sqladapter da = new sql Adapter(s,con);
Dataset ds = new Dataset ();
da.fill(ds,"TableName");

Manoj BhoirPosted Jun 5, 2015, 1:20 PM
string s = "Truncate Table TableName";
Com.ExecuteNonQuery();
Pankaj Kumar ChoudharyPosted Jun 5, 2015, 12:23 PM
Com.ExecuteNonQuery();
Rajkiran SwainPosted Jun 5, 2015, 9:46 AM
Jitendra KumarPosted Jun 5, 2015, 6:16 AM
If you are running your code against a sqlserver database then
use this command