Sch_Date SJ (Facultycode)
25/2/2013 ARPA / MFA (Coursename)
i want to save in the database as follows;
Sch_Date Facultycode Coursename
25/2/2013 SJ ARPA
25/2/2013 SJ MFA
Save code as follows;
sql = "insert into Tb_SCh_TIme_Table([Sch_Date], [Course],[Faculty_Code])" + " values ('" + Convert.ToDateTime(datagridView.Rows[i].Cells[0].Value.ToString()) + "', '" + datagridView[j, i].Value.ToString() + " / " + datagridView[j,i].Value.ToString () + "','" + datagridView.Columns[j].HeaderText.ToString() + "')";
using the above code to save in database,
in database save as follows;
Sch_Date Facultycode Coursename
25/2/2013 SJ ARPA / MFA
but i want the ouput as follows
Sch_Date Facultycode Coursename
25/2/2013 SJ ARPA
25/2/2013 SJ MFA
please help me how can i do using csharp.
Note it is windows application.