Usually, we see the following sentence:
Hello Eric, could you please tell me why you are here?
But I am wondering if this one is ok too:
Hello, Eric, could you please tell me why you are here?
Why is it ungrammatical or grammatical? Could you explain?