Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-sqlserver > #1153
| From | "Cathy" <Cathy@Nospam.com> |
|---|---|
| Newsgroups | comp.databases.ms-sqlserver |
| References | (1 earlier) <XnsA079F0DCCBB92Yazorman@127.0.0.1> <FpednYO2bofgOn7SnZ2dnUVZ8kydnZ2d@bt.com> <XnsA07A7596B3550Yazorman@127.0.0.1> <1JudnbRjP9BoMnnSnZ2dnUVZ8lmdnZ2d@bt.com> <XnsA07AD1FB0B573Yazorman@127.0.0.1> |
| Subject | Re: MSSMSE - Export results to CSV |
| Date | 2012-06-22 22:45 +0100 |
| Message-ID | <qcWdnUB-Rv_uennSnZ2dnUVZ7oKdnZ2d@bt.com> (permalink) |
This is brilliant > SELECT CategoryID, CategoryName, quotename(Description, '"') > FROM [Northwind].[dbo].[Categories] Only problem I have now is that bcp reads the quote as the end of the command. Is there a way to escape this? bcp "SELECT CategoryID, CategoryName, quotename(Description, '"')FROM [Northwind].[dbo].[Categories]" queryout outputfile.csv Thanks so much for your help to so far C
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Next in thread | Find similar
MSSMSE - Export results to CSV "Cathy" <Cathy@Nospam.com> - 2012-06-21 19:24 +0100
Re: MSSMSE - Export results to CSV Erland Sommarskog <esquel@sommarskog.se> - 2012-06-21 23:40 +0200
Re: MSSMSE - Export results to CSV "Cathy" <Cathy@Nospam.com> - 2012-06-22 00:00 +0100
Re: MSSMSE - Export results to CSV Erland Sommarskog <esquel@sommarskog.se> - 2012-06-22 11:33 +0200
Re: MSSMSE - Export results to CSV "Cathy" <Cathy@Nospam.com> - 2012-06-22 18:48 +0100
Re: MSSMSE - Export results to CSV Erland Sommarskog <esquel@sommarskog.se> - 2012-06-22 20:38 +0200
Re: MSSMSE - Export results to CSV "Cathy" <Cathy@Nospam.com> - 2012-06-22 22:45 +0100
Re: MSSMSE - Export results to CSV Erland Sommarskog <esquel@sommarskog.se> - 2012-06-23 11:28 +0200
Re: MSSMSE - Export results to CSV "Cathy" <Cathy@Nospam.com> - 2012-06-23 23:49 +0100
csiph-web