Update Database on 2 Server - sql-server

I want to make a Clone server Like Server A and Server B
Ex :
After I'm making update in Server A data then on Server B is Sync Automatically or Programatically with Server A. When update Stored Procedure on Server A the server B is Sync.
is it possible ?
I don't want an answer like Backup then Restore.

You can use SQL server replication.
More information you can refer
SQL Server Replication

An other option could be using Mirroring on SQL Server although it will not be continued on feature versions of SQL Server.
Please note that the secondary database is readonly copy of the principal database in mirroring.
If you have plans for versions after SQL Server 2016, you can think of using Always On Availability Groups

Related

Replicate Changes from oracle to Sql Server

I have Oracle database 11 g in which I have many tables. I want to replicate few of these tables in SQL server so whenever a new record is inserted in oracle table I also want to update in SQL server table. I have created linked server but don't know what to do next. Kindly guide me how can I replicate changes on SQL server side.
Use Goldengate (An Oracle tool) that can do bi-directional replication from Oracle to Sql Server. See this:
http://www.oracle.com/us/products/middleware/data-integration/goldengate/using-gg11g-for-sql-server-1489372.pdf

Connecting Oracle to Microsoft SQL Server on 2 different servers

I am trying to make a connection between Oracle and SQL Server to insert some values from Oracle into SQL Server. I have 2 questions which i was hoping you can help.
There is a stored procedure created in Oracle 11g database. It joins a few tables together and pushes the values into a table called my_table in SQL Server.
The issue/question I have: I've tried to make a connection between Oracle and SQL Server using this link: Making a Connection from Oracle to SQL Server - Page 2 — DatabaseJournal.com
The instruction is however for when Oracle and SQL Server are on a same server.
As is my case Oracle is on one server and SQL Server is on another, I am struggling to understand the concept of setting up Listener and tbs.
Do I have to do any configuration on SQL Server? Do I need to create the DNS on SQL Server?
When I create a DNS in Oracle server, the connection to SQL Server is successful (port 1433) but I'm not sure how to alter my Listener and TNS for that.
My Oracle knowledge is not advanced but so far I've managed to get to this point. Hope you can help me resolve the last bit of the puzzle.

SQL Replication (subscriber) can't connect to publication

I have 2 virtual machines, one with SQL Server 2008 R2 and another with SQL Server 2012 Express.
On 1 I have configuration for replication (publication), and I would like to setup Express version as a subscriber.
But I can't to connect to publisher
SQL Server replication requires the actual server name to make a
connection to the server. Specify the actual server name, 'XXXX'.
(Replication.Utilities)
I have tried to cheat and added XXXX server name to hosts file, but it doesn't help.
Additionally I used to run http://www.hagrin.com/332/fixing-sql-server-replication-requires-actual-server-name-make-connection-server-error action for setup publication in correct way
What I need to do for successful connection ?
Replication is very picky about the actual server name. At both the publisher and subscriber, run select ##servername to see what you should be using. My guess is that you've got a DNS alias for at least one of them.

how ms-access and sql server interact each other?

I have an ms-access database and I need when ever I add a record to my table automatically add a similar record to sql database how it is possible ?
Edit: How I can create an SSIS package(s) and set SQL Server Agent run to periodically load the data?
If you are using SQL Server 2000 you can use replication. But this feature is deprecated from SQL Server 2005 onwards. See http://msdn.microsoft.com/en-us/library/ms143470.aspx.
Assuming that you are on a later version, there are a couple of options I can see:
1) Migrate from Access to SQL Server Express and use replication.
2) Create an SSIS package(s) to import the data. The package(s) can be scheduled in SQL Server Agent run to periodically load the data.

postgresql with SQL Server

I have two databases servers one on SQL Server 2000, second on PostgreSQL on different server. I want to link them. I create duplicate table on the PostgreSQL. Now I want, when new value appeared in SQL Server duplicate them to PostgreSQL. How to do that? How can I see the SQL Server on PostgreSQL? Or must I create an application which will send message from SQL Server to PostgreSQL?
Here's a description on how to set up master/slave replication between SQL Server and Postgres (i.e. SQL Server=master updates to Postgres):
http://blog.hagander.net/archives/103-Replicating-from-MS-SQL-Server-to-PostgreSQL.html
Looks like your scenario.

Resources