<?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>Απ: Προβλημα με Attach Database</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/8938.aspx</link><pubDate>Thu, 26 Jan 2006 01:38:21 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:8938</guid><dc:creator>imanos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/8938.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=8938</wfw:commentRss><description>raPhaeL Μου έλυσες το πρόβλημα.&lt;br&gt;Ευχαριστώ&lt;br&gt;</description></item><item><title>Απ: Προβλημα με Attach Database</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/8936.aspx</link><pubDate>Wed, 25 Jan 2006 23:24:40 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:8936</guid><dc:creator>raPhaeL</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/8936.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=8936</wfw:commentRss><description>&lt;p class="MsoNormal"&gt;&lt;span style=""&gt;Για δοκίμασε και αυτό (από Google Groups) :&lt;br&gt;
&lt;br&gt;
If you need to ignore the current LDF file and if your database is not&lt;br&gt;
detached properly and if you do not have the backup, follow&lt;br&gt;
the below steps to bring up your database. In the below step-7 is a&lt;br&gt;
undocumented DBCC command.&lt;br&gt;
&lt;br&gt;
1. Create a new database with the same name and same MDF and LDF files&lt;br&gt;
2. Stop sql server and rename the existing MDF to a new one and copy the&lt;br&gt;
original MDF to this location and delete the LDF files.&lt;br&gt;
3. Start SQL Server&lt;br&gt;
4. Now your database will be marked suspect&lt;br&gt;
5. Update the sysdatabases to update to Emergency mode. This will not use&lt;br&gt;
LOG files in start up&lt;br&gt;
&lt;br&gt;
&amp;nbsp;Sp_configure "allow updates", 1&lt;br&gt;
&amp;nbsp;go&lt;br&gt;
&amp;nbsp;Reconfigure with override&lt;br&gt;
&amp;nbsp;GO&lt;br&gt;
&amp;nbsp;Update sysdatabases set status =&amp;nbsp; 32768 where name = "BadDbName"&lt;br&gt;
&amp;nbsp;go&lt;br&gt;
&amp;nbsp;Sp_configure "allow updates", 0&lt;br&gt;
&amp;nbsp;go&lt;br&gt;
&amp;nbsp;Reconfigure with override&lt;br&gt;
&amp;nbsp;GO&lt;br&gt;
&lt;br&gt;
6. Restart sql server. now the database will be in emergency mode&lt;br&gt;
7. Now execute the undocumented DBCC to create a log file&lt;br&gt;
&amp;nbsp;&amp;nbsp; DBCC REBUILD_LOG(dbname,'c:\dbname.ldf')&amp;nbsp; -- Undocumented step to create a new log file.&lt;br&gt;
&amp;nbsp;&amp;nbsp; (replace the dbname and log file name based on ur requirement)&lt;br&gt;
8. Execute sp_resetstatus &amp;lt;dbname&amp;gt;&lt;br&gt;
9. Restart SQL server and see the database is online.&lt;br&gt;
&lt;br&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Απ: Προβλημα με Attach Database</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/8935.aspx</link><pubDate>Wed, 25 Jan 2006 22:56:32 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:8935</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/8935.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=8935</wfw:commentRss><description>Επίσης, για ποιά έκδοση SQL Server μιλάμε και τι SP έχει;</description></item><item><title>Απ: Προβλημα με Attach Database</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/8934.aspx</link><pubDate>Wed, 25 Jan 2006 22:47:28 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:8934</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/8934.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=8934</wfw:commentRss><description>Δώσε μας λίγες πληροφορίες, αυτή η βάση είναι από το production σύστημα ή προσπαθείς να την πάρεις από το development στο production;&lt;br&gt;&lt;br&gt;Δοκίμασε να κάνεις sp_attach_db_single_file μόνο με mdf ώστε να φτιάξει νέο log file</description></item><item><title>Απ: Προβλημα με Attach Database</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/8933.aspx</link><pubDate>Wed, 25 Jan 2006 22:23:20 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:8933</guid><dc:creator>imanos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/8933.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=8933</wfw:commentRss><description>&lt;P&gt;Στο πρώτο μύνημα λάθους στο attach δηλώνονται και το mdf και το log&amp;nbsp; .&lt;/P&gt;</description></item><item><title>Απ: Προβλημα με Attach Database</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/8928.aspx</link><pubDate>Wed, 25 Jan 2006 20:44:28 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:8928</guid><dc:creator>dimkasta</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/8928.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=8928</wfw:commentRss><description>Τα 2 αρχεία log και mdf είναι πολύ στενά δεμένα μαζί τους.&lt;br&gt;Όταν αντιγράφεις κάπου ένα, θα πρέπει να αντιγράφεις μαζί και το αντίστοιχο έτερο ήμιση "log" που δημιουργήθηκε για το mdf.&lt;br&gt;Άν θέλεις να αντικαταστήσεις μια βάση, θα πρέπει να δώσεις και το log που έχει μαζί της.&lt;br&gt;Άν το log file είναι διαφορετική "version" από το mdf το απορρίπτει.</description></item><item><title>Προβλημα με Attach Database</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/8927.aspx</link><pubDate>Wed, 25 Jan 2006 20:11:30 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:8927</guid><dc:creator>imanos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/8927.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=8927</wfw:commentRss><description>&lt;P&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;&lt;/span&gt;&amp;nbsp;Σε προσπάθεια attach&amp;nbsp;μιας βάσης&amp;nbsp;mdf έχω το παρακάτω μύνημα&lt;/P&gt;
&lt;P&gt;Error: 9003, Severity: 20, State: 1&lt;/P&gt;
&lt;P&gt;The LSN (42:119:1) passed to log scan in database 'databaseName' is invalid..&lt;/P&gt;
&lt;P&gt;Προσπαθώντας να την κάνω attach χωρίς το Log File πάλι παίρνω μύνημα λάθους&lt;/P&gt;
&lt;P&gt;Error 1813 : Could not open database 'databaseName' .Create Database aborted.&lt;/P&gt;
&lt;P&gt;Device Activation error .The physical name 'C:\Program Files\Microsoft SQL Server\MSSQL\data\databaseName_LOG.LDF' may be incorrect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Έχει κανείς καμμιά ιδέα .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>