RobertT687
Programmer
I have the following in a stored procedure on a SQL 7.0 server for accessing data from a SQL 6.5 server:
SET ANSI_NULLS ON
SET ANSI_WARNINGS ON
select *
into #temp_SmartStreamOpenDocuments
FROM HOOD.DBSrrcv.dbo.recv_doc
where recv_entity_id in ('412','418') AND
recv_doc_status_code <> 'C'
When I try to compile the procedure I get the error message:
"Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection. This ensures consistent query semantics. Enable these options and then reissue your query"
How do I set these options for the procedure to avoid this error?
SET ANSI_NULLS ON
SET ANSI_WARNINGS ON
select *
into #temp_SmartStreamOpenDocuments
FROM HOOD.DBSrrcv.dbo.recv_doc
where recv_entity_id in ('412','418') AND
recv_doc_status_code <> 'C'
When I try to compile the procedure I get the error message:
"Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection. This ensures consistent query semantics. Enable these options and then reissue your query"
How do I set these options for the procedure to avoid this error?