Showing posts with label Sql server. Show all posts
Showing posts with label Sql server. Show all posts

2016/02/10

How to compare sql server databases structure and data ?


  1. Install SQL Server Data Tools component https://msdn.microsoft.com/en-us/library/hh272686(v=vs.103).aspx in your Visual Studio version. 
  2. Show Sql Server Object Explorer in Visual Studio - View -> SQL Server Object Explorer
  3. Connect to server where one of your db is maintained in SQL Server Object Explorer Window
  4. Right click on the database and choose "Schema compare.." or "Data comparison"

2014/08/22

How to backup SqlServer database ?

1/ Backup file: Right click on Database -> Task -> Backup ...
2/ Script with structure and data: Right click on Database-> Task -> Generate scripts -> On 3rd step of wizard choose 'Advanced' button and select 'Types of data to script':'Schema and data'.