November 5, 2008 at 2:29 pm
Hi all,
I have my source columns as nvarchar type and want to cast them while select ting to varchar ....how can i do this in se;ect clause itself, i don't want to use a dataconversion after oledb src...
Any help on this?
thanks
Thanks [/font]
November 5, 2008 at 7:56 pm
If the NVARCHAR column has no multi-lingual entries (the main purpose for NVARCHAR), the a simple SELECT CAST(columnname AS VARCHAR(x)) where x is the desired maximum length should work. Please refer to CONVERT or CAST in Books OnLine for additional information on such conversions.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply