visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Databases :: MySql :: how to read a mysql file on MS SQL server


By: Squibi U.S.A.  Date: 10/02/2003 00:00:00  English  Points: 50 Status: Answered
Quality : Excellent
I have a Mysql database. I want to use VB to export this database to a file, which can read by sql server . However, I don't want to use any software to convert it. I want to hard code it. What can I do?

Thanks very much for any help in advance.

By: VGR Date: 10/02/2003 10:20:00 English  Type : Answer
easy
look doc at <A HREF="http://www.mysql.net">www.mysql.net</A> and search for keyword "OUTFILE"

stemanet to execute is SELECT * FROM tablename INTO OUTFILE 'output.txt' SEPARATED BY ... DELIMITED BY... TERMINATED BY... (as you wish)

Look the documentation page on this, you'll find the thing you need : the statement to generate a CSV file ;-))

CSV is directly importable in all Macro$ux products, from eXcel to Access via Word and - why not ? - MS-SqlServer

have fun

Do register to be able to answer

EContact
browser fav
page generated in 295.281890 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page