COPY SQLTABLE from 1 SERVER to ANOTHER

COPY SQLTABLE from 1 SERVER to ANOTHER

Postby Jack » Fri Jun 04, 2021 1:48 pm

Hi,
How can i copy one table from a database located on one server to another database located on an other server .

Thanks for your help and samples ,

Philippe
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am

Re: COPY SQLTABLE from 1 SERVER to ANOTHER

Postby nageswaragunupudi » Fri Jun 04, 2021 2:35 pm

Very easy if you use FWH built-in MySql library.

Code: Select all  Expand view

oServer1 := maria_Connect( .... )
oServer2 := maria_Connect(....)

// now copy from oServer1 to oServer2
oCn:CopyTableToServer( cTableName, oServer2 )
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10628
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: COPY SQLTABLE from 1 SERVER to ANOTHER

Postby Jack » Fri Jun 04, 2021 2:56 pm

Thanks for this answer but i 'll a sample for Microsoft MS SQL Server .

Thanks

Philippe
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Enrico Maria Giordano and 56 guests