I am trying to update SQL Server Agent schedules using msdb.dbo.sp_update_schedule, but when I try to call the stored procedure from code I get exceptions.
System.Data.OleDb.OleDbException: Error converting data type int to tinyint.
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
How can I convert a value to a tinyint?
I have tried
MyParameter.DbType = System.Data.DbType.
but there is no TinyInt available.