Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 how to convert int to nchar(3) in sqlce 3.5
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

Saudi Arabia
35 Posts

Posted - 03/05/2013 :  07:52:13  Show Profile  Reply with Quote
Hello every body

I use sqlce 3.5

i want convert integer column in select statement


SELECT   id, type_task,date_year ,cast(date_month AS nchar(3)) , date_day, state, note
FROM            task_tb AS task_tb_1
WHERE        (id =1)


Data conversion failed. [ OLE DB status value (if known) = 2 ]

please help me.............
for office
???? ???? ???????

Flowing Fount of Yak Knowledge

1054 Posts

Posted - 03/05/2013 :  11:45:28  Show Profile  Reply with Quote
do you mean you're using SQL server compact edition?

If so provide sample data for the projecting columns

id, type_task,date_year ,date_month, date_day, state, note

And what is the datatype for Date_Month field in your table?

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000