Database Not Displaying

  • Hey all,

    I have a problem with MSSQL Server, due to the system crash i need to reinstall the MSSQL Server, when i did it ,it is not recognizing or showing the database that i created in the default root of EnterPrise Service. I copied to original database in the root folder of MSSQL Server ie, to the DATA folder and restarted the services, then also it is not displaying the database that created. Then i tried to create the new database assigning the same name of the original database, but MSSQL Server raises error - Database already Exist.

    Please someone help me to solve this problem. I am in trouble.

    Thanks

  • You have to re-attach your dataabses to SQL Server after it is reinstalled. Check BOL sp_attach_db command.

    Do you see any databases by running sp_helpdb from Query Analyzer?

     

  • Just right click the database and click on attach database from the C:\Program Files\Microsoft SQL Server\MSSQL\Data\databasename.mdf.

    this will do

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply