Kostas
May 23rd, 2001, 09:43 AM
When I run the following query in Design Mode I get results, but I can not save the query. I get an error message that reads:
"ODBC Error [Microsoft][ODBC SQL Server Driver]COUNT Field Incorrect"
When I try use the Query Analyzer, it will not even compile the SQL. The same error comes up. How come it will run it once, but then it says that its not a valid statement?
If I take the WHERE clause with the prompts at the end out it runs, but the prompting is the critical function of this query so I need it in there.
SELECT dbo.tbl_lucent_center.lcnt_center_name,
dbo.tbl_lucent_skill.lcnt_skill_status,
dbo.tbl_lucent_interval.Date, dbo.tbl_lcnt_timeconv.real_time,
dbo.tbl_lucent_interval.TOD,
AS ASA
FROM.... dbo.tbl_lucent_interval LEFT OUTER JOIN
dbo.tbl_lcnt_timeconv ON
dbo.tbl_lucent_interval.TOD = dbo.tbl_lcnt_timeconv.lucnt_TOD LEFT
OUTER JOIN
dbo.tbl_lucent_skill ON
dbo.tbl_lucent_interval.Skill = dbo.tbl_lucent_skill.lcnt_skill_id LEFT
OUTER JOIN
dbo.tbl_lucent_center ON
dbo.tbl_lucent_interval.ACD = dbo.tbl_lucent_center.lcnt_center_id
WHERE (dbo.tbl_lucent_interval.Date BETWEEN ? AND ?)
"ODBC Error [Microsoft][ODBC SQL Server Driver]COUNT Field Incorrect"
When I try use the Query Analyzer, it will not even compile the SQL. The same error comes up. How come it will run it once, but then it says that its not a valid statement?
If I take the WHERE clause with the prompts at the end out it runs, but the prompting is the critical function of this query so I need it in there.
SELECT dbo.tbl_lucent_center.lcnt_center_name,
dbo.tbl_lucent_skill.lcnt_skill_status,
dbo.tbl_lucent_interval.Date, dbo.tbl_lcnt_timeconv.real_time,
dbo.tbl_lucent_interval.TOD,
AS ASA
FROM.... dbo.tbl_lucent_interval LEFT OUTER JOIN
dbo.tbl_lcnt_timeconv ON
dbo.tbl_lucent_interval.TOD = dbo.tbl_lcnt_timeconv.lucnt_TOD LEFT
OUTER JOIN
dbo.tbl_lucent_skill ON
dbo.tbl_lucent_interval.Skill = dbo.tbl_lucent_skill.lcnt_skill_id LEFT
OUTER JOIN
dbo.tbl_lucent_center ON
dbo.tbl_lucent_interval.ACD = dbo.tbl_lucent_center.lcnt_center_id
WHERE (dbo.tbl_lucent_interval.Date BETWEEN ? AND ?)