[SQL Express 2005] Attachen van database mislukt

Pagina: 1
Acties:

  • ygma!l
  • Registratie: December 2002
  • Laatst online: 28-11 14:13
Ik heb van een database een .mdf & .ldf bestand. Deze zijn gemaakt met behulp van SQL Express 2005. Deze bestanden zijn door meerdere mensen met verschillende systeem configuraties succesvol ge-attached aan hun einge SQL Express 2005 (Iedereen heeft een eigen kopie van deze bestanden).

Nu probeer ik dit ook bij mijn eigen SQL Express 2005, maar dit lukt niet. Ik krijg de volgende fout informatie:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
TITLE: Microsoft SQL Server Management Studio Express
------------------------------

Attach database failed for Server 'localhost'.  (Microsoft.SqlServer.Express.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attach+database+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)

------------------------------

Could not find row in sysindexes for database ID 7, object ID 1, index ID 1. Run DBCC CHECKTABLE on sysindexes.
Could not open new database 'DataBase'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 602)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=602&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------


Ik heb als OS Windows Vista x64 (business). Daarnaast gebruik ik als ontwikkelomgeving Visual Studio 2005. Ik kan overigens wel zelf nieuwe databases aanmaken. Voor database management gebruik ik SQL Server Management Studio Express. Deze start ik op met Administrator rechten. Ik heb het hele net al afgezocht naar de oplossing, maar kan deze niet vinden.

  • whoami
  • Registratie: December 2000
  • Laatst online: 00:54
code:
1
Could not find row in sysindexes for database ID 7, object ID 1, index ID 1. Run DBCC CHECKTABLE on sysindexes.
Dit al gedaan ?

https://fgheysels.github.io/


  • ygma!l
  • Registratie: December 2002
  • Laatst online: 28-11 14:13
Nee, dit heb ik nog niet gedaan. Ik heb zoiets ook nog nooit gedaan, dus heb ik opgezocht hoe dit werkt. Echter is mij niet duidelijk hoe ik dit moet doen op een mdf bestand. Aangezien ik de database nog niet rechtstreeks kan aanspreken. Dit is wat ik heb gevonden: http://msdn2.microsoft.com/en-us/library/ms174338.aspx

  • reddog33hummer
  • Registratie: Oktober 2001
  • Laatst online: 03-08 23:13

reddog33hummer

Dat schept mogelijkheden

http://msdn2.microsoft.com/en-us/library/ms174338.aspx
Examples
A. Checking a specific table

The following example checks the data page integrity of the HumanResources.Employee table in the AdventureWorks database.

USE AdventureWorks;
GO
DBCC CHECKTABLE ('HumanResources.Employee');
GO
Goh... Hoe zou je het toch moeten gebruiken...

[ Voor 6% gewijzigd door reddog33hummer op 03-06-2007 17:14 ]

Backup not found (R)etry (A)bort (P)anic<br\>AMD 3400+ 64, 2 GB DDR, 1,5 TB Raid5