CodePudding user response:
My is SQL Server2008 databaseCodePudding user response:
Fastest link serverEXEC master. The dbo. Sp_addlinkedserver @=N 'link server name server, @ srvproduct=N' @ the provider=N 'SQLNCLI' @ datasrc=https://bbs.csdn.net/topics/N 'XXX. XXX. XXX. XXX'
The EXEC master. The dbo. Sp_addlinkedsrvlogin @ rmtsrvname=N 'link server name, @ useself=N' True ', @ locallogin=NULL, @ rmtuser=NULL, @ rmtpassword=NULL
EXEC master. The dbo. Sp_addlinkedsrvlogin @ rmtsrvname=N 'link server name, @ locallogin=N' local login user '@ useself=N' False '@ rmtuser=N' remote login users' @ rmtpassword=N 'remote login password'
- existing table
Insert into existedTable (fieldsList)
The select fieldsList link from the server name. The name of the database. Dbo. Table name
- there is no table
The select fieldsList
Into the new table name
The from link server name. The name of the database. Dbo. Table name
CodePudding user response:
All can be done with the import and export wizard, a graphical, more convenient,CodePudding user response:
Thank you very much!!!!!!!!!!!!!!!!!!!CodePudding user response:
Thank you very much!!!!!!!!!!!!!!CodePudding user response: