Fix for SqlServerConnection.GetStateData query