thanks for your reply. the new bcp command can work in the DOS window, but the script below can't run in the Management Studio.The error is Error = [Microsoft][SQL Server Native Client 10.0]Unable to open BCP host data-file
-------------------another question is, why we don't use varchar(max) ?declare @cmd varchar(8000);set @cmd = 'bcp TestDB..tmpTbl1 in "C:\Users\ch\Desktop\data.txt" -T -c -t ","'; print @cmdexec master..xp_cmdshell @cmd