Quantcast
Channel: MySQL Forums - Microsoft SQL Server
Viewing all articles
Browse latest Browse all 686

Mysql ODBC running a select prior to my insert (no replies)

$
0
0
I wonder if someone can help a mysql novice like myself.

I have created an ODBC connection to Mysql from my Microsoft sql server (Windows server 2003, SQL server 2000). I have also created a linked server for querying.

All seems to work fine and I have create numerous successful inserts to the mysql server.

However it is quite slow. What I have discovered, from turning on the mysql driver 'log queries to myodbc.sql' option is that prior to every insert statement I am sending Mysql is performing a 'Select * from' the table I am trying to insert into. In some cases it is also trying to select * from other tables also?

I don't understand why it does this but wondered if anyone new of how to prevent it. I have scoured the internet looking for answers and only found reference to the driver doing it for something called 'Borland builder 4'. The note stated that if you use an 'Active' property it will automatically do a select * from before you task. But if you use an 'Open' property method it will not.

The problem is I cannot find such settings.

Any help would be gratefully received

Viewing all articles
Browse latest Browse all 686

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>