I am a novice vb programmer. I am sure it's simple but I can't get it right.
Value of type 'String' cannot be converted to 'SQLCommand'
It is the error.
Public Sub InsertPackageDetails(ByVal PackageName As String, ByVal PackageDescription As String, ByVal DateOfInstallation As DateTime, ByVal ImportPackageStatus As String)
Dim SQL As String = "Insert into PackageInstallation(PackageName,PackageDescription,DateOfInstallation,ImportPackageStatus) values('" + PackageName + "','" + PackageDescription + "','" + DateOfInstallation + "'," + ImportPackageStatus + ") "
DBHelper2.ExecuteNonQuery(SQL)
End Sub
How can I convert SQL which is the string to SQLCommand? I appreciate the help.