forums › forums › SQLyog › SQLyog: Bugs / Feature Requests › Problem in ODBC-Import
- This topic is empty.
-
AuthorPosts
-
-
January 28, 2004 at 11:42 am #8306SmeagleMember
Hiya,
when importing tables from MSSQL, a “varchar” type larger than 255 bytes is imported as “blob (length)” which is not valid syntax. And I think the more obvious choice for large varchars would be “text” instead of “blob”. What do you think?
If I replace “blob(xxx)” with “text” it seems to work.
Thanks,
– Oliver
-
February 8, 2004 at 9:06 pm #15414ShadowMember
You may remove the length (xxx) from the definition, just leave the BLOB.
-
February 9, 2004 at 7:53 am #15415SmeagleMember
Hiya,
I know, it works when I change the “blob(xxx)” to “text”. It would also work with “blob”, but as the original datatype was “varchar”, I set it to “text”. But I import a _large_ dump from ms sql to mysql often, and it's not nice to have to do this everytime “by hand”…
– Oliver
-
February 9, 2004 at 9:48 am #15416ShadowMember
It could be a feature request: SQLyog should watch out for such columns and do a silent column type change or could ask the user what to do. Of course, SQLyog should pay attention to the size of the field and do the conversion accordingly (tinyblob, blob…).
TEXT and BLOB fields are essentially the same in MySQL…
-
February 12, 2004 at 9:03 am #15417SmeagleMember
Hello!
is there a solution? I have to do this every morning. I have to split the import into severel “.sql”s and have to edit them one after another. As we are talking about a database with ~500MB, this takes some time.
I would like to simply start an import directly into mysql, that is not possible now.
Please!
– Oliver
-
February 12, 2004 at 9:36 am #15418SmeagleMember
Ups,
just noticed, there is a new version… Tried it, and: it works!
Thanks,
– Oliver
-
February 15, 2004 at 7:04 am #15419RiteshMember
Great 🙂
-
February 23, 2004 at 8:23 am #15420SmeagleMember
Hmm,
🙁
I have to correct myself:
It still isn't working. Last time I forgot to delete the original database, so the table structure was reused.
If I import into a empty database, sqlyog still converts “varchar(>254)” to “blob (>254)”
This will not work. I would suggest to use “text” or “blob” (without length) for varchars with more than 254 characters length.
– Oliver
-
-
AuthorPosts
- You must be logged in to reply to this topic.