ok thanx for all the replies (esp the mail how to use tsql). im now using the tsql tool to access the MSSQL Server from PHP, cuz i couldnt get PHP to recomplie properly (not freetds related). i know its not very elegant (and slow) but it works... petar