0
When executing the query below using "AT" in place of "T" as alias of Join is returned the following error: "Ierrorinfo.Getdescription failed with E_FAIL(0x80004005)."
OleDbDataAdapter da = new OleDbDataAdapter("SELECT A.*, " +
" T.alcadaTipo as alcadaTipoDescricao " +
" FROM tblAlcada A " +
" INNER JOIN tblAlcadaTipo T " +
" ON T.alcadaTipoId = A.alcadaTipo", conn);
Would someone like to tell me why?
possibly AT is a query command, if you want to use as an alias put in quotes and do a test:
" INNER JOIN tblAlcadaTipo \"AT\" "
– Rovann Linhalis
Same mistake.....
– Denis
Tried with simple quotes?
– Rovann Linhalis
Yes, single and double with bar.
– Denis