Skip to Content
author's profile photo Former Member
Former Member

varchar convert to date at universe platform error (SQL database)

Hello Everybody .

Database SQL Server 2008

BI 4.1 SP4 P1

I want to change an area format which. is ddmmyyy (varchar) . I want to change varchar area to date format area at universe.

My formula :


CASE WHEN

LEN (VIKODWH.dbo.DWH_FACT_SIPARIS_MASTER.genel_veri10) < '8' OR LEN(VIKODWH.dbo.DWH_FACT_SIPARIS_MASTER.genel_veri10) is NULL THEN VIKODWH.dbo.DWH_FACT_SIPARIS_DETAY.teslim_tarih ELSE

Convert(varchar,convert(varchar(10),VIKODWH.dbo.DWH_FACT_SIPARIS_MASTER.genel_veri10,101),101) end


Parse is Ok but I want to display it give me errors .


ettiğimizde “Exception: DBD, [Microsoft SQL Server Native Client 11.0] : Conversion failed when converting date and/or time from character string.State: 22007”


What can I do ? Could you help me please ?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2014 at 02:15 PM

    Hello,

    for the else try

    convert(date, VIKODWH.dbo.DWH_FACT_SIPARIS_MASTER.genel_veri10, 101)

    This should work

    Regards

    Andreas

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.