Reputation: 608
I need help in this.
When I query data from SSMS, I am getting weird character as shown in picture.
I have tried this SQL command, but it does not help. The desired result should be 1D or 1M or 1W.
CONVERT(varchar(50),[Date Formula 1]) COLLATE SQL_Latin1_General_CP1_CI_AS [Date Fromula 1]
Upvotes: 0
Views: 522
Reputation: 13009
It is not due to SSMS. It is due to the way data is stored.
Originally, when the data came as 1D/1M/1W, it did not get stored due to one of the reasons:
INSERT INTO TableName(DateFormula) VALUES (N'1M'),(N'1D'), (N'1W')
What can you do now? The data is lost while insertion. No way to recover it. Better re-insert the data with proper unicode datatype or with proper collation defined for the column.
Upvotes: 1