Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Updating a database on a different server

Explorer ,
Feb 22, 2009 Feb 22, 2009
I currently publish news articles using CF to an MS SQL Server 2005 Db. I'd like to publish them to my website if possible, which is hosted on a dedicated server hosting package, where I have remote access to admin the server, IIS settings, DB settings etc.

Rather than mannually update the website and post the article twice, is there a way I can get each server to talk to one another and post to the external webserver somehow?

Could I perhaps export an xml document or database dump?

Thanks in advance
TOPICS
Database access
674
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 22, 2009 Feb 22, 2009
There's a number of ways you can tackle this.

If you have access to the Datasource admin, you can set up a Datasource to the remote Database (as far as a CF datasource is concerned, it's just basically just a combination of server name/IP, username, and pw).

So on the server that you post your news to, you can do an INSERT to your local datasource, and remote datasource.

If you don't have that kind of access... then ya you can have one machine pull data from the other using CFHTTP and grab some XML from the source. Or create a CFC that acts as a Web Service on the remote server (your website I guess), and you call a function and pass the details of the news.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 23, 2009 Feb 23, 2009
Thanks for your reply.

Could you please tell me how I can setup a datasource to the remote server?

Thanks again
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 23, 2009 Feb 23, 2009
LATEST
I've managed to use cfftp to ftp to my site, are there any security issues I need to be aware of by using this method?

Thankyou
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources