I have a column that has data type varchar(max). Some rows in that column have long text data. When I copy the SQL result set from that column and paste to excel, the row gets split into multiple rows. I want to past in sunch a way that single cell data from SQL server go to single cell in excel. I am not sure how to fix that problem. Any suggestion would be appreciated. Thank you
-
Are you copy/pasting from SQL Server Management Studio?Seth Moore– Seth Moore2013-08-28 17:56:51 +00:00Commented Aug 28, 2013 at 17:56
-
possible duplicate of Copy And Paste From SQL Server Management Studio 2012 New Line Issue Into ExcelTHelper– THelper2015-09-01 08:05:33 +00:00Commented Sep 1, 2015 at 8:05
Add a comment
|
2 Answers
Use Excel Import from SQL Server feature. It should import each row of data into a single row in Excel and each column into a single column.
Comments
You can try to select data directly into excel spreadsheet.
Check this for more details http://blog.waynesheffield.com/wayne/code-library/ad-hoc-querying/#codesyntax_5