If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > help me!!!how to write such sql in mysql?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-19-03, 06:58
feelfly feelfly is offline
Registered User
 
Join Date: Dec 2003
Posts: 18
help me!!!how to write such sql in mysql?

in sql: insert into table select from ...
can select from a remote data base server such as sqlserver using odbc
as 'SELECT * into test01 FROM Fund IN [ODBC] [ODBC;Driver=SQL
Server;UID=admin;PWD=;Server=(lacal);DataBase=CMBX MDM;]'in access.
thanks!
Reply With Quote
  #2 (permalink)  
Old 12-19-03, 10:33
sundialsvcs sundialsvcs is offline
Registered User
 
Join Date: Oct 2003
Posts: 706
Question

It sounds to me like you are trying to insert data from an MS-SQL Server database into a MySQL database but your post is really not clear.

If you are using MS-Access to do the job then you can set up two ODBC connections, one to the MS-SQL data and the other to MySQL, then use MS-Access queries to move the data from one source to the other.
__________________
ChimneySweep(R): fast, automatic
table repair at a click of the
mouse! http://www.sundialservices.com
Reply With Quote
  #3 (permalink)  
Old 12-20-03, 02:20
feelfly feelfly is offline
Registered User
 
Join Date: Dec 2003
Posts: 18
sorry,my problem is not be expressed clearly.indeed ,I am trying to insert data from an MS-SQL Server database into a MySQL database ,MS-SQL use odbc or ado
but Mysql I use embedded mysql so i don't if i can insert data from a remote MS-SQL Server database into a embedded MySQL database in batch.
samely like 'insert into test01 selcct FROM Fund IN [ODBC] [ODBC;Driver=SQL Server;UID=admin;PWD=;Server=lacal);DataBase=CMBX
MDM;]' can i realize it ? thanks!
Reply With Quote
  #4 (permalink)  
Old 12-20-03, 15:43
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
Why did you not use a dts package to perform this task
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #5 (permalink)  
Old 12-20-03, 23:29
feelfly feelfly is offline
Registered User
 
Join Date: Dec 2003
Posts: 18
what is dts?
Reply With Quote
  #6 (permalink)  
Old 12-20-03, 23:43
feelfly feelfly is offline
Registered User
 
Join Date: Dec 2003
Posts: 18
i used embedded mysql
i want to realize conviting data from sqlserver to mysql in my program
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On