Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 11th, 2004, 02:39 PM
rvw rvw is offline
Registered User
 
Join Date: Oct 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default DTS to MySQL: problems with conversion

On my laptop I have MS SQL 2000 running next to MySQL. I have MyODBC installed to convert data from SQL2K with DTS. Most tables convert without a problem, but some not. Take this table:

- id (decimal 18,0 not null)
- name (varchar 50 null)
- order (decimal 18,0 null)
- value (decimal 18,0 null)
- deleted (char 1 null)

If I let DTS convert this table, the table is created succesfully. The types and names are the same in MySQL, but it doesn't work.

I get the error message from DTS: Error at Destination for Row number 1. Errors encountered so far in this task: 1.

So I've copied all data by hand for the first row (using MySQL Front), and no problem there. Then I've used DTS again, but left out one column at a time. It turned out that if I left "order" out, the table was converted normally. If I convert only the order-column, I get the same error. If I look at the data of the order-column, it's just numbers between 1 and 40. I've changed the numbers to all 0, but that didn't change anything. The strange thing is that the value- and id-columns have the same data type but no problems.

I have similar problems with other tables, with a float (SQL2K) to double (MySQL), and a varchar 500 to text conversion. Any ideas what causes this problem?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion from C#/SQL Server 2005 to C#/MySQL code_lover General .NET 1 March 6th, 2007 08:51 AM
Problems with php and mysql jessica368 MySQL 0 November 3rd, 2005 04:36 PM
MySQL Config Problems socoolbrewster MySQL 2 September 1st, 2005 06:09 PM
problems installing php and mySQL mjmadick Beginning PHP 1 July 26th, 2004 02:46 AM
connect to mysql problems Deuce868 JSP Basics 1 March 7th, 2004 10:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.