Hi there, I am trying to insert some data into a database table and am getting an error which says "String or binary data would be truncated. The statement has been terminated. "This error occurs at the ExecuteNonQuery Line 2nd last line.What is the problem here pls help. Dim insertCommand As SqlCommand
Dim strConnection As String = "Data Source=cccc;Initial Catalog=Bccc;Integrated Security=True"
Dim objConnection As New SqlConnection(strConnection)
Dim strRate As String = "INSERT INTO tblTable(FkPId,RateType) VALUES (@PId,@Rate)"
insertCommand = New SqlCommand(strRate, objConnection)
objConnection.Open()
insertCommand.Parameters.A ...
Go to the complete details ...