Опитайте;
EXEC('UPDATE '+ @tablename +
' SET filepath = '''+ @pathonlocal + ''' + file_name + '''+'.'+''' + file_ext')
Равно на;
UPDATE [YourTable] SET filepath = 'YourPath' + file_name + '.' + file_ext
Опитайте;
EXEC('UPDATE '+ @tablename +
' SET filepath = '''+ @pathonlocal + ''' + file_name + '''+'.'+''' + file_ext')
Равно на;
UPDATE [YourTable] SET filepath = 'YourPath' + file_name + '.' + file_ext