Zkuste;
EXEC('UPDATE '+ @tablename +
' SET filepath = '''+ @pathonlocal + ''' + file_name + '''+'.'+''' + file_ext')
Rovná se jako;
UPDATE [YourTable] SET filepath = 'YourPath' + file_name + '.' + file_ext
Zkuste;
EXEC('UPDATE '+ @tablename +
' SET filepath = '''+ @pathonlocal + ''' + file_name + '''+'.'+''' + file_ext')
Rovná se jako;
UPDATE [YourTable] SET filepath = 'YourPath' + file_name + '.' + file_ext