I’m getting String or binary data would be truncated error when, I’m trying to execute
Insert into Student_info (StudentId,FirstName,LastName,DOB,StudentAddress,StudentEmail,StudentMobile)
(Select StudentId,FirstName,LastName,DOB,Address,EmailId,Mobile from Student_temp where StudentId='" & studentid & "')
Table structure of Student_Temp

Table structure of Student_Info

Need Help !!
This error is reported by SQL Server when you try and insert string or binary data into a column which doesn’t have enough width to hold it, e.g.
At a guess, it is because your
Student_info.StudentMobileisvarchar(10)whereasStudent_temp.Mobile is varchar(50)