MSSQL Server’da Bozulmuş Model Veritabanı Nasıl Düzeltilir?

MSSQL Server’da aşağıdaki gibi bir mesaj alırsanız, “eyvah model veritabanı bozulmuş, şimdi baştan kurmam gerekecek” diye panik yapmanıza gerek yok. Çözümü çok basit: Aynı sürümdeki başka bir MSSQL server’dan model veritabanını alıp bozulanın yerine kopyalayın.

Hata Mesajı:

The log scan number (22:160:1) passed to log scan in database 'model' is not valid. This error may indicate data corruption or that the log file (.ldf) does not match the data file (.mdf). This error may indicate data corruption or that the log file (. Ldf) does not match the data file (. Mdf). If this error occurred during replication, re-create the publication. If this error occurred during replication, re-create the publication. Otherwise, restore from backup if the problem results in a failure during startup.

4 yorum

  1. Daha hızlı bir yol ekleyelim

    buraya gidin C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\Templates

    bu dosyaları kopyalayın model ve modellog ardından
    buraya yapıstırın C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA

    Restart yapalım -> SQL Server (MSSQLSERVER)
    (cmd -> services.msc)

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir