You have done...
sql = "insert into Tb_Faculty_Schedule_Timetable [Name],[Mobile No],[Message];
sql = sql + " values ( '" + (DGV_Fac_SMS.Rows[i].Cells[0].Value.ToString()) + "','" + (DGV_Fac_SMS.Rows[i].Cells[1].Value.ToString()) + "','" + (DGV_Fac_SMS.Rows[i].Cells[2].Value.ToString()) + "')";
-> In first line of code, you missed a quote at last before semicolon as said by
@Jegan Thiyagesan.
So, it should become...
sql = "insert into Tb_Faculty_Schedule_Timetable [Name],[Mobile No],[Message]";
sql = sql + " values ( '" + (DGV_Fac_SMS.Rows[i].Cells[0].Value.ToString()) + "', '" + (DGV_Fac_SMS.Rows[i].Cells[1].Value.ToString()) + "','" + (DGV_Fac_SMS.Rows[i].Cells[2].Value.ToString()) + "')";
Correct and let us know it helped or not.
Thanks...