Can I get data from my MSSql server and upload it to app engine via some python scripts?

Sarge

I want to write a GAE application that gets the data fom my MSSQL server, that will be converted and stored in GAEs cloud db, and used for some other processes.

Is there any possibility for that? I could not find any info about connecting form gae to mssql and query data.

I found Bulk Loader but dont think it has any use for me. And also this page killed my hopes about this, looks like it has no windows support.

Sarge

I used pyodbc to connect my MSSQL server, using this code lines;

con = pyodbc.connect("DRIVER={SQL Server}; SERVER=my_server_ip; DATABASE=db_name; UID=user_id; PWD=password; CHARSET=UNICODE")
cur = con.cursor()

(First I wrote some more code to convert database tables into CSV files then uploaded them.)

Afterwards I used bulkloader to upload and download from tables. Bulkloader documentation is lack of examples tho. I wrote this code to upload and download via os library that provides dos commands to work in script. Provided CSV files to upload from the file I stored them after conversion.

Upload:

os.system("appcfg.py upload_data --config_file=bulkloader.yaml --log_file=/logs --url=http://my_app_name.appspot.com/_ah/remote_api --kind=kind --filename=CSV_files/table_name.csv --email=my_email_adress)

Download:

os.system("bulkloader.py --download --config_file=bulkloader.yaml --kind=kind --url=http://my_app_name.appspot.com/_ah/remote_api --filename=CSV_files/table_name.csv")

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

I get 404 response trying to access a jsp page in my localhost server from my Android app

분류에서Dev

I cant get into my Ubuntu 14.04 server running in virtualbox via SSH from teraterm

분류에서Dev

How i can get the td data getting from css to attach to my current row ,and use for my logic

분류에서Dev

Why am I getting an additional "*" on some lines of my python app?

분류에서Dev

can i save data of an my app user in a file not data base

분류에서Dev

I can't run my mobile app on worklight development server

분류에서Dev

Can I localize my whole android app from a button click

분류에서Dev

I can't get my UITableView to reload data in swift

분류에서Dev

How can I sync my data from an external database in Rails?

분류에서Dev

AngularJS - How can I get data from GET method

분류에서Dev

Python: How can I read csv and clean my data in a loop

분류에서Dev

I have json data and i want to select some items only how can i do it in python?

분류에서Dev

How can I get a rails mounted engine to inherit http auth from an ActionController?

분류에서Dev

skobbler how i can save in my app a json downloaded from my profile?

분류에서Dev

how can i get my local DB data to fill my txt box using LINQ?

분류에서Dev

how can i link an XML data file from my hard drive (not web) to my project?

분류에서Dev

How can I avoid cheat engine to see my strings at runtime

분류에서Dev

How can I send inputs to a URL (someone else's server) and get the output back for use in my PHP?

분류에서Dev

Android how i can do GET request to my server every minute?

분류에서Dev

How can I upload my videos to the recommended encoding settings for YouTube?

분류에서Dev

How can I get my public IP address from the command line, if I am behind a router?

분류에서Dev

How can I find my DHCP server?

분류에서Dev

How can I find my DHCP server?

분류에서Dev

Can I hack people connecting to my server?

분류에서Dev

Any way I can load KML data from Google maps (again) via JS API?

분류에서Dev

Can I use the access token directly from FB.login on my server?

분류에서Dev

I am attempting to use Python MultinomialNB from sklearn to classify some data but it returns a Value Error

분류에서Dev

How can I incorporate Python scripts into web pages?

분류에서Dev

Can I make some of my appointments not show up on the sidebar?

Related 관련 기사

  1. 1

    I get 404 response trying to access a jsp page in my localhost server from my Android app

  2. 2

    I cant get into my Ubuntu 14.04 server running in virtualbox via SSH from teraterm

  3. 3

    How i can get the td data getting from css to attach to my current row ,and use for my logic

  4. 4

    Why am I getting an additional "*" on some lines of my python app?

  5. 5

    can i save data of an my app user in a file not data base

  6. 6

    I can't run my mobile app on worklight development server

  7. 7

    Can I localize my whole android app from a button click

  8. 8

    I can't get my UITableView to reload data in swift

  9. 9

    How can I sync my data from an external database in Rails?

  10. 10

    AngularJS - How can I get data from GET method

  11. 11

    Python: How can I read csv and clean my data in a loop

  12. 12

    I have json data and i want to select some items only how can i do it in python?

  13. 13

    How can I get a rails mounted engine to inherit http auth from an ActionController?

  14. 14

    skobbler how i can save in my app a json downloaded from my profile?

  15. 15

    how can i get my local DB data to fill my txt box using LINQ?

  16. 16

    how can i link an XML data file from my hard drive (not web) to my project?

  17. 17

    How can I avoid cheat engine to see my strings at runtime

  18. 18

    How can I send inputs to a URL (someone else's server) and get the output back for use in my PHP?

  19. 19

    Android how i can do GET request to my server every minute?

  20. 20

    How can I upload my videos to the recommended encoding settings for YouTube?

  21. 21

    How can I get my public IP address from the command line, if I am behind a router?

  22. 22

    How can I find my DHCP server?

  23. 23

    How can I find my DHCP server?

  24. 24

    Can I hack people connecting to my server?

  25. 25

    Any way I can load KML data from Google maps (again) via JS API?

  26. 26

    Can I use the access token directly from FB.login on my server?

  27. 27

    I am attempting to use Python MultinomialNB from sklearn to classify some data but it returns a Value Error

  28. 28

    How can I incorporate Python scripts into web pages?

  29. 29

    Can I make some of my appointments not show up on the sidebar?

뜨겁다태그

보관