exec DYNAMICS.[dbo].[smGetNextNoteIndex] @I_sCompanyID, 1, @O_mNoteIndex output, @O_iErrorState output
Again, note much of an explanation along with this, I'm just blogging this stored procedure call so I don't lose it.