A bit of extra information... If you connect to the same database using ODBC, the "current_value" function works as advertised. So the problem is caused by using WFS -> GeoServer -> SQLServer as a dataprovider. -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html