Hi all,
This seems like it should be easy, but it has me stumped. From the query analyzer I run this command:
exec master..xp_cmdshell 'move "\\servername\frompack\WT010101.txt.txt" "C:\PTArchive\"', no_output
It works great. I want to move this command to a stored...
Hello All,
I have a stored procedure that uses a bulk insert to insert records into a table from a dynamically produced text file name.
SET @FileName = "\\server\frompack\WT" + @MachineCounter + @MonthCounter + @DayCounter + ".txt"
Select @SQL = 'Bulk Insert #Temp '
Select...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.