While migrating a SQL-Database from stage to live I searched for an easy way to identify all changes I made. Of course I wrote them all down in my update log, but it should not be too complicated for a tool to automatically compare 2 databases. And yes, there is at least one tool, and best of all: It’s free!! (Ah no, best of all is that it’s working fine, but it’s also great that it’s free….)
Read the rest of this entry
While migrating a SQL-Database from stage to live I searched for an easy way to identify all changes I made. Of course I wrote them all down in my update log, but it should not be too complicated for a tool to automatically compare 2 databases. And yes, there is at least one tool, and best of all: It’s free!! (Ah no, best of all is that it’s working fine, but it’s also great that it’s free….)
Starinix Corporation has released a tool called ‘Starinix Database Compare’. Current version is 2.0.14. The tool supports lots of different sources, like MySQL, MS SQL and MS Access. I’ve only tested it with MS SQL 2000 and MS SQL 2005 and this works fine. If any modifications found the tool uses ExamDiff to show the difference in details. Additionally you could also create a snapshot. And if you like the tool don’t forget to donate.
Make sure you also check out DbDiff from Codeplex.
And I just noticed that there is also a Wikipedia Article about SQL Comparison tools.
Compare SQL Databases
As I’m no SQL DBA I wondered how to get details about my current databases, especially the size, because suddenly my database size increased a lot and I had no initial idea why. Microsoft SQL Server Management Studio (for MS SQL 2005) does not seem to have an easy solution for this. So searching around I found a freeware tool from SQLDBTools.com called SQLDBSize.
Additionally a colleague informed me about a script from Mohit Nayyar he found at SQLServerCentral.com :
Read the rest of this entry
As I’m no SQL DBA I wondered how to get details about my current databases, especially the size, because suddenly my database size increased a lot and I had no initial idea why. Microsoft SQL Server Management Studio (for MS SQL 2005) does not seem to have an easy solution for this.  So searching around I found a freeware tool from SQLDBTools.com called SQLDBSize.   Additionally a colleague informed me about a script from Mohit Nayyar he found at SQLServerCentral.com : CREATE TABLE #temp (TableName NVARCHAR (128), RowsCnt VARCHAR (11), ReservedSpace VARCHAR(18), DataSpace VARCHAR(18), CombinedIndexSpace VARCHAR(18), UnusedSpace VARCHAR(18)) EXEC sp_MSforeachtable 'INSERT INTO #temp (TableName, RowsCnt, ReservedSpace, DataSpace, CombinedIndexSpace, UnusedSpace) EXEC sp_spaceused ''?'', FALSE' SELECT TableName, RowsCnt, ReservedSpace, DataSpace, CombinedIndexSpace, UnusedSpace FROM #temp ORDER BY TableName DROP TABLE #temp The script works fine with SQL2005, but it uses an undocumented SP (sp_MSforeachtable) so there is no guarantee that it will be available in future releases of MS SQL Server) Technorati Tags: MS SQL Table size