We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

export table into text file with Unicode format

Medium Priority
900 Views
Last Modified: 2012-05-11
Hi
With SQL Server Import and Export Wizard.
 Or Microsoft SQL Server Management Studio
Can I export table into text file with Unicode format?

ExecuteInGrid.PNG
ExcuteInText.PNG
Comment
Watch Question

Commented:
One simple way of doing this is within Management Studio

1. Execute your script
2. In the results grig,  Click on the top middle tab between rows and columns to select the whole result set
3. Right click on the results grid and select save result as
4. Give a name to the file and on the save button click on the small down arrow
5. Select Save with encoding
6. Select unicode and the output file type.

This is really easy and quick.
Mohammad Alsolaimanapplication programmer

Author

Commented:
Kaminda:
5. Select Save with encoding
6. Select unicode and the output file type.
------------
i don't have Save with encoding
see the photo please
SaveAs.PNG
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Or you can use simple BCP to get to the same. Use -w/N switch:

bcp "SELECT AWR_CTL_NO,AWR_CODE, AWR_CAT, AWR_PERIOD_TO_DT FROM RSNFS.RSNFS.TBPRSAWR WHERE AWR_DECI_DATE = 14320501" queryout TData.TXT -T -w

Open in new window

Or you can use simple BCP to get to the same. Use -w/N switch:

bcp "SELECT AWR_CTL_NO,AWR_CODE, AWR_CAT, AWR_PERIOD_TO_DT FROM RSNFS.RSNFS.TBPRSAWR WHERE AWR_DECI_DATE = 14320501" queryout TData.TXT -T -w

Open in new window

Mohammad Alsolaimanapplication programmer

Author

Commented:
OK kameda, thank u very much it works
sameer2010
Or you can use simple BCP to get to the same. Use -w/N switch:
i am very new SQL Server
i dont know what you meen and where to write it?
Mohammad Alsolaimanapplication programmer

Author

Commented:
thanks a lot
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.