[Last Call] Learn how to a build a cloud-first strategyRegister Now


Update External Web MS SQL database server

Posted on 2011-10-07
Medium Priority
Last Modified: 2012-05-12
Hi I am hoping there is an easy way of doing waht I am after. I have an internal sql database which is being updated everyday. I want to know the fastest way to sync or update this to the web. I dont know how you build and sql query for two different connections.
Question by:taz8020
  • 3
  • 2
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36930799
What do you mean "sync to the web"?  Are you trying to back it up offsite, or do you want to be able to query the database from a web page?

Author Comment

ID: 36930845
sorry, I have an internal mssql server in work and a hosted mssql server. I want the fastest way to update the hosted database. Also the website database does not have all the coloums of the internal database.
Hope this makes more sence.
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36930890
So you don't want to use the built-in tools to replicate the data (since the two databases aren't identical)?  I'd say the best way would be to set up a second connection in your site (to the offsite database) and simply run a second query when you update the local database.  

For what it's worth, you may be better off in the long run setting up some sort of synchronization between the two SQL servers.

Author Comment

ID: 36930937
Hi paul thanks,  2 questions:
1)how you build and sql query for two different connections.
2) how do you go about synchronization
LVL 34

Accepted Solution

Paul MacDonald earned 2000 total points
ID: 36930974
1) You'd have two different connection strings of course.  Whether or not you could run the same query on both connections depends on the structure of the two database.  You imply the hosted database is a subset of the inhouse database so some queries may have to be written twice (once for inhouse, once for hosted).

2)  This depends on the version(s) of SQL Server you're running, what type of sychronization you want, and what your host allows.  Here are a few articles relevant to SQL 2008:

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question