Import data from an external sql server database into local database using php -


i have website query 1 of our external sql servers , insert records local server of website.

i'm connecting external database, querying table, truncating local table, , running foreach insert data local table.

the process works fine, problem takes long time.

i want see if guys give me hints on how speed process. if there way this, please let me know.

there many factors determine best approach. database copying supposed same source one, or have entries not in source one. if want them identical, , web site database read clone, have bunch of ways in sql server this: replication, log shipping, mirroring, ssis packages. depends on how want synchronize databases , lot of other factors.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -