Of course they are compatible, they are all Microsoft products! shrugs
Anyway, try printing out your query, because the most common mistake is that the variables aren't getting into your query string.
e.g.
$query = "INSERT INTO tbl VALUES($var1, $var2)";
print $query; // use this to debug
Diego