Didn't have / Had not
Hello, I have a one question.
1. I didn't have enough money.
2. I had not enough money.
Have these two sentensces the same meaning? Or is the second sentence grammatically wrong? When if the meaning of two sentences same, what is the difference?
Thank you!

