Exporting report to file using SQL Server Management Studio 2012 -


i have report run extract content of "description" field, transfer different system run program against file. previously, i'd export in comma or tab separated format. when try now, whether use tabs, commas or define own separator, when export data fields separated 5 spaces, not separator character.

i'm doing this:

tools -> options -> query results -> sql server -> results text

i select either "comma delimited", "tab delimited" or "custom separator" (i tried using "%"), when run query & save file, doesn't contain separator value, spaces.

how can fix this?

thanks, david a

details: sql server studio manager version 11.0.5058.0 os: windows 8.2 (64 bit) sql database version: 2008 r2

the "results text" option applied when choose seeing query results in text mode (results tab - ctrl + t).

i looked way set custom delimiter "results text" (ctrl + shift + f) option couldn't find one; come workaround might works you:

  1. right click on your db name -> tasks... -> export data...
  2. next on starting wizard dialog.
  3. choose data source (login source db) , click next
  4. choose flat file destination destination.
  5. define file location (click browse... or copy/paste path)
  6. personally, left default options; noting column names in first data row checked. click next
  7. choose between both options data (tables/views/query) , click next
  8. if chose query, copy/paste (parse if want to) , click next
  9. the configure flat file destination should appear directly if chose table/view source , can select it; or show query source.
  10. here can define custom delimiter, default comma (,) , click next
  11. i ran query immediatly, can save ssis package if need to; click next.
  12. validate summary , click finish see progress , results of process.

you can see screenshots of process here

hope helps.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -