0
嗨,考慮下面的代碼;多部分標識符with openrowset
use jefftest;
insert into rep_track with (tablockx) (end_date, end_time)
(select end_date, end_time
from openrowset(bulk 'c:\scripts\sql-stuff\j.log', formatfile='c:\scripts\sql-stuff\endtime.fmt') as dummy
where [rep.track].[run] = 2175 and [rep_track].[rep] = 1)
我得到的錯誤是
multi-part identifier "rep_track.run" could not be bound
multi-part identifier "rep_track.rep" could not be bound
如果我把一個「)」假後註釋掉「其中」導致它的工作原理(但我需要「在哪裏」的原因),似乎成爲「哪裏」原因的問題。任何建議?
嗨,夥計們,似乎我使用了錯誤的sql命令,我應該使用UPDATE命令。這裏是工作命令字符串的樣子; –