Applies to:
- MOBITEK SMS Engine version 5, 6, 7
- SQL Server 2016 SP1 Express
- Windows Server 2012 R2
Error Message: [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database “smseee6” requested by the login. The login failed.
Solution:
- Add “db_owner” to the user;
- If problem remains unsolved, then enable “TCP/IP” in SQL Server Configuration Manager.
How to Add “db_owner”
- select the user -> Properties
- goto “User Mapping”, select the database (smseee6) then check “db_owner”
How to Enable “TCP/IP”
- Launch the SQL Server Configuration Manager. It should be in the Start -> Programs -> Microsoft SQL Server -> Configuration Tools, select “Protocols for SQLEXPRESS” and enabled “TCP/IP”.
- In “TCP/IP -> Properties”.
- In “TCP port”, ensure it is the correct port number 1433.
- Restart the servce.
Source: https://razorsql.com/docs/support_sqlserver_express.html