Hi Imar,
Thanks for your response. I did see that post and tried it, also that without succes.
This is what I did:
Code:
exec sp_attach_db @dbname = 'DBName',@filename1='C:\Data\SqlServer\ASPNETDB.mdf',@filename2='C:\Data\SqlServer\ASPNETDB.mdf_log.ldf'
this then gave the next error:
Msg 262, Level 14, State 1, Line 1
CREATE DATABASE permission denied in database 'master'.
All my attempts to get access as an administrator to the 'master' folder were denied, even though I ran the program as administrator. In sql management studio, in the security folder, I tried to make a new login account; administrator, that works, but I can't map the administrator to the master folder, permission is denied. The only account that does have the permissions is the sa account, and I can't remember that I ever registered as sa. I found some posts on how to reset the password, but for that you first have to get in via another account, which in my case does not exist.
So I uninstalled sql server 2008 right now I'm downloading sql server 2008 again, and it insisted on me making a password for the sa account.
I can't remember having done that the first time i installed the program.
So hopefully I'll be able to sign in with the sa account that has all the permissions. (and thus also change permissions for the administrator account.)
so let's see
I'll let you know.
best regards and congratulations with your new book, Robin