Recovering Data From Broken Tables (latch Errors)

Sep 21, 2007

Hi!

Is it possible to generate a script, that extracts every bit of data it can, from tables which suffers from latch errors;

DBCC CHECKDB ->
Msg 7985, Level 16, State 2, Line 1

System table pre-checks: Object ID 4. Could not read and latch page (1:403) with latch type SH. Check statement terminated due to unrepairable error.

So bad news on that one. There are no backup available that I know off, so all bets are off on that part of the recovery process.

The "good news" part of the problem, is that it is possible to extract some data out of the table, before SQL server 2005 returns the error. So what I want to do, is get every bit out I can, doing it somehow automatically, so I don't have to run bcp on 180 tables :).

Presumeably, this is quite possible, but how?

NB. If I do a complete basic SELECT * FROM tbl1, it returns data, then errors out, but what about the data after the last row SELECT returns? Is it possible, that there might be data in the table that are recoverable after the 'broken row(s)'?

View 20 Replies


ADVERTISEMENT

DBCC CheckDb Latch Errors

Dec 6, 2007

Hi,

we''re currently performing a dry run of migrating some large (100GB+) SQL Server 2000 databases from a SQL 2000 cluster onto a new 2005 mirrorred database pair. The new configuration has completely separate database servers and a new dedicated SAN.

Upon restoring our largest database we are seeing the following errors recorded in the log after setting up mirroring and then trying to run DBCC CHECKDB:

"Unable to read and latch page (1:1323852) with latch type SH. 21(The device is not ready.) failed."

We are currently investigating the SAN hardware logs to determine if this might be a physical issue as it would seem to indicate, however has anyone any experience of this or insight into what may cause this error?

Thanks in advance!

View 3 Replies View Related

WARNING: EC 259683c0, 0 Waited 32100 Sec. On Latch 807133b0. Not A BUF Latch.

Apr 7, 2004

During a bulk insert I am receiving this error message in the sql log. It appears to have caused the server to reboot the other night..

I am running SQL 2000 8.00.760 (Service Pack 3)

2004-04-07 12:57:52.82 spid8 WARNING: EC 259683c0, 0 waited 32100 sec. on latch 807133b0. Not a BUF latch.
2004-04-07 12:57:52.82 spid8 Waiting for type 0x4, current count 0xa, current owning EC 0x70899570.


Any ideas???

Thanks

Scott

View 2 Replies View Related

Could Not Read And Latch Page (1:1370) With Latch Type SH

Sep 22, 2006

Ben writes "Dbcc checkdb showed a database to have consistency errors, however running repair_allow_data_loss resulted in the following error

Server: Msg 8966, Level 16, State 1, Line 2
Could not read and latch page (1:1370) with latch type SH. sysindexes failed.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.

Please could you tell me how to fix it, and how it occurred in the first place?

Thanks"

View 2 Replies View Related

Recovering Specific Tables Within A Database.

Mar 27, 2008

We currently have a company program in foxpro which inputs all of our information into its database. We are trying to shift from this to new updated software and a SQL database. There is a program we created which converts all the data from our old database into our new SQL database in preparation for our final move to the newer software. However, some of the tables in SQL were not taken directly from our old database but rather added in directly after our initial use of SQL, so when we ran our conversion software, a couple of specific tables were wiped because there was no equivilant within our old database. We already altered our conversion program to not touch those tables again, but is there any way to do a roll back or to find a backup of specific tables?

View 4 Replies View Related

Recovering Data From A DAT File?

Nov 25, 1998

Hi,

Bit of a panic here.. Someone accidentally deleted a database device (and
consequentially the associated databases) from MS Sequel 6.5. I don't have a
backup dump of the databases.

Does anyone know how I restore the device? I have the DAT file and I can
see the data in it if I use a text editor.

Thanks

Jonathan

View 1 Replies View Related

Recovering Lost Data

Jul 9, 2007

Is there any way to get the deleted records from LDF or MDF file. Today by accidentally I executed one query and that dropped my table Inbox(table name only) from database. And in that table there was more 4,000 records, all these lost. So anybody can help me how to recover this table records?. Is there any way to get these?
I don't have any backup for this table.

shaji

View 3 Replies View Related

Recovering Data Through *.LDF Files

Nov 16, 2007

Hi all
I'm a newbie with SQl Server But somewhere i read that SQL server Data can be Recovered through *.LDF files
now i want to know if i open a table in Enterprise-Manager and delete some records through DELETE statement or
manually, is it possible to recover those deleted records or not? if so how?

Thanks in advance.
Regards.

View 4 Replies View Related

Database Corrupted, Need Help Recovering Data From LDF File

May 9, 2007

A friend of mine called and said that his database was suspect and he detached it and was unable to attach it. The SQL Server Version is 2000 with the latest service packs installed. When I checked it the database (MDF) size was 1MB and the LDF size was 3.8 GB. I was not able to attach the two together and I was not able to attach the database using sp_attach_single_file_db. I did find an old backup of his database and attached that so he can work off of it but it is 1 yr old and he needs recent data. Since the MDF seemed to be blank we cant do much with that, but there seems to be data in the LDF. Is it possible to extract any data from the LDF file?

Sunny

View 1 Replies View Related

Recovering Data From Sql 6.5 Data Files

Sep 17, 2001

I have an sql 6.5 server that has had it OS (nt4.0) reinstalled on c:.
sql was installed on d: and all of the dat files are still there, i need to recover data from one of these, i tried install on a new machine and creating a device/db with same name and then over writing the file with the old one but enterprise manager shows it as suspect and will not let me work on it.
Any assistance would be appreciated.

Dominic

View 1 Replies View Related

Broken Lift Chart And Empty Classification Matrix In Data Mining

Sep 5, 2007

Hi,I am studying data mining features of SSAS and for a workshop I'vecreated 2 views derived from vTargetMail view of AdventureWorksDW.Train data consists every record except those in Pacific, and testview consists only records from Pacific area.1. I've created a mining structure based on Decision Tree and selectedBikeBuyer as predictable column.2. According to input column suggestions, I've selected Age,Eng.Education, NumberCarsOwned, YearlyIncome, CommuteDistance,NumberChildsatHome and TotalChildren as input columns,3. I've modified no other setting, and deployed project.I can get training results in decision tree browser and dependencynetwork (and both seem to give rather logical results) however, when Itry to browse lift chart or classification matrix I get an emptyclass.matr. and a lift chart of a single 45 degree line.Am I missing a step, or must I do some fine-tuning on (what)parameters?Thanks...

View 2 Replies View Related

Broken Lift Chart And Empty Classification Matrix In Data Mining

Sep 5, 2007

Hi,
I am studying data mining features of SSAS and for a workshop I've
created 2 views derived from vTargetMail view of AdventureWorksDW.
Train data consists every record except those in Pacific, and test
view consists only records from Pacific area.


1. I've created a mining structure based on Decision Tree and selected
BikeBuyer as predictable column.
2. According to input column suggestions, I've selected Age,
Eng.Education, NumberCarsOwned, YearlyIncome, CommuteDistance,
NumberChildsatHome and TotalChildren as input columns,
3. I've modified no other setting, and deployed project.



I can get training results in decision tree browser and dependency
network (and both seem to give rather logical results) however, when I
try to browse lift chart or classification matrix I get an empty
class.matr. and a lift chart of a single 45 degree line.



Am I missing a step, or must I do some fine-tuning on (what)
parameters?

View 3 Replies View Related

Is RS2005's Matrix Data Region Feature Broken, Or Subject To Certain Limitations?

Dec 25, 2007

I'm consistently getting >10 minute render times in a matrix based report whose underlying query only takes 1-2 seconds to run in both RS's data tab and mgt studio. The bad render times occur in preview tab, Report Viewer and when requested from Report Manager. I believe most of the time being taken is RS's attempt to pivot and present the data.

I can run a homegrown query that pivots (with unknown number of cols) the data itself in under 4 seconds but would be concerned about mapping an unknown number of columns to a table region in RS.

The matrix I'm testing with is 67 columns across (just over 2 months of daily columns) and is supposed to be 207 rows long. There is no aggregation required by RS when it is pivoting the data because each intersection occurs at most one time in the query's result set. The number of data points actually being "bucketed" is around 13,800 values. Row headers consist of 3 columns.

RS is also cutting off the number of rows it is supposed to be showing. The number of rows cutoff seems to be 100% repeatable based on the date range chosen. RS doesnt tell me when it cuts off rows that should have been displayed. From what I can tell so far, it never cuts off columns.

The number of rows cut off seems consistent across designer's preview, report viewer and when requested thru report manager. The "run" command (exclamation icon in data tab) seems to always return the correct number of unpivoted rows, just as in mgt studio.

Are there known bugs and or limitations in RS's matrix data region feature? Are there some settings or workarounds that might make it work more to my liking?




View 13 Replies View Related

Inserting Image Data Fails With Connection Broken (SQL Server 2000 And SQL Native Client)

May 28, 2008

Dear all,

we have tables with many image columns. We fill these image columns via ODBC and SQLPutData as described in MSDN etc (using SQL_LEN_DATA_AT_EXEC(...), calling SQLParamData and sending the data in chunks of 4096 bytes when receiving SQL_NEED_DATA).

The SQLPutData call fails under the following conditions with sqlstate 08S01

- The database resides on SQL Server 2000
- The driver is SQL Native Client
- The table consists e.g. of one Identity column (key column) and nine image columns
- The data to be inserted are nine blocks of data with the following byte size:


1: 6781262
2: 119454

3: 269
4: 7611

5: 120054

6: 269

7: 8172

8: 120054

9: 269
The content of the data does not matter, (it happens also if only zero bytes are written), nor does the data origin (file or memory).

All data blocks including no 7 are inserted. If the first chunk of data block 8 should be written with SQLPutData the function fails and the connection is broken. There are errors such as "broken pipe" or "I/O error" depending on the used network protocol.

If data no 7 consists of 8173 bytes instead of 8172 all works again.
(Changing the 4096 chunk size length does not help)

Has anybody encountered this or a similar phenomenon?

Thank you

Eartha

View 7 Replies View Related

Latch Time

May 14, 2004

Hi All,

This might be a bit of a question like "how long is a peice of string" however here goes.....

What is considered to be a high average latch time?

We have a SQL2000 machine which has:
700-900 ms average latch time
100% Buffer Cache Hit Ratio
No memory pages / second
Very low (almost always below 5%) cpu usage
Next to no disk transfers / sec
0 average lock time

I am surprised that the latch time is so high. Any ideas, whether I should be looking at something in particular?

Cheers in advance.
Troy

View 3 Replies View Related

MSG 845, Buffer Latch Type 2

Nov 1, 1999

I have been looking at Books Online and I'm trying to figure out how I can resolve this error.

MSG 845, Level 17, State 1
Time out occured while waiting for buffer latch type 2 for page.....


Thanks..

View 1 Replies View Related

Help On Buffer Latch Timeout

Jun 15, 2004

Time out occurred while waiting for buffer latch type 2,bp 0x18b7d40, page 1:11558916), stat 0xb, object ID 9:1842105603:2, EC 0x5862D9C8 : 0, waittime 300. Not continuing to wait.


What does this mean any reason and fix for it..?

Thanks

View 1 Replies View Related

Causes For Latch Wait Time

Jan 6, 2008

I setup a SQL Agent to send me an email when the Average Latch Wait Time is greater than 300ms. Now I receive an email every 15 seconds stating that the current ALWT is 3916ms. That value never changes with the emails. However, the perfmon shows nothing at all (shows zero).

I also have a Buffer cache hit ratio of 2848.00.

These numbers are when there is NOBODY on the DB at all It is just sitting there. When I reboot the server, as soon as SQL starts it starts to send the emails again.

Server: Intel Xeon Quad Core 2.66
RAM: 4GB (with /3GB in the boot.ini)
RAID 1: OS
RAID 1: Data (DB and logs)
CPU Utilization: 0-1%
RAM Utilization: 527MB
OS: Server 2003 R2 With SP2
SQL: 2005 Standard with SP2

How can I determine if the ALWT is really 3916?

I executed 'Select * from sysprocesses where SPID>50 and waittime>0'

Which showed;

BROKER_RECEIVE_WAITFOR
waittime=110640ms
waittype=0x0075
status=suspended
program_name=DatabaseMail90 - Id<3780>

Any assistance is greatly appreciated.


Thank You

Magnum

View 4 Replies View Related

Waiting For Buffer Latch Error

Jul 20, 2005

Does anybody know what might cause the following message to show up inthe SQL Server Error Log?:Time out occurred while waiting for buffer latch type 2, bp0x12260f80, page (5:77914), stat 0x40d, object ID 7:421576540:0,waittime 500. Continuing to wait.I've read several articles about what to do about this situation onSQL Server 2000, but I'm running SQL Server 7.0. Specifically, I'mrunning version 7.00.842. Is there a way to resolve this problemwithout upgrading to some flavor of SQL Server 2000?

View 2 Replies View Related

Errors Restoring Tables

Aug 9, 1998

A client recently changed his sort order and character set definitions. He is now unable to restore any of his tables. Prior to making the change he carried out the following steps;
1. Printed out the schema(scripts) for each database,
2. BCP`d all data out of SQL.

He the proceeded to make the change (via SQL Setup, rebuild master database option), then he recreated each device (data and log), recreated each database (data and log), ran each schema to rebuild each database (structure, views, etc) and then BCP`d all data back into databases.

He has been doing a full backup everyday since. He needs to restore a table but when he does so SQL reports that the schema is different between source and destination, no changes have been made.

View 4 Replies View Related

Time Out Occurred Waiting For Buffer Latch??

Aug 23, 2004

Hi Guys,

One of your SQLSERVER 7, Server throws the below error message into the log file. It won't go away until the server get rebooted. When this error start showing up.. customers have hard time connecting to the Server, eventually we have to reboot the server.

Time out occurred while waiting for buffer latch type 1, bp 0x18b9200, page (1:50859), stat 0xb, object ID 17:1954106002:1, waittime 500. Continuing to wait.

Any help is greatly appericated.

thanks

View 2 Replies View Related

Permissions Changed On Tables - Now Errors Appear

Sep 20, 2001

Recently some permissions were changed on the database tables and now the following message appears when a script is run to update the DB.

Msg 547, Level 16, State 1, Server SQL, Line 2
INSERT statement conflicted with COLUMN FOREIGN KEY constraint
'fk_educ_id'. The conflict occurred in database '12345', table
'educ_matters', column 'educ_id'.
The statement has been terminated.
(0 rows affected)

Thanks in advance...

View 1 Replies View Related

Email If Errors Exists In The Error Tables

Aug 7, 2007



I am setting my error tables.What i want to do is.If i find any data within my error tables i want an email to be sent to me.

How can i achieve this??
Please let me know

View 7 Replies View Related

SQL Server 2008 :: Timeout Occurred While Waiting For Buffer Latch

Mar 31, 2015

I am getting below error while executing any SQL query on database server.

Time-out occurred while waiting for buffer latch type 2 for page (20:17937), database ID 13.

There is currently some space issue on the server, so by any chance this space issue is causing this error?

View 2 Replies View Related

Import And Export Wizard Throws Errors When Theres Alot Of Tables

Apr 19, 2007

I€™m trying to copy data from production to my local machine using the SQL Server 2005 import and export wizard. It works fine if I select a small number of tables but throws errors
When there€™s a lot of tables. Have you ever experienced problems using it? Is there a better way to transfer the data?

the data source is SQL Server 2000 and the target is 2005. I have the optimize for many tables and transaction options selected


Here€™s the errors I get


Execute the transfer with the TransferProvider. (Error)
Messages
· ERROR : errorCode=-1073451000 description=The package contains two objects with the duplicate name of "output column "ErrorCode" (49)" and "output column "ErrorCode" (14)".
helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

· ERROR : errorCode=-1073451000 description=The package contains two objects with the duplicate name of "output column "ErrorCode" (31)" and "input column "ErrorCode" (52)".
helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

· ERROR : errorCode=-1073451000 description=The package contains two objects with the duplicate name of "output column "ErrorCode" (49)" and "output column "ErrorCode" (14)".
helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

· ERROR : errorCode=-1073451000 description=The package contains two objects with the duplicate name of "output column "ErrorCode" (31)" and "input column "ErrorCode" (52)".
helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

· ERROR : errorCode=-1073451000 description=The package contains two objects with the duplicate name of "output column "ErrorCode" (49)" and "output column "ErrorCode" (14)".
helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

