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.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 verifying after production data migration

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 MS
SQL 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.TABLES

Run this, cut and paste the result, and run thos in both environments

Make sure to remove the last UNION ALL

Are tables owned by other schemas than dbo? (I Hate that)

Filsizes sure could be different between vesions

If you are REALLY Worried, you script ot all the DDL, sprocs, functions, etc and create a new database in the new version

THEN bcp out all the data, then bcp the data into the new version

You will sure find out if there are problems that way

It'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 written

Your choice..the counts should be good, but you should make sure to regression test ALL of the sprocs with a script



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page
   

- Advertisement -