schemazen | Script and create SQL Server | SQL Database library
kandi X-RAY | schemazen Summary
kandi X-RAY | schemazen Summary
Script and create SQL Server objects quickly
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of schemazen
schemazen Key Features
schemazen Examples and Code Snippets
Community Discussions
Trending Discussions on schemazen
QUESTION
What i would like to achieve is have two different SQL Server Databases, on two different servers running the same SQL Server Version( SQL Server 2008 R2 RTM - 10.50.1600.1 ) to be synched daily. Synched meaning just transferring the new data ( or even all the data ) from one of the two ("parent" database ) to the other ( "child" database ). We want the parent to force its shema as well all its data to its child.
What i have already triedKnowing that the two machines run on windows server 2012 R2 i have already tried to implement a solution ( although i am no expert when it comes to SQL Server ) using the following tools.
- PHP v7.2
- ExeOutputforPHP ( https://www.exeoutput.com/ )
- WinSCP ( For its build in ftp methods https://winscp.net )
- Schemazen ( https://github.com/sethreno/schemazen )
So what i would do would be this :
- Read a configuration file using PHP ( server, user, pass, database, etc.. )
- When PHP would not produce any errors i would trigger the schemazen script method.
- When everything would go smooth i would trigger the winscp's ftp method to the remote Server
- I would Locate the ftp directory and using the Schemazen create method i would import the data again by reading a configuration file.
ANSWER
Answered 2019-Jan-28 at 09:57Depending upon your requirements you could simply try backup and restore which seems to satisfy your requirement. Alternatively try Replication but that adds considerably to the complexity.
There are also various tools that can do this. If you can pay for them Redgate work pretty well. I'm sure there are also free ones but I don't have experience with them.
I wouldn't recommend rolling your own.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install schemazen
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page