Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Access Database and ColdFusion

New Here ,
Aug 27, 2009 Aug 27, 2009

I'm trying to retrieve data from Access DB sitting in coldfusion server but it won't return any data...

Query:

<cfquery datasource="MasterDB" name="AccessQRY">

     Select Employee.Emp_Name, Salary.Emp_ID

     From Employee inner join Salary on (Employee.ID = Salary.ID) AND (Employee.SectionName = Salary.SectionName);

</cfquery>

<cfdump var = "#AccessQRY#">

Is something wrong with my query...

803
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 27, 2009 Aug 27, 2009

All I could see wrong with your query is the semi colon at the end.  You don't want those in cfqueries.

What happens when you run the same sql inside Access?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 27, 2009 Aug 27, 2009
LATEST

it just worked... thanks for the semicolon catch though...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources