Skip to Content

"Date" data type of Table.Column Converted to Char(10) in Datawindow.column

I'm using PB12.6 Classic and MS SQL2008R2 database

When create new datawindow (Quick or SQL Select) select columns from Tables, the table.column data type "Date" will be converted to Char(10) in according dw.column

Is that normal or Abnormal?

that kind of convertsion will bring difficulty in writing script

dw_1.SetItem() - cannot set "Date" variable dirrectly to dw.column(Char10)

dw_1.GetItem..() - cannot get and place to "Date" variable

Please the experts advises

(Table.Column data type is "Date")

(PB12.6 converted to Char(10) in Datawindow.Column)

DATE_DTY.JPG (22.6 kB)
CHAR_DTY.JPG (33.6 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 08, 2016 at 11:38 AM

    Take a look at the SQL being generated by the driver. How is it retrieving the data?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 05, 2016 at 06:31 PM

    Hi Bamrung;

    I am not having this issue with PB versions 12.1, 12.5.1 or 12.6 with SS 2008, 2010 or 2012. A Date datatype is a Date in the DW object, as follows:

    I would like to point out though, that I only connect to SS via the SNC (SQLServer Native Client) client DB driver (ie: SQLCA.DBMS = "SNC" )

    How are you connecting to your SS?

    Regards ... Chris


    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.