Prueba;
EXEC('UPDATE '+ @tablename +
' SET filepath = '''+ @pathonlocal + ''' + file_name + '''+'.'+''' + file_ext')
Igual que;
UPDATE [YourTable] SET filepath = 'YourPath' + file_name + '.' + file_ext
Prueba;
EXEC('UPDATE '+ @tablename +
' SET filepath = '''+ @pathonlocal + ''' + file_name + '''+'.'+''' + file_ext')
Igual que;
UPDATE [YourTable] SET filepath = 'YourPath' + file_name + '.' + file_ext