Repair Northwind Database in SQL Server Management Studio Express


hi all,

long time ago, downloaded northwind , pubs databases microsoft website (i not remember the details of it)  and installed these 2 databases sql server management studio express of my pc (microsoft windows xp pro). tried learn an example of using "user instance" (source code was from book) on northwind database located in sql server management studio express.  find out that my northwind database has title , no tables @ all. if click on "+" in front of "northwind", got following error message:

       microsoft sql server management studio express

     

        failed retrieve data request.(microsoft sqlserver.express.smoenum)

 

        additional information:

         1 or more files not match primary file of database. if attempting attach database, retry operation correct files. if existing database, file may corrupted , should restored backup. (microsoft sql server, error: 5173)..

 

please , tell me how can repair northwind database in  sql server management studio express.

 

scott chang

 

p. s.

 

i deleted name 'northwind' in my sql server management studio express,  executed "sql2005dbscripts\instnwind" program , got following error message:    msg 1802, level 16, state 4, line 1

                   create database failed. file name listed not created. checked related errors.

                   msg 5170, level 16, state 1, line 1

                   cannot create file 'c:\program files\microsoft sql server\mssql.1\data\northwind\northwind.ldf' because exist. change file path or file name, , retry operation.

                   msg 15100, level 16, state 1, procedure sp_dboption, line 64

                   database 'northwind' not exist. use sp_helpdb show available database.

                   msg 911, level 16, state 1, line 1

                   not locate entry in sysdatabases database 'northwind'. no entry found name. make sure name entered correctly  

delete both northwind files located at: 'c:\program files\microsoft sql server\mssql.1\data\northwind\'

and

delete northwind files located at: 'c:\program files\microsoft sql server\mssql.1\data\'

 

then try (sql2005dbscripts\instnwind) installation again.



SQL Server  >  SQL Server Database Engine



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........