TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Hariharan Krishnamoorthi
NA
706
169.5k
How to export text file by xp_cmdshell for Thailand Language
Apr 5 2017 10:38 AM
Hi All,
I am trying to export customer table records to text file by using xp_cmdshell.
But when customer records are in Thailand language, the out put comes with undefined characters like '?????????) '
QUERY
SELECT @FilePath='D:\CustomerReports\Customers.txt'
SELECT @Command = 'bcp "SELECT * FROM "' + @dbname + '".dbo.tblCustomer(nolock)" queryout ' +@FilePath+ ' -S' + @@servername + ' -T -c -t "" '
EXEC master..xp_cmdshell @Command
Please how to resolve to display the charaters as thailand language.
Reply
Answers (
4
)
Get Data using Joins in sqlserver
Remove Extra Space between string in whole column