I set up a linked server named SBTSODATA using a system dsn that uses the VFP driver to access VFP free tables. The tables show up in the EM. If I go to query analyzer and execute SELECT * FROM OPENQUERY(SBTSODATA,'SELECT * FROM slsgrid') I get a result set. When I create a stored procedure in EM thusly
CREATE PROCEDURE usp_GetSalesGrid AS
SELECT * FROM OPENQUERY(SBTSODATA,'SELECT * FROM slsgrid')
Syntax is okay but when I press OK I get the folg error msg:
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.
I create another stored procedure that does nothing more than DBBC USEROPTIONS.
when I execute this one from query analyzer I get ANSI_WARNINGS SET but not ANSI_NULLS. However if I just execute DBBC USEROPTIONS FROM within the qa window ANSI_NULLS is SET
I hit the BOL and it tells me that a stored procedure keeps the connection settings that existed when it was created.
If anyone can help out I would really appreciate it.
CREATE PROCEDURE usp_GetSalesGrid AS
SELECT * FROM OPENQUERY(SBTSODATA,'SELECT * FROM slsgrid')
Syntax is okay but when I press OK I get the folg error msg:
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.
I create another stored procedure that does nothing more than DBBC USEROPTIONS.
when I execute this one from query analyzer I get ANSI_WARNINGS SET but not ANSI_NULLS. However if I just execute DBBC USEROPTIONS FROM within the qa window ANSI_NULLS is SET
I hit the BOL and it tells me that a stored procedure keeps the connection settings that existed when it was created.
If anyone can help out I would really appreciate it.