如何连接不同的服务器数据库表格 [英] how to connect different server database tabels

查看:52
本文介绍了如何连接不同的服务器数据库表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想从一个SQL Server传输表数据:74.13.0.452
数据库:TestDB1
表格名称:Table1
用户名:UN1
密码:PW1

到另一个类似的

sql服务器:198.0.168.101
数据库:TestDB2
表格名称:table2
用户名:UN2
密码:PW2.
请告诉我该如何编写查询.



i want to transfer tables data from one sql server:74.13.0.452
database: TestDB1
table Name:Table1
UserName: UN1
Password:PW1

to another like

sql server:198.0.168.101
database:TestDB2
table name:table2
UserName:UN2
password:PW2.
please tell me how to write query for this.

推荐答案

知道要使用哪种语言进行操作会很方便.我在mysql数据库上的php中按以下方式进行数据库备份.这会通过电子邮件发送给我一个可以导入的sql文件.

It would be handy to know what language you are looking to do this in? I do DB backups as follows in php on a mysql database. This e-mails me an sql file I can then import.

backup_tables('localhost','username','password','DB');


/* backup the db OR just a table */
function backup_tables(


主机,


用户,


这篇关于如何连接不同的服务器数据库表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