· ERROR : errorCode=-1073451000 description=The package contains two objects with the duplicate name of "output column "ErrorCode" (31)" and "input column "ErrorCode" (52)".
helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

· ERROR : errorCode=-1073451000 description=The package contains two objects with the duplicate name of "output column "ErrorCode" (49)" and "output column "ErrorCode" (14)".
helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC} (Microsoft.SqlServer.DtsTransferProvider)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476


View 7 Replies View Related

Data Warehousing :: Copy Data From Staging Tables To Other Instance Master Tables?

Aug 14, 2015

I need to copy data from warehouse tables to master tables of different SQL instances. Refresh need to done once in an hour. What is the best way to do this? SQL agent jobs or SSIS packages?

View 3 Replies View Related

Power Pivot :: Structural Data Model Changes In Data Source Leads To Errors

Oct 12, 2015

I've question about how to handle structural datamodel changes in a datasource of PowerPivot. Suppose I'm developing a starmodel in SQL Server and sometimes a datatype changes or a name of a field changes in a table. It seems to me that PowerPivot handle this not gracefully as Analysis MD does (mostly). I received an error because of a wrong fieldname or even no error when a dattype changes in PowerPivot. Is this common or do I something wrong here. Does this mean that every time the datamodel changes the PowerPivot should be recreated? Or am I missing the clue here?

View 6 Replies View Related

Recovering Databases

May 18, 2000

Can anyone give me assistance on trying to restore my master file. I purposely corrupted my dabase on my test box so that I could work on my recovery process. However, during one of the steps I used the:

restore database Master From
disk= 'c:mssql7ackupmaster.bak'

Command. However, I continue to recieve:

Server:Msg3201, Level 16, State 2, Line 1
'Cannont open backup device 'c:mssql7ackupmaster.bak. Device error or device off-line. See the SQL Server error log for more details.

Note I am in single user mode and I have not been able to find anything specific in the error log file.

Can some tell me what possible could be the problem. Thanks.

View 3 Replies View Related

Database Recovering

Apr 6, 2000

Any ideas on how long it should take SQL Server 6.5 running on a 8 Gig RAID 0 array to "recover" a 4 GIG database. I rebooted the machine this morning (seldom ever have any problems with it) and it seems to be taking an awfully long time (15 min so far). I'll let you know what happens in any case.

View 2 Replies View Related

Recovering SQL Server 7.0

Jun 1, 1999

is it possible to recover an existing SQL server? Here is what happened. WNT server 4.0 was corrupted, had no backup, repair did not work. consequently, i had to reformat the C drive and do a clean install of the OS.
my SQL files and user databases were on other drives. can i do a install of SQL server and tell is were the SQL server files (ie., the MSSQLDatamaster.db) are and have it use those files? given that this problem occurred as i tried to backup my SQL server database.
hope you can help or my butt is burned!

View 4 Replies View Related

Recovering From A Disaster

Nov 16, 2001

We are having major hardware replaced on our W2000 Adv Server and we
need to be prepared to restore the entire system.
If the hardware fix goes badly, worst case, the plan is to
rebuild the server and then REINSTALL SS7 and
then restore all the databases from tape backups.
My question is, which database(s) should we restore first?
Should we restore master and then proceed to restore the user
databases or restore the user databases first and restore master last?
Thank you in advance.

View 1 Replies View Related

(recovering) And (loading)

Nov 17, 1999

Help !!!!

How would you fix these two problems.
1. On the window of Enterprise Manger and under the databases, the database shows one of the databases like this manag_dat(recovering)rather than manag_dat. (manag_dat is the name of the database). What could cause the probem and how to fix it?
2. Same position as above, but instead it shows manag_dat (loading). I tried to delete its device and the database. it hang. How would it happen and how to fix it?

Thank you ahead of time

View 2 Replies View Related

Recovering Database With Nothing But .DAT

Mar 15, 1999

I need to recover a database, but unfortunatelly i don´t have any backup... Well, it was not my fault. Anyway, i only have the physical .DAT files of the data and log devices of the database.
Will it work if I create two devices with the same name as the old devices, create a database with the same name as the old database within these devices and then run a full script of my old database, then change the 'phy_name' on the sysdevices to point to where my old dats were, or replacing the current ones with the old ones? If not, will anything else work?

Thanks in advance.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved