日期:2014-05-18 浏览次数:20916 次
--动态SQL,try: exec('BULK INSERT [dbo].[ta] FROM '+@PATH+ 'WITH ( DATAFILETYPE = ''char'', FIELDTERMINATOR = '','', ROWTERMINATOR = ''\n'' )')
------解决方案--------------------
try
exec('BULK INSERT [dbo].[ta] FROM '''+@PATH+ ''' WITH ( DATAFILETYPE = ''char'', FIELDTERMINATOR = '','', ROWTERMINATOR = ''\n'' )')