473,796 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

147 New Member
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 6619
NeoPa
32,579 Recognized Expert Moderator MVP
It looks as if the file may be corrupt.

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

No....how to run this "DBCC CHECK TABLE on sysindexes"? Tell me
Aug 16 '10 #3
NeoPa
32,579 Recognized Expert Moderator MVP
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 New Member
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,579 Recognized Expert Moderator MVP
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 New Member
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,579 Recognized Expert Moderator MVP
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 Recognized Expert New Member
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 New Member
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
2139
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 within Access 2000 to get to the SQL Server tables. My forms worked fine until I made a few minor changes to the database schema on SQL Server (e.g. added a foreign key, or added a column). After that, all the links break - I click on a table...
3
2160
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 server (but only MSDE), I don't have Enterprise manager. So I used Access XP (using an ADP file) to create the database on MSDE server (tables, views, stored procs etc)
4
23734
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 sql server db file without it being attached to the server. When i take it to another system it fails to run. All systems have SQL Server Express and SQL Server 2005 installed. Can someone please direct me through the steps to fix this problem? ...
0
1163
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 Source=WORK_STATION\\SQLEXPRESS;Initial Catalog=dbMachines;Integrated Security=False;Password=Panel;User ID=Panel"; SqlCeConnectionCE = new SqlConnection(ConnectionStringSQLServerCE); SqlCeConnectionCE.Open();
0
1351
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 Source=WORK_STATION\\SQLEXPRESS;Initial Catalog=dbMachines;Integrated Security=False;Password=Panel;User ID=Panel"; SqlCeConnectionCE = new SqlConnection(ConnectionStringSQLServerCE); SqlCeConnectionCE.Open();
9
3013
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 (or MSDE / SQL Express), but there's something I just don't understand. Without Jet, how will we create file server database applications? In other words, how will we create multi-user apps which use a file server to share data and don't...
4
3208
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
9230
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 Set mcn = New ADODB.Connection mcn.Open mstrConnectString I have tried various connection strings - mstrConnectString="server=(local)\SQLEXPRESS;" & "integrated security=sspi;database=;"
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9531
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10237
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10187
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10018
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6795
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5446
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5578
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.