I would like to have a table in SQL server update daily from a table that is already updated daily in KDB. I have connected ny SQL database to python and plan to do the same with the KDB database but I am not sure what my next step would be to have the KDB table update the SQL table.
Here is my code so far which successfully connects to the database
import pyodbc
db = pyodbc.connect(
r'DRIVER={SQL Server Native Client 10.0};'
r'SERVER=serverName;'
r'DATABASE=DBName;'
r'UID=UN;'
r'PWD=PW')
cur = db.cursor()
SQLCommand = ("SELECT * "
"FROM Table1")
cur.execute(SQLCommand)
results = cur.fetchone()
while results:
results = cur.fetchall()