If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Please help with MyODBC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-30-04, 22:32
lftsk lftsk is offline
Registered User
 
Join Date: Jan 2004
Posts: 2
Unhappy Please help with MyODBC

Hello,

I'm currently using MyODBC 3.51.06 to link to a MySQL Database with MSSQL's Enterprise Manager and it's working fine except for one thing.

When I try to run a Stored Procedure on the MSSQL box hitting the MySQL Database (via a pass-through query) I get the following error message:

"Heterogenous queries require the ANSI_NULLS and ANSI_WARNINGS
options to be set for the connection".

Is there an option I set in the MyODBC driver that equates to ANSI_NULLS and ANSI_WARNINGS being turned on?

I'm quite desperate.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 01-31-04, 09:57
vanekl vanekl is offline
Registered User
 
Join Date: Nov 2003
Posts: 91
try this before calling the stored procedure:

SET ANSI_NULLS ON SET ANSI_WARNINGS ON

GO



You might also want to take a look at:

http://www.sqlmag.com/Forums/message...2&threadid=739

http://www.experts-exchange.com/Data..._20629811.html

http://www.informit.com/isapi/produc...t/articlex.asp
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On