I have created a service that connects to a sql server DB. I get the following error trying any of the API’s though
{
“error”: [
{
“error_detail”: {
“SQLSTATE”: “42S02”,
“driver_name”: “mysql”,
“driver_error_code”: 208,
“driver_error_message”: “[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Invalid object name ‘information_schema.schemata’.”
},
“message”: “CDbCommand failed to execute the SQL statement: SQLSTATE[42S02]: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Invalid object name ‘information_schema.schemata’.”,
“code”: 500
}
]
}
I can run the query “select * from INFORMATION_SCHEMA.SCHEMATA” on the server to get details from the system view but cannot run “select * from information_schema.schemata”
Looking at the error log I don’t know why the driver_name is “mysql” ?
Is there a way around this?