Using MSSQL2000 and PHP4.3.1 and FreeTDS-0.61 (always compile it with --enable-msdblib --with-tdsver=7.0 for proper working) this function won't give you the strings what you can see in MS's Enterprise Manager for uniqueidentifiers!
And the given strings also useless in SELECTs!
To get the number what you can reuse in later SELECTs, use this:
$q1 = mssql_query("SELECT cast(id as varchar(36)) FROM sales WHERE ...");
where in table 'sales' the column 'id' type is uniqueidentifier.