Hi,
I'm trying to export date to a (.csv) file from SQL 2005 and I keep getting a carriage return and line feed after each record. I have been told that this may be because it is getting exported in Unicode rather than ASCII. I do not have reporting services on my box. I have heard that there is a RSReportservice.config file, but I haven't been able to find it. Is there another way to change the configuration?
Thanks for your help in advance,
~ Tino
Software/Hardware used:
SQL Server Management Studio 2005
ASKED:
January 13, 2012 5:57 PM
UPDATED:
February 28, 2012 11:43 AM
I use bcp and have no issues.
declare @bcp as varchar(2000)
set @bcp = ‘bcp “select * from server.dbo.table” queryout newserverfoldernametestfilename.csv -c -t, -T’
exec xp_cmdshell @bcp
On our server the bcp command requires the dbserver.dbo.tablename configuration. Doesn’t like just the tablename.
Thanks Smf,
I will try it again with your configuration.
~ Tino