Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
gangadhara.ms
Aged Yak Warrior
549 Posts |
Posted - 2011-11-09 : 21:00:31
|
Dear Experts,We are migrating the Production database from one SQL server 2005 to shared SQL server 2008 environment by backing up and restoring technique.For this purpose i want to confirm the all the data has been successfully transferred,can somebody advice the kind of report which i can check like filesize,datarows count,number of files.(Any query will be helpful)Any thing which is critical as part of the production database verification after migration will be helpful.I need to give justification and proof to owner data has been migrated properly.Thanks,Gangadhara MSSQL Developer and DBA |
|
X002548
Not Just a Number
15586 Posts |
Posted - 2011-11-09 : 21:41:28
|
SELECT 'SELECT ' + '''' + TABLE_NAME + '''' + ' AS TBNAME, COUNT(*) FROM ' + TABLE_NAME + ' UNION ALL 'FROM INFORMATION_SCHEMA.TABLESRun this, cut and paste the result, and run thos in both environmentsMake sure to remove the last UNION ALLAre tables owned by other schemas than dbo? (I Hate that)Filsizes sure could be different between vesionsIf you are REALLY Worried, you script ot all the DDL, sprocs, functions, etc and create a new database in the new versionTHEN bcp out all the data, then bcp the data into the new versionYou will sure find out if there are problems that wayIt's just a lot more work..unless of course you write a sproc the bcp's out all the tables, and another one that bcp's all the data...which I have writtenYour choice..the counts should be good, but you should make sure to regression test ALL of the sprocs with a scriptBrett8-)Hint: Want your questions answered fast? Follow the direction in this linkhttp://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspxWant to help yourself?http://msdn.microsoft.com/en-us/library/ms130214.aspxhttp://weblogs.sqlteam.com/brettk/http://brettkaiser.blogspot.com/ |
|
|
|
|
|
|
|