473,783 Members | 2,574 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL Script to sync. two servers

8 New Member
Hi,

I have two servers, one is a production server and other is a testing server. Both these servers must be in sync.

Please can anyone let me know how to synchronize these two servers(automat ically) without replication.

In particular i want databases, tables, views, users and stored procedures to be same in both the servers. If a table gets added/deleted/update on the production , the same must be done on testing server.

Please help on doing this. Can you please help me in writing the script to backup all databases and restore it across network.

Please give a best solution.

Thanks in advance
Feb 19 '08 #1
3 2819
radcaesar
759 Recognized Expert Contributor
The one and only way you have is transactional replication. Why don't you prefer replication?
Feb 22 '08 #2
Anand Naphade
1 New Member
You are right..
Replication is the best way to Synchronize Two servers..
Feb 11 '10 #3
sashi
1,754 Recognized Expert Top Contributor
how to synchronize these two servers(automat ically) without replication
Look at database mirroring option. Since you have 2 server, your production server can play the role of principal while your testing server can be the mirror.

All you need to do is create snapshot of the mirrored database to view the mirroring result.
Feb 13 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
2835
by: Paul Winkler | last post by:
This is driving me up the wall... any help would be MUCH appreciated. I have a module that I've whittled down into a 65-line script in an attempt to isolate the cause of the problem. (Real domain names have been removed in everything below.) SYNOPSIS: I have 2 target servers, at https://A.com and https://B.com. I have 2 clients, wget and my python script.
2
5394
by: ~K | last post by:
I have 3 Oracle servers that I would like to keep in sync. Only one is used as my production, the other is a backup and the third is used for development purposes. In case my primary Oracle server goes down, I would like to immediately use the secondary server. My question is, what is the best way to keep all the servers up to date such that if tables are updated on my primary server they immediately are updated in the subsequent servers....
3
12233
by: Daniel | last post by:
Ok..here is my problem. I have two SQL servers that I need to have identical, at least semi-real time data on. One is in a public DMZ with full access to and from the internet, and one is behind a corporate firewall and the box can get out to the internet but cannot be hit directly from the internet in. The two are on seperate networks and cannot be connected via lan. Is there a way for me to have semi-real time data transfers between...
4
3406
by: nek | last post by:
Greetings, Platform is W2K, DB2 V8.1 FP2. We have a large number of servers in different cities and I would like to occasionally update 'db cfg' parameters whenever needs arise. Instead of connecting to each server (via remote desktop connection) to do this, is it possible to write script containing 'db2 update db cfg for dbname..' and other info such as 'connecting to IP addresses
2
6336
by: M.L. | last post by:
Hello, I have two db2 box here, running a vrrp daemon to provide IP failover... The two nodes are perfectly identical (same os, users, and db2 setup (instances, db, tables...)). <---- Common Virtual IP Addr ----> MASTER (working) BACKUP (standby)
0
1294
by: Glenn Wilson | last post by:
I have been given a small project.... I have to be able to connect to several time servers and provide reports on the differance between these systems. At the moment I have a list of 3 servers... One onsite and two offsite. Once done I would then like to connect to several Windows Systems and verify these with the collected data from the servers. Does anyone have any links or resources that will assist in the project. At the moment I am...
1
3953
by: kksandeep | last post by:
i am using this three files to uplod file. i got this file from net but i think these have some error. i am new to this field plz help the script i found is some helpful but not too that i need my objective is this that when i uplod a file it should be desply on same page with ajax uplod after when i refresh page this should be not remains longer and on clicking other image its replase previous image plz help how i can do this the...
6
3532
by: kinedesigner | last post by:
We're using a perl script to fetch images from the inhouse server & pump them to a remote server with much higher bandwidth. I want to remove the Everyone account from the target folder on the remote server, so users may only access it with username & password. When I do this, the perl script stops working. I can only assume the perl script is operating under the Everyone account. How do I change the functionality so that the Everyone...
29
3325
by: zalek | last post by:
I am writing application with Ajax in sync mode - xmlHttp.open("GET", url, false). I noticed that in FireFox handler doesn't starts. It starts when I use xmlHttp.open("GET", url,true). I need to use it in sync mode. Any ideas what can I do? Thanks, Zalek.
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9946
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.