问题
Is there any chance of connecting opencart with mssql? Have anyone tried? If so what is the procedure of doing that?

回答1:
That should not be a big problem, You only need to do:
- create
/system/database/mssql.php
class - the class should have the same methods, properties and functionality as e.g. themysql.php
one - rewrite all of the model classes method's queries to meet the
MS SQL
/T-SQL
SQL syntax - in both config files (
/config.php
and/admin/config.php
) set the properDB_DRIVER
-mssql
I am supposing You have the OpenCart database created already due to the /install/opencart.sql
file.
I guess nothing more should be done.
Anyway, what is the reason for switching to MS SQL?
EDIT: In /system/database/
there is this mmsql.php
file which actually contains the MSSQL
class thus this do not have to be implemented, just renamed to mssql.php
file.
来源:https://stackoverflow.com/questions/16558056/how-to-connect-opencart-with-mssql-server