I set up a linked server within Microsoft SQL Server. The linked server points at a MySQL database. I am trying to select data from SQL Server and insert it into the MySQL database.
I have the following query transferring pricing information from SQL Server to MySQL via the linked server:
insert into MYSQL_DB...ProductPrice(
Price,
ProductId
)
select
p.Price,
p.ProductId
from
SQL_Server_DB.ProductPrice p
I receive the following error when I try to do this:
The OLE DB provider "MSDASQL" for linked server "MYSQL_DB" supplied invalid metadata for column "Price". The precision exceeded the allowable maximum.
The field "Price" is a decimal. In SQL Server, it is a decimal(18, 0). In MySQL, the field is decimal(65, 30).
I understand that these are different precision levels. But the error message makes it seem like the SQL Server precision exceeds the MySQL precision, which is not true from my understanding.
I'm a little confused about how to resolve this. Anyone have any suggestions?