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
 General SQL Server Forums
 Data Corruption Issues
 UNABLE TO BRING DATA THRU SELECT * INSERT

Author  Topic 

sqlserverdbam
Yak Posting Veteran

54 Posts

Posted - 2008-10-14 : 14:47:56
Hi,

I've corrupted DB.I want to bring few tables from corrupted to newely create database thru select * insert option.
command shows error adn failed at bad page.
Is there any way I can save data?

please advice.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-10-14 : 15:10:43
Try bcp'ing the data out to files and then back into new tables.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sqlserverdbam
Yak Posting Veteran

54 Posts

Posted - 2008-10-14 : 15:15:07
I've tested bcp's option also.The bcp is running ,running ..... and so,the moment it reached to corruped page,bcps failed.

Looks to me fe tables are badly corrupted.

Thanks for your quick response.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-10-14 : 15:15:50
Can you restore from backup?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sqlserverdbam
Yak Posting Veteran

54 Posts

Posted - 2008-10-14 : 16:14:41
Yes, but I've backup of 9/21.I jumped into this issue after all these things get screwed up.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-10-14 : 16:21:18
Try using the /F and /L switches in the bcp command to get as much data as possible.

Personally I'd open a case with Microsoft on this as they would be able to help you out rather quickly. They would know what is possible and what is not based upon the output of DBCC CHECKDB.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sqlserverdbam
Yak Posting Veteran

54 Posts

Posted - 2008-10-14 : 16:31:54
MS rep told only way to recover is select * insert but not fully data be recovered.
Go to Top of Page

tosscrosby
Aged Yak Warrior

676 Posts

Posted - 2008-10-17 : 10:38:37
Can you post the output of the DBCC CheckDB with All_errormsgs, no_infomsgs? Not that you'll get a better or different answer than MS provided but you never know. You might've gotten a rep that is absolutely clueless - no, that could never happen, right?

Terry
Go to Top of Page

salil.chaudhari
Starting Member

2 Posts

Posted - 2008-10-24 : 01:06:40
you can fix that problem
and copy data using insert into or bcp

Regards
SALIL
Go to Top of Page
   

- Advertisement -