[quoted text, click to view] "dgk" <dgk@somewhere.com> wrote in message
news:td92p2dbu27te12i0l2bqe66usnnhubg0h@4ax.com...
> On Fri, 22 Dec 2006 12:35:18 -0800, "RobinS" <RobinS@NoSpam.yah.none>
> wrote:
>
>>Well, the easiest way I have found to do this is to detach it
>>from one SQLServer (right-click on the database in the Management
>>Studio and choose Detach), copy the mdf and ldf files to to wherever
>>you want them, and attach the database (right-click on Databases
>>in the Management Studio and select Attach) in the new SQLServer.
>>
>>I think this will work for you.
>>Good luck.
>>Robin S.
>
>
> No, got this error:
> Could not find row in sysindexes for database ID 14, object ID 1,
> index ID 1. Run DBCC CHECKTABLE on sysindexes.
> Could not open new database 'aspnetdb'. CREATE DATABASE is aborted.
> (Microsoft SQL Server, Error: 602)
>
> I'm guessing that the version of SQL2005 on the server is not the same
> as the one on my machine. I'm having the admin check and update it.
> Documentation on that error indicates that it could be one of 6,721
> different problems.
I did this with several databases that I created with SQLServer2000
and it worked flawlessly (much to my surprise).
I don't understand why it's doing a Create Database. Is it doing that
when you detach it, or when yoy attach it? Because you should just
attach it to the new instance, not create it or do anything like
that. Did it detach successfully? Did you copy both the mdf and the
ldf files over to the new location?
Robin S.