Versuchen Sie es;
EXEC('UPDATE '+ @tablename +
' SET filepath = '''+ @pathonlocal + ''' + file_name + '''+'.'+''' + file_ext')
Gleich;
UPDATE [YourTable] SET filepath = 'YourPath' + file_name + '.' + file_ext
Versuchen Sie es;
EXEC('UPDATE '+ @tablename +
' SET filepath = '''+ @pathonlocal + ''' + file_name + '''+'.'+''' + file_ext')
Gleich;
UPDATE [YourTable] SET filepath = 'YourPath' + file_name + '.' + file_ext