0

Guys, how to copy View records from REMOTE SQL Server 2005 to a Table on LOCAL mySQL using PHP?

from the View (REMOTE SQL Server 2005) : select * from source_View
Fields : username, firstname, lastname, email, nik

into (local mySQL) : select * from target_table
Fields : username, firstname, lastname, email, idnumber

Please help, thank you..

2
  • one time only or scheduled? ODBC-access? migrating tool if so, if not, I'd script with php/xml. Commented Mar 16, 2011 at 13:03
  • Scheduled, that's why I have to use a batch file that runs a PHP script Commented Mar 17, 2011 at 1:57

1 Answer 1

0

This will not work as you cannot have an SQL statement that processes records from two different hosts in one go. Why don't you just get sql dump of the table and import it using MySQL.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you for the reply. But I need to do it automatically on scheduler. That's why I have to use a batch file to run a PHP script to copy the records.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.