473,418 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

How to open sql server database file(.mdf) using sql server 2000 ?

147 100+
Hi,

I am trying to open database file(.mdf) using enterprise manager.

Right Click on Databases -> All Tasks -> Attach database


I am browsing the .mdf file from my local drive and finally clicking OK

It shows me an error. Please help me out.Thanks in advance. I cant able to find out

Microsoft SQL-DMO(ODBC SQLState:HY000)
Error 602: Could not find row in sysindexes for Database ID 10, Object ID 1, Index ID 1. Run DBCC CHECK TABLE on sysindexes
Aug 16 '10 #1
9 6588
NeoPa
32,556 Expert Mod 16PB
It looks as if the file may be corrupt.

Have you tried running "DBCC CHECK TABLE on sysindexes"?
Aug 16 '10 #2
santhanalakshmi
147 100+
Hi,

No....how to run this "DBCC CHECK TABLE on sysindexes"? Tell me
Aug 16 '10 #3
NeoPa
32,556 Expert Mod 16PB
It's hard for me to check the details for you as I'm woring on a 2005 server with access to 2008 Help ([SysIndexes] is 2000 specific and is not supported in later versions you understand), but your own access to Help should give you more helpful information.

My best guess, from what I can see, is that it would need to be something similar to :
Expand|Select|Wrap|Line Numbers
  1. USE Master
  2. GO
  3.  
  4. DBCC CHECKTABLE ("sysindexes")
  5. GO
Aug 16 '10 #4
santhanalakshmi
147 100+
Hi,

I try this command. Its running finely in MS Server 2000 and also in MS Server 2008.Then,Why i can't able to attach my database in SQL Server.
Aug 17 '10 #5
NeoPa
32,556 Expert Mod 16PB
I'm afraid I've exhausted my help here. I wish I knew more, but my SQL Server knowledge is quite thin really.

After you ran the DBCC, what did you see? Another error message? The same one?
Aug 17 '10 #6
santhanalakshmi
147 100+
Hi,

This was my output after running this command

Expand|Select|Wrap|Line Numbers
  1.     USE Master
  2.     GO
  3.     DBCC CHECKTABLE ("sysindexes")
  4.     GO
DBCC results for 'sysindexes'.
There are 105 rows in 4 pages for object 'sysindexes'.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
Aug 17 '10 #7
NeoPa
32,556 Expert Mod 16PB
That's good info, but I was more after what you get when you attempt to attach the database again.
Aug 17 '10 #8
Jerry Winston
145 Expert 100+
Hello, did you ever succeed with attaching the database? If not, I have a few questions to ask so I can give you the proper answer.

What version originally attached to?
What version are you going to?
Have you attached/re-attached the database in the past?
What version of SSMS are you using?


FYI, you can always backup and restore a database to a new server without running the risk of changing/corrupting the database by detaching/copying/ftping/flash drive/network/cd/dvd/attaching the original data files to another server.
Aug 17 '10 #9
santhanalakshmi
147 100+
Hi,
What version originally attached to? SQL SERVER 2000
What version are you going to? SQL SERVER 2000
Have you attached/re-attached the database in the past? No...This is the first time...i am trying out
What version of SSMS are you using? SSMS means SQL SERVER Management Studio.I am using Enterprise Manager.

Thanks for your response.
Aug 18 '10 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: dananrg | last post by:
I've created a small company database where the tables reside in a SQL Server database. I'm using Access 2000 forms for a front end. I've got a System DSN set-up to SQL Server and am using links...
3
by: NWx | last post by:
Hi, I write an ASP,NET application who uses SQL Server (MSDE) as Back-end I'm an experienced developer, but haven't used SQL server before and I need some help. Since I don't have full SQL...
4
by: AlexDP | last post by:
My program has to access an SQL Server DB file that is in the same folder as the executable. i dont want to setup a server. i was able to do this on my own computer, the program would access any...
0
by: spiewak | last post by:
Is this possible to connect do the Database Engine (on sql server 2005 on XP platorm - file *.mdf (not mobile *.sdf)) form win CE 5.0 ? I tried to do this ConnectionStringSQLServerCE = "Data...
0
by: spiewak | last post by:
Is this possible to connect do the Database Engine (on sql server 2005 on XP platorm - file *.mdf (not mobile *.sdf)) from win CE 5.0 ? I tried to do this : ConnectionStringSQLServerCE = "Data...
9
by: TC | last post by:
Like a lot of database developers, I often choose Jet for the back- end. I'm starting to worry about what will happen when Jet is deprecated. Ostensibly, Jet users like me must switch to SQL Server...
4
by: komal99sonu | last post by:
I require the code to open a word file i MS Office 2000 using c# .net.The file is already saved at a predefine path.
4
by: MartinJackson | last post by:
Using SQL Server 2005 Express. I want to create and maintain the SQL database and tables from within a VB6 application. First I need to create an empty database file. This I can't do. Using...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.