473,734 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ODBC Version trouble between 3.51.10.00 and 3.51.11.00

Dear group,

we are dealing with some very specific problems with ODBC, where a
connection from SQL-Server to Mysql works with ODBC-driver 3.51.10.00
and does NOT work with ODBC-driver 3.51.11.00. Maybe someone
experiences similar problems or even has a solution ? Some feedback (to
the group) would be highly appreciated.

We use a Microsoft SQL-Server as Headquarter database and some
Mysql-machines on Redhat as satellite-databases. We use a script to
copy and replicate data between satellite and headquarter. This script
is using simple SQL connecting to Mysql-database using ODBC and
"Openrowset ".

In order to copy only new data from sattelites we use the
Binary_Checksum function from Microsoft SQL-Server. This works with the
3.51.10.00 version perfectly but it fails with the 3.51.11.00 version,
where it gives us the message (from MS-SQL-Server) "msg 8481 Error
expanding "*": all columns incomparable, '*' expanded to zero columns".
This message comes only for some but not for all statements using the
binary_checksum .

The only way to fix this is to stick with the "old" version of the
ODBC-driver. Could someone please explain what is going one?

I will post this also in the relevant newsgroup of MS-SQL-Server

Thanks

greetings from Vienna

Uli

Jul 23 '05 #1
2 2248
ul*********@lyc os.at wrote:
Dear group,

we are dealing with some very specific problems with ODBC, where a
connection from SQL-Server to Mysql works with ODBC-driver 3.51.10.00
and does NOT work with ODBC-driver 3.51.11.00. Maybe someone
experiences similar problems or even has a solution ? Some feedback (to
the group) would be highly appreciated.

We use a Microsoft SQL-Server as Headquarter database and some
Mysql-machines on Redhat as satellite-databases. We use a script to
copy and replicate data between satellite and headquarter. This script
is using simple SQL connecting to Mysql-database using ODBC and
"Openrowset ".

In order to copy only new data from sattelites we use the
Binary_Checksum function from Microsoft SQL-Server. This works with the
3.51.10.00 version perfectly but it fails with the 3.51.11.00 version,
where it gives us the message (from MS-SQL-Server) "msg 8481 Error
expanding "*": all columns incomparable, '*' expanded to zero columns".
This message comes only for some but not for all statements using the
binary_checksum .

The only way to fix this is to stick with the "old" version of the
ODBC-driver. Could someone please explain what is going one?

I will post this also in the relevant newsgroup of MS-SQL-Server

Thanks

greetings from Vienna

Uli


It seems to me that the asterisk (*) sign is not evaluated properly in
the link using the lastest ODBC driver. Is it true that the error only
happens for statements like below?

SELECT * FROM ...

or

SELECT COUNT(*) ...

Or do these errors also occur in queries which do not contain a asterisk?

This is only a guess as I am not familiar with communication between
mySQL and Microsoft SQL servers.

Is there an explicit reason for upgrading your ODBC driver? If not I
would leave it like it is as the upgrade is a minor version change I guess.

Something else (you might already have considered): Is it not possible
to port the main 'Headquarter' database to mySQL as well? You can in
that situation make use of replication to sync your databases at all
servers. Especially when you use ODBC for the application to communicate
with the application this should be relatively simple, as you probably
don't have to change much in your application.

Jonathan

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Jul 23 '05 #2


Jonathan schrieb:
ul*********@lyc os.at wrote:
Dear group,

we are dealing with some very specific problems with ODBC, where a
connection from SQL-Server to Mysql works with ODBC-driver 3.51.10.00
and does NOT work with ODBC-driver 3.51.11.00. Maybe someone
experiences similar problems or even has a solution ? Some feedback (to
the group) would be highly appreciated.

We use a Microsoft SQL-Server as Headquarter database and some
Mysql-machines on Redhat as satellite-databases. We use a script to
copy and replicate data between satellite and headquarter. This script
is using simple SQL connecting to Mysql-database using ODBC and
"Openrowset ".

In order to copy only new data from sattelites we use the
Binary_Checksum function from Microsoft SQL-Server. This works with the
3.51.10.00 version perfectly but it fails with the 3.51.11.00 version,
where it gives us the message (from MS-SQL-Server) "msg 8481 Error
expanding "*": all columns incomparable, '*' expanded to zero columns".
This message comes only for some but not for all statements using the
binary_checksum .

The only way to fix this is to stick with the "old" version of the
ODBC-driver. Could someone please explain what is going one?

I will post this also in the relevant newsgroup of MS-SQL-Server

Thanks

greetings from Vienna

Uli


It seems to me that the asterisk (*) sign is not evaluated properly in
the link using the lastest ODBC driver. Is it true that the error only
happens for statements like below?

SELECT * FROM ...

or

SELECT COUNT(*) ...

Or do these errors also occur in queries which do not contain a asterisk?

This is only a guess as I am not familiar with communication between
mySQL and Microsoft SQL servers.

Is there an explicit reason for upgrading your ODBC driver? If not I
would leave it like it is as the upgrade is a minor version change I guess.

Something else (you might already have considered): Is it not possible
to port the main 'Headquarter' database to mySQL as well? You can in
that situation make use of replication to sync your databases at all
servers. Especially when you use ODBC for the application to communicate
with the application this should be relatively simple, as you probably
don't have to change much in your application.

Jonathan


Dear Jonathan, thanks for the response,

1) It is not possible to switch the whole architecture to MySQL.
(political reasons blah)
2) It happens only with some SELECT a.*,1 from OPENROWSET(.... , select
* from ...) a not for all and i think it has to do something with
characters and collation
3) we can live with the lower version of ODBC since it works, but we
would like to see that it this error will be removed from further
versions of the ODBC-driver
4) Did you ever try to remove a higher version ODBC-driver from a
Windows registry / system in order to install a lower version. It is
virtually impossible. We re-installed the whole system, just to make
sure...

Regards

Uli

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2270
by: Spiggy Topes | last post by:
Hi I have a Visual Basic application that uses ADO to access an Oracle database. I have the latest 9.x ODBC drivers installed, and SQL*Plus tells me I'm looking at Oracle 8i release 8.1.7.4.1 through an Oracle client version 9.2.0.1.0. I'm assuming that these should be compatible... The application has, until now, been running on the MS ODBC drivers for Oracle, but we'd like to get away from using LONGs, and use the
2
9982
by: J. Marshall Latham | last post by:
I have a simple page trying to enter three pieces of information into a database using ODBC on a web site that has .NET Framework 1.0, so I have to use this Microsoft.Data.Odbc.dll which has been working just fine on another web server. Well the web server/web site that I am having trouble with is receiving the following error. Can anyone help me with this? Thanks. JML Access is denied: 'Microsoft.Data.Odbc'. Description: An...
5
40407
by: Alec | last post by:
Hi All, I am currently trying to link in Access 97 to a table in a MSSQL 7 server. Initially the link is fine, however, when I close the access database and re-open it from the same network lacation on a different machine, it tells me that the ODBC connection to 'SQL Server Name' failed. How can I create the linked table permenant no matter what machine the networked database is opened on?
4
13495
by: Eric E | last post by:
Hi all, I'm having quite a bit of trouble with code to create linked tables in Access 2K. I create a DAO tabledef using CreateTableDef against a DAO database object, then set its connection string appropriately. The trouble is when I go to append the tableDef to the collection I get error 3264: No field defined --cannot append TableDef or Index Any suggestions?
7
2558
by: Richard Marsden | last post by:
(also posted to microsoft.public.access.odbcclientsvr but no reply so far: problem concerns ODBC->MS Access) I have some ODBC code that I'm testing against various underlying databases. The code was developed against MySQL but now I'm getting other common options to work. I'm having trouble with Access - even the sample code (intended for Access) is giving some odd results... My setup: Windows 2000 running Access 2000. Using ODBC to...
2
2793
by: xiaotom | last post by:
I want my software to be independant of operation system and databases. That's why I want to use odbc, and don't want to use MFC. Here I have some questions to ask: 1. On unix (like sun solaris), does there exists any kind of midware like odbc? 2. I search on the internet, and find most of the examples are based on PHP. Is there any c++ examples? 3.Once I chose odbc, does that mean that whatever kind of database I
4
6386
by: StefanSerena | last post by:
Hi I'm running Windows 2000 and Office 2003. I want to copy tables from an unknown database format into Access 2.0 and I could do it quite easily if it weren't for the fact that recent ODBC-drivers aren't capable of writing into an Access 2.0 database (only reading). I do have the old Access 2.0 disks including odbc-driver, but it doesn't install on my machine (probably because the newer ones are installed...). And yes, I know that...
3
2569
by: zombiechewtoy | last post by:
I'm having trouble making an ODBC connection using VB.NET 2005. I have tried nearly every connection string found on connectionstrings.com, in almost every format I can think of. I have tried both of the following drivers, as well. Oracle ODBC Driver (version 8.01.05.00) Microsoft ODBC for Oracle Basically, I end up with the same generic error no matter what I try. Here's my code. Try
0
1643
by: elias.farah | last post by:
Hi Everyone, I'm having a lot of trouble with Access 2007 / Vista x64 creating a new ODBC table. Existing ODBC tables are fine, and connect - however creating a new ODBC tables via the visard gives me password errors, depite being able to run odbcad32.exe from the SysWOW64 directory, and testing the connection - giving "success".
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9182
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.