I use odbc_connect trying to connect to the database and i get this message - Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect
Check in Administrator tools/ODBC sources if you had defined any ODBC connection for your DB2 database