|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Member
Iscritto dal: Jan 2004
Città: Prov di Milano
Messaggi: 146
|
problema Microsoft SQL Server Management Studio 2008
Buongiorno a tutti.
Ho un grosso problema al programma SQL Server Management Studio 2008. Stavo modificando un database fino a che il programma in questione non rispondeva più e dopo 1 ora ho dovuto per forza di cose forzare la chiusura. Il risultato è che se apro SQL Server Management Studio 2008, espando il database e provo a fare tasto destro su una tabella va in blocco e dopo un po' appare TITLE: Microsoft SQL Server Management Studio ------------------------------ Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum) For help, click: http://go.microsoft.com/fwlink?ProdN...r&LinkId=20476 ------------------------------ ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) ------------------------------ Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. (Microsoft SQL Server, Error: -2) For help, click: http://go.microsoft.com/fwlink?ProdN...2&LinkId=20476 ------------------------------ Con altri database invece riesco a modificare le tabelle. Qualcuno mi può aiutare per capire se è possibile recuperare la funzionalità ( pensavo che magari essendosi "chiuso male" si poteva effetturare un tentativo di recupero) oppure salvare i dati delle tabelle e ricreare un nuovo database reinserendo i dati recuperati ( non è un database di grosse dimensioni ) Grazie mille |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Jan 2005
Messaggi: 395
|
Ciao
Probabilmente è rimasta appesa una transazione. Collegati sullo studio management, apri una finestra per eseguire query e lancia la procedura "sp_who2 active". Verifica se c'è ancora dentro la tua vecchia sessione ed eventualmente killala. |
![]() |
![]() |
![]() |
#3 |
Member
Iscritto dal: Jan 2004
Città: Prov di Milano
Messaggi: 146
|
Ciao Maui78, ho fatto quello che mi hai detto.
ho trovato 20 sessioni aperte e l'unica che fa riferimento al database in questione è questa: 52 RUNNABLE sa SERVERNEW . C01081_BABYLON4 SELECT INTO 31 11 06/22 10:49:29 Microsoft SQL Server Management Studio - Query 52 0 Ho controllato anche nel report del database in questione (C01081_BABYLON4) e ho trovato questo: ![]() b2tab1 è la tabella che stavo modificando prima del problema che ho avuto. |
![]() |
![]() |
![]() |
#4 |
Member
Iscritto dal: Jan 2004
Città: Prov di Milano
Messaggi: 146
|
ho appena fatto il detach del database è ho fatto un reattach con i file mdf e ltf di 1 mesetto fa dove il database funzionava correttamente e riuscivo a modificare le tabelle. Il problema si ripresenta, cioè appena faccio tasto destro su una tabella va in blocco e mi appare dopo qualche minuto errore di timeout. Mentre il programma che gira sul database riesce ad accedere, aggiornare e modificare. Io però devo avere la necessità di apportare delle modifiche al databse perchè devo sviluppare delle migliorie....
Ultima modifica di alepizzetto : 22-06-2015 alle 10:49. |
![]() |
![]() |
![]() |
#5 | |
Senior Member
Iscritto dal: Jan 2005
Messaggi: 395
|
Quote:
Probabilmente c'è qualche lock esclusivo sopra che ti impedisce la modifica... Una volta premuto il tasto destro apriti un secondo terminale e lancia la sp_who2, troverai una colonna con la sessione bloccata e l'indicazione della sessione bloccante. Ciao |
|
![]() |
![]() |
![]() |
#6 |
Member
Iscritto dal: Jan 2004
Città: Prov di Milano
Messaggi: 146
|
No il programma non è attivo mentre tento di modificare la tabella
Ambiente lavorativo Se faccio tasto destro su una tabella sql server studio va in blocco e non riesco a fare nessun'altra oprazione finchè non va in timeout Ho appena eseguito un Codice:
DBCC CHECKDB (nomeDatabe) Codice:
Msg 8992, Level 16, State 1, Line 1 Check Catalog Msg 3853, State 1: Attribute (object_id=1790629422) of row (object_id=1790629422,column_id=1) in sys.columns does not have a matching row (object_id=1790629422) in sys.objects. Codice:
CHECKDB found 0 allocation errors and 19 consistency errors not associated with any single object. DBCC results for 'sys.sysrowsetcolumns'. Codice:
Msg 8935, Level 16, State 1, Line 1 Table error: Object ID 60, index ID 1, partition ID 281474980642816, alloc unit ID 281474980642816 (type In-row data). The previous link (1:437) on page (1:148) does not match the previous page (1:438) that the parent (1:43), slot 103 expects for this page. Msg 8937, Level 16, State 1, Line 1 Table error: Object ID 60, index ID 1, partition ID 281474980642816, alloc unit ID 281474980642816 (type In-row data). B-tree page (1:148) has two parent nodes (0:1), slot 0 and (1:43), slot 53. Msg 8937, Level 16, State 1, Line 1 Table error: Object ID 60, index ID 1, partition ID 281474980642816, alloc unit ID 281474980642816 (type In-row data). B-tree page (1:258) has two parent nodes (1:43), slot 68 and (1:43), slot 104. Msg 8935, Level 16, State 1, Line 1 Table error: Object ID 60, index ID 1, partition ID 281474980642816, alloc unit ID 281474980642816 (type In-row data). The previous link (1:282) on page (1:259) does not match the previous page (1:258) that the parent (1:43), slot 105 expects for this page. Msg 8937, Level 16, State 1, Line 1 Table error: Object ID 60, index ID 1, partition ID 281474980642816, alloc unit ID 281474980642816 (type In-row data). B-tree page (1:259) has two parent nodes (0:1), slot 0 and (1:43), slot 82. Msg 8979, Level 16, State 1, Line 1 Table error: Object ID 60, index ID 1, partition ID 281474980642816, alloc unit ID 281474980642816 (type In-row data). Page (1:280) is missing references from parent (unknown) and previous (page (1:257)) nodes. Possible bad root entry in system catalog. Msg 8979, Level 16, State 1, Line 1 Table error: Object ID 60, index ID 1, partition ID 281474980642816, alloc unit ID 281474980642816 (type In-row data). Page (1:281) is missing references from parent (unknown) and previous (page (1:257)) nodes. Possible bad root entry in system catalog. Msg 8933, Level 16, State 1, Line 1 Table error: Object ID 60, index ID 1, partition ID 281474980642816, alloc unit ID 281474980642816 (type In-row data). The low key value on page (1:434) (level 0) is not >= the key value in the parent (1:43) slot 101. Msg 8937, Level 16, State 1, Line 1 Table error: Object ID 60, index ID 1, partition ID 281474980642816, alloc unit ID 281474980642816 (type In-row data). B-tree page (1:434) has two parent nodes (0:1), slot 0 and (1:43), slot 59. Msg 8935, Level 16, State 1, Line 1 Table error: Object ID 60, index ID 1, partition ID 281474980642816, alloc unit ID 281474980642816 (type In-row data). The previous link (1:172) on page (1:438) does not match the previous page (1:434) that the parent (1:43), slot 102 expects for this page. Msg 8937, Level 16, State 1, Line 1 Table error: Object ID 60, index ID 1, partition ID 281474980642816, alloc unit ID 281474980642816 (type In-row data). B-tree page (1:438) has two parent nodes (0:1), slot 0 and (1:43), slot 57. Msg 8934, Level 16, State 2, Line 1 Table error: Object ID 60, index ID 1, partition ID 281474980642816, alloc unit ID 281474980642816 (type In-row data). The high key value on page (1:747) (level 0) is not less than the low key value in the parent (0:1), slot 0 of the next page (1:434). Msg 8934, Level 16, State 3, Line 1 Table error: Object ID 60, index ID 1, partition ID 281474980642816, alloc unit ID 281474980642816 (type In-row data). The high key value on page (1:747) (level 0) is not less than the low key value in the parent (0:1), slot 0 of the next page (1:434). Msg 8935, Level 16, State 1, Line 1 Table error: Object ID 60, index ID 1, partition ID 281474980642816, alloc unit ID 281474980642816 (type In-row data). The previous link (1:748) on page (1:1489) does not match the previous page (1:259) that the parent (1:43), slot 106 expects for this page. Msg 8978, Level 16, State 1, Line 1 Table error: Object ID 60, index ID 1, partition ID 281474980642816, alloc unit ID 281474980642816 (type In-row data). Page (1:1489) is missing a reference from previous page (1:748). Possible chain linkage problem. Codice:
CHECKDB found 0 allocation errors and 15 consistency errors in table 'sys.sysobjvalues' (object ID 60). DBCC results for 'sys.sysclsobjs'. |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 09:15.