SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
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
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sayer
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

code

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)


error

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

please help me.............

http://aman-services.net
for office
???? ???? ???????

MIK_2008
Flowing Fount of Yak Knowledge

Pakistan
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?

Cheers
MIK
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.04 seconds. Powered By: Snitz Forums 2000