Copy table from one server to another in python(Sybase temporary table) -
import sybpydb import pandas bconn = sybpydb.connect(user='user', password='password', servername='dev03') dbcur = bconn.cursor() dbcur.execute("select top 1 * #tmptbl connectioninfo") bconn.commit() df = pandas.read_sql("select * #tmptbl", this.bconn) print(df) bconn1 = sybpydb.connect(user='user', password='password', servername='qcp01') dbcur1 = bconn.cursor()
i want copy #tmptbl qcp01 server(using bconn1) . there way bring tmptbl data qcp01?
any appreciated.
Comments
Post a Comment