• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question mssql connect

Noam Harel

Regular Pleskian
Hi

we are trying to connect to MSSQL from our plesk server, but when we run the page we get this error:
mod_fcgid: stderr: PHP Warning: odbc_connect(): SQL error: [unixODBC][Driver Manager]Data source name not found, and no default driver specified, SQL state IM002 in SQLConnect in <file name>

we have installed: mssql-tools and unixODBC-devel but still things don't work out.

inside our PHP settings we have:
shmaya-plesk.png

could you please guide me how to make this work?

Noam
 
Ok, I got it, you try to connect to MSSQL directly from PHP (not from Plesk).

"Data source name not found, and no default driver specified"
- In a 64 bit windows server operating system, there are two ODBC managers (32 bit is C:\Windows\SysWOW64\odbcad32.exe).


I suggest checking which ODBC used by PHP, but I'm not sure.
 
Ok, I got it, you try to connect to MSSQL directly from PHP (not from Plesk).


- In a 64 bit windows server operating system, there are two ODBC managers (32 bit is C:\Windows\SysWOW64\odbcad32.exe).


I suggest checking which ODBC used by PHP, but I'm not sure.

thanks for your reply, i think this can't be the correct answer, since the problem is in the Linux side. connection has not being established yet at this stage
 
Back
Top