A_MSSQL_DATABASE specifies the name of the particular database to be accessed. You cannot open any database files until you have set this variable.
A_MSSQL_DATABASE stores
indicates the "stores" database is to be accessed.