<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Server (και άλλες databases)</title><link>https://www.dotnetzone.gr:443/cs/forums/28/ShowForum.aspx</link><description>Θέματα που αφορούν τον SQL Server (7.0, 2000, 2005) αλλά και Oracle, Access, DB2, MySQL, κλπ.</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: SQL 2000 index corruption</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/11838.aspx</link><pubDate>Thu, 13 Apr 2006 02:38:25 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:11838</guid><dc:creator>dimkasta</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/11838.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=11838</wfw:commentRss><description>dbcc dbreindex(tablename, '',70)&lt;br /&gt;
&lt;br /&gt;
και το πρόβλημα λύθηκε χωρίς πρόβλημα και κίνδυνο.&lt;br /&gt;
&lt;br /&gt;
Αναλαμβάνει να κάνει μόνο του όλα τα drοp και create.&lt;br /&gt;
&lt;br /&gt;
Καλού κακού ένα backup και εκτέλεση σε ώρα που δεν χρησιμοποιείται η εφαρμογή είναι πάντα οφέλιμα...&lt;br /&gt;
&lt;br /&gt;
Πολύ χρήσιμο ειδικά για καταστάσεις που δεν είστε εξοικειωμένοι με το σχήμα</description></item><item><title>Απ: SQL 2000 index corruption</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/11832.aspx</link><pubDate>Wed, 12 Apr 2006 23:11:56 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:11832</guid><dc:creator>raPhaeL</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/11832.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=11832</wfw:commentRss><description>Συνήθως το DROP INDEX διορθώνει την κατάσταση , καλό θα είναι πάντως ναι έχεις και BACKUP αν τρέξεις DBCC CHECKDB με REPAIR_REBUILD.</description></item><item><title>Απ: SQL 2000 index corruption</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/11756.aspx</link><pubDate>Tue, 11 Apr 2006 00:05:04 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:11756</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/11756.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=11756</wfw:commentRss><description>Εγώ, σε κάτι τέτοια, είμαι παραδοσιακός τύπος. Θα έκανα export τα data σε πίνακες με ίδιο schema, σε άλλη βάση και μετά drop τους πίνακες. Κατόπιν, recreate τους πίνακες (χωρίς indexes), import τα δεδομένα και create indexes.&lt;br /&gt;
&lt;br /&gt;
Βέβαια, το θέμα που θα πρέπει να σε προβληματίσει είναι το πως δημιουργήθηκαν αυτά τα corrupted indexes. Είναι καινούργιοι οι δίσκοι; Έχουν συμβεί τίποτα διακοπές ρεύματος (αν και πάλι ο SQL Server έχει το recovery για να μπορεί να αντιμετωπίζει τέτοιες καταστάσεις); Μήπως να κάνεις ένα surface scan για bad sectors;</description></item><item><title>SQL 2000 index corruption</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/11745.aspx</link><pubDate>Mon, 10 Apr 2006 17:45:11 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:11745</guid><dc:creator>dimkasta</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/11745.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=11745</wfw:commentRss><description>&lt;P&gt;Καλημέρα σε όλους.&lt;/P&gt;
&lt;P&gt;Αντιμετωπίζω ένα πρόβλημα με κάποιες εγγραφές σε έναν πίνακα. Όταν πάω να τις ανοίξω, παίρνω σφάλματα. Το dbcc checkdb επιστρέφει σε μερικές περιπτώσεις:&lt;/P&gt;
&lt;P&gt;Server: Msg 8956, Level 16, State 1, Line 1&lt;BR&gt;Index row (1:18449:58) with values (ReqID = 6356 and StepID = 49251) points to the data row identified by ().&lt;/P&gt;
&lt;P&gt;σε δύο πίνακες.&lt;/P&gt;
&lt;P&gt;Η λύση που μου προτείνανε είναι η παρακάτω:&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000080&gt;&lt;FONT face=Arial&gt;This error occurs when the non-clustered index indicated by the index ID is corrupt. The corruption is detected when a process tries to delete a nonexistent row. This is synonomous with an error 644. Refer to SQL Books Online also for more information. &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;Execute DBCC CHECKDB without a repair clause to determine the extent of the damage. Then, execute DBCC CHECKDB with REPAIR_REBUILD clause to correct the damage. If problems persist, either drop and re-create the index (as shown below) or export data out of database, recreate the objects, and import data back in. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;To drop and re-create the index: &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;1. Record the value of index page and index ID specified in the error text.&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;2. Identify which table and index correspond to the index page number.&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;3. Note the object ID. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="TEXT-INDENT: 36pt"&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;If the object with the error is a system table (the object ID is less than 100), you cannot drop the index. Execute DBCC CHECKDB with the REPAIR_REBUILD clause or restore the database from a known clean backup. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;4. If the object ID is greater than 100, drop and re-create the index using the table name and index name obtained in Step 1. In most cases, this will clear the corruption.&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;5. Execute DBCC CHECKDB with the REPAIR_REBUILD clause on the affected database to verify that all problems have been resolved.&amp;nbsp; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT face=Arial color=#000000 size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&lt;FONT color=#000000&gt;Υπάρχουνε τίποτα πράγματα που πρέπει να προσέξω όταν το κάνω αυτό. Χρειάζεται να το δοκιμάσω σε τέστ περιβάλλον ΄΄η είναι ασφαλές? Υπάρχει μήπως κανένας πιο ασφαλής τρόπος?&lt;/FONT&gt; Επίσης θα έχει τίποτα επιπτώσεις στην χρήση της εφαρμογής από τους χρήστες?&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT face=Arial color=#000000 size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;Ευχαριστώ εκ των προτέρων&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description></item></channel></rss>