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:
- right click on your db name -> tasks... -> export data...
- next on starting wizard dialog.
- choose data source (login source db) , click next
- choose flat file destination destination.
- define file location (click browse... or copy/paste path)
- personally, left default options; noting column names in first data row checked. click next
- choose between both options data (tables/views/query) , click next
- if chose query, copy/paste (parse if want to) , click next
- the configure flat file destination should appear directly if chose table/view source , can select it; or show query source.
- here can define custom delimiter, default comma (,) , click next
- i ran query immediatly, can save ssis package if need to; click next.
- validate summary , click finish see progress , results of process.
you can see screenshots of process here
hope helps.
Comments
Post a Comment