Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Getting Data from ODBC using SQL statement

I'm receiving this error when I try to use a SQL statement to parse the data by date. (Using ODBC connection)

 

ODBC Error 3.PNG

 

Here's my current SQL Statement: 

 

SELECT fv_v_allocated_time_view_all_modules_lem_filtered.timesheet_fmt_dt, fv_v_allocated_time_view_all_modules_lem_filtered.last_name, fv_v_allocated_time_view_all_modules_lem_filtered.first_name, fv_v_allocated_time_view_all_modules_lem_filtered.skill_type, fv_v_allocated_time_view_all_modules_lem_filtered.rate_1_rate, fv_v_allocated_time_view_all_modules_lem_filtered.project_id, fv_v_allocated_time_view_all_modules_lem_filtered.work_unit_id, fv_v_allocated_time_view_all_modules_lem_filtered.company_code,fv_v_allocated_time_view_all_modules_lem_filtered.employee_or_equipment_id, fv_v_allocated_time_view_all_modules_lem_filtered.equipment_ind, fv_v_allocated_time_view_all_modules_lem_filtered.rate_1_hours, fv_v_allocated_time_view_all_modules_lem_filtered.company_name, fv_v_allocated_time_view_all_modules_lem_filtered.net_billable_time, fv_v_allocated_time_view_all_modules_lem_filtered.last_modified_by, fv_v_allocated_time_view_all_modules_lem_filtered.extra_charges
FROM vdb_track.fv_v_allocated_time_view_all_modules_lem_filtered
WHERE timesheet_fmt_dt > '12/31/2017'

1 ACCEPTED SOLUTION
Anonymous
Not applicable

The table or view name was too long, so I tried to give it an alias like below:

 

SELECT v.timesheet_fmt_dt

FROM vdb_fv_v_allocated_time_view_all_modules_lem_filtered v

WHERE v.timesheet_fmt_dt > '12/31/2017'

 

This worked for me.

View solution in original post

3 REPLIES 3
dax
Community Support
Community Support

Hi JakeRyan11,

You said when you use SQL, it will cause this problem, if you write "select *  from table", will this work ? Or if you don't write sql query, will this work? In addition, I am not sure whether this is caused by sql query or other  factors. And whicy type file you are using in ODBC? And you also could check which step will cause error in Edit Queries.

 

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

The table or view name was too long, so I tried to give it an alias like below:

 

SELECT v.timesheet_fmt_dt

FROM vdb_fv_v_allocated_time_view_all_modules_lem_filtered v

WHERE v.timesheet_fmt_dt > '12/31/2017'

 

This worked for me.

Anonymous
Not applicable

Thanks dax, 

 

The ODBC is connecting to our data lake through Denodo. 

 

I've added "SELECT * FROM TABLE" but now receive this error: 

ODBC Error 5.PNG

 

If I do not type in the word "TABLE", then it runs this error: 

ODBC Error 6.PNG

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.