Schaeffrcc
Technical User
I am new to Tek-Tips and this has been a very useful site.
I am trying to update one table from 2 others Then once updated I planned to use BCP to export the table to a .CSV file.
2 Data Tables
-Agent
-County
1 Table to be updated
-CaseManager
This is the Syntax that I have been using:
UPDATE CaseManager
SET CaseManager.agent_seq = agent.agent_seq,
CaseManager.Agent_Name = (agent.Agent_last_name) & ", " & (agent.agent_first_name) & " " & (agent.agent_middle_name),
CaseManager.agent_active = agent.agent_active,
CaseManager.agent_phone = agent.agent_phone,
CaseManager.agent_initials = agent.agent_initials,
CaseManager.county_name = county.county_name
From Agent
LEFT JOIN county ON agent.county_seq=county.county_seq
LEFT JOIN CaseManager ON agent.agent_seq=CaseManager.agent_seq
and this is the result that I am getting:
Server: Msg 403, Level 16, State 1, Line 1
Invalid operator for data type. Operator equals boolean AND, type equals varchar.
Server: Msg 403, Level 16, State 1, Line 1
Invalid operator for data type. Operator equals boolean AND, type equals varchar.
Server: Msg 403, Level 16, State 1, Line 1
Invalid operator for data type. Operator equals boolean AND, type equals varchar.
Server: Msg 403, Level 16, State 1, Line 1
Invalid operator for data type. Operator equals boolean AND, type equals varchar.
I have been pulling what little hair I have out with this one and it will probably be a basic Syntax issue.
I can do this exact Update Query in Access and have no problems so I do not believe that it is a Field type issue.
Thanks for any help that you can give me.
Thomas
I am trying to update one table from 2 others Then once updated I planned to use BCP to export the table to a .CSV file.
2 Data Tables
-Agent
-County
1 Table to be updated
-CaseManager
This is the Syntax that I have been using:
UPDATE CaseManager
SET CaseManager.agent_seq = agent.agent_seq,
CaseManager.Agent_Name = (agent.Agent_last_name) & ", " & (agent.agent_first_name) & " " & (agent.agent_middle_name),
CaseManager.agent_active = agent.agent_active,
CaseManager.agent_phone = agent.agent_phone,
CaseManager.agent_initials = agent.agent_initials,
CaseManager.county_name = county.county_name
From Agent
LEFT JOIN county ON agent.county_seq=county.county_seq
LEFT JOIN CaseManager ON agent.agent_seq=CaseManager.agent_seq
and this is the result that I am getting:
Server: Msg 403, Level 16, State 1, Line 1
Invalid operator for data type. Operator equals boolean AND, type equals varchar.
Server: Msg 403, Level 16, State 1, Line 1
Invalid operator for data type. Operator equals boolean AND, type equals varchar.
Server: Msg 403, Level 16, State 1, Line 1
Invalid operator for data type. Operator equals boolean AND, type equals varchar.
Server: Msg 403, Level 16, State 1, Line 1
Invalid operator for data type. Operator equals boolean AND, type equals varchar.
I have been pulling what little hair I have out with this one and it will probably be a basic Syntax issue.
I can do this exact Update Query in Access and have no problems so I do not believe that it is a Field type issue.
Thanks for any help that you can give me.
Thomas