Database setup : Unable to connect to database error 49153

Hello Everyone, I am currently learning Sage 300 2019.

I did install all the software and setup the database as seen on the textbook Using Sage 300 by 2017 Christine A. Heaney.

After I setup the database in SQL Server Management Studio, for two database OMNDAT and OMSYS, I started to setup database. However, I keep getting "Unable to connect to database error 49153".

Can anyone help me out?

Thank you in advance.