1.How to enter same record twice in target table? give me syntax. A)To insert a same record in to the target table twice, use the fill method of dataadapter twice and update the dataset add the following lines of code
sqlconnection cn = new sqlconnection("ur connection string"); Sqldataadapter da= new sqldataadapter("select * from sometable",cn); sqlcommandbuilder cmb = new sqlcommandbuilder(da); dataset ds= new dataset(); da.fill(ds,"sometable"); ds.tables[0].constraints.add("usr_pk",ds.tables[0].columns[0],true); datarow row; row=ds.tables[0].newrow(); for(int i=o;i<2;i++) {i++; row[0]=value; ds.tables[0].rows.add(row); da.update(ds.tables[0]);