Greetings all!i am using the follownig sqlcmd command to output some data :sqlcmd -E -S myServer\myInstance -s "," -W -d myDB -Q " set nocount on select ltrim('""' + cast(PersonId as varchar) + '-' + cast(DatabaseId as varchar) + '""') as 'URN-DBID','""' + EmailAddress + '""' as EmailAddress from myDB.dbo.myTable where DTS > dateadd(dd, -7, getdate()) set nocount off " > "\\tfsvr\Company\Database Development\TestReports\"myRecords-20080303.txt