What is the content of the constant/variable named "ODBC_DRIVER"?
More ideas:
Did you check the "SQL Server Configuration Manager" on your SQL Server?
Take a look into "SQL Server Network Configuration", choose your SQL Server instance and ensure TCP/IP is activated.
Then restart your SQL Server Instance Service and try again.
Could it be a DNS problem? For a test you could try to use the sql servers ip-address in the connection string instead of its name.
Do you have multiple sql server instances on the server? How about trying to use a fixed port for your instance and set this port in the connection string?
More ideas:
Did you check the "SQL Server Configuration Manager" on your SQL Server?
Take a look into "SQL Server Network Configuration", choose your SQL Server instance and ensure TCP/IP is activated.
Then restart your SQL Server Instance Service and try again.
Could it be a DNS problem? For a test you could try to use the sql servers ip-address in the connection string instead of its name.
Do you have multiple sql server instances on the server? How about trying to use a fixed port for your instance and set this port in the connection string?