-1

Hi I was wondering what the following error means and why am I getting it?

[unixODBC][Driver Manager]Data source name not found, and no default driver specified

My arguements for odbc_conntect() - "Driver={SQL Server Native Client 10.0};Server=tcp:database.windows.net;Database=someDB;Encrypt=yes;", 'user@database', 'passwd'

camelCaseD
  • 2,483
  • 5
  • 29
  • 44

2 Answers2

0

you are running this prog on UNIX and the string is windows based

Satya
  • 8,693
  • 5
  • 34
  • 55
  • thx for the answer. I don't know much about microsoft based SQL databases or ODBC. So what would be a UNIX formatted string? – camelCaseD Apr 27 '12 at 02:32
  • check this link http://www.easysoft.com/developer/languages/php/sql_server_unix_tutorial.html – Satya Apr 27 '12 at 02:35
0

The reason why it was not working is that I did not have the correct driver installed or unixODBC with a dsn setup.

camelCaseD
  • 2,483
  • 5
  • 29
  • 44