In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Date field of SQL Server being Converted to String automatically

NiloyJyoti
5 - Atom

I am loading my data in SQL Server table with datatype as Date.

 

While reading this data in Alteryx , getting automatically converted to V_Wstring. Could anyone help me understand why would this happen.

 

We have lot of tables and many corresponding Date columns in the process. Typecasting all of these columns might not be a feasible solution for us.

 

NiloyJyoti_0-1655283342089.png

 

 

I am checking the datatype in this tool shown below:

 

NiloyJyoti_1-1655283504832.png

 

 

 

 

 

2 REPLIES 2
davidskaife
14 - Magnetar

Hi @NiloyJyoti 

 

Interesting that it's correctly identifying the DateTime fields, but not the date fields. There are a few solutions i could find on the community that point to it being an issue with the drivers used (see https://community.alteryx.com/t5/Alteryx-Designer-Discussions/In-Database-datatype-change/td-p/56361 for example) but these are for the in-DB tool, what type of driver/connection you're using could be an avenue to explore though?

 

in the meantime what happens if you place an autofield tool just after the extract, does that change the field type to Date?

NiloyJyoti
5 - Atom

@davidskaife  This was helpful. Applying auto field resolved the issue for now.

Labels
Top Solution Authors