I know that there is another question with nearly the same title, but it doesn\'t answer my question.
I have a stored procedure, which returns the unique identifier after in
I solved the problem:
you have to set SqlCommand.CommandType to CommandType.StoredProcedure in order to get return values and/or output parameters. I haven't found any documentation about that, but now everything works.