Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Importing data into DB on shared hosting every evening

  • 21-05-2008 09:59PM
    #1
    Registered Users, Registered Users 2 Posts: 872 ✭✭✭


    Hi,

    For a future project, i need to call a webservice at midnight, every night to import up to date data into a MS SQL DB.

    The DB is on a shared hosting box, so im wondering what options i would have to call the code automatically that would call the web service that would import the data into the db.

    edit, im using C# and ASP.NET

    Thanks alot.


Comments

  • Registered Users, Registered Users 2 Posts: 3,594 ✭✭✭forbairt


    windows task scheduler ?

    I'm not sure of the kinda of access you're allowed on the system though ...

    I know I set this up on XP before .. (but it was a local machine) on linux I'd just say use cron ....


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    Could you schedule this from within SQL Server itself?


  • Registered Users, Registered Users 2 Posts: 2,931 ✭✭✭Ginger


    SQL 2005 supports CLR functions which you could have set to run using the SQL Agent as a job..

    This post does a walkthrough of creating a CLR function to call an external web service.

    You can then schedule the SP to run at midnight every day


  • Moderators, Society & Culture Moderators Posts: 9,688 Mod ✭✭✭✭stevenmu


    You could also just write an app that will run on a local PC/server that calls the webservice, gets the data and writes it to your remote SQL server. And schedule it with the windows scheduler mentioned above


Advertisement