swirl80
Starting Member
2 Posts |
Posted - 2007-06-11 : 10:32:14
|
i'm tryin to create an extract similar to: [RunTime]Date=ASAPTime=AllowErrors=FALSE [Task.1]Module=EmployeeOperation=AddUpdateServer=Employee [Data.1]Employee,900,,1,1,,Support,,Tech,,,,,,,,,,,,,,90,90,9000,,WKSTN,Employee,400,,1,1,,Manager,,Temp,,,,,,,,,,,,,,40,40,4000,,WKSTN, where the data in red is static and info in green is taken from users table. i've tried using xp_cmdshell (eg. exec master..xp_cmdshell 'echo [RunTime] >> e:\testfile2.txt') to create the red info but can't get the queried results to output. I've tried using bcp but that keeps just over writing the file. Only other way i can think of is to create 2 files and append them to each other using DOS but i want to keep it all in SQL if possible.....oh yea, 1 more thing, anyway i can create a carriage return using xp_cmdshell to???thanks |
|