I used Win XP and SQL 2005.
After installing Win 7 and SQL 2008, I had problems with attaching my previous DBs and Creating new DBs.
somebody told me:
On a NTFS partition you should tick the "FILESTREAM" option while installing SQL. So I reinstalled it with the new option.
After instalation I checked if I could attach the DataBases.
The first one was "MyWord" and it attached with no problems. I didn't check the next 2 as I though there would be no problems either.
I wanted to work on my project today and I tried to attach the other DBs but I found it imposible :(
Also the priviously attached database (myWord) has become Read-only. I can attach/detach it but when it is attached I see "(Read-only)" infront of its name in the object Explorer.
The strange part is that I get 2 different errors while trying to attach the next 2 DBs.
Even I can copy and paste both of them to other drives and the "read only" attribute is not checked in the property page, I get these two error messages:
1- for the "verb" DB:
Attach database failed for Server 'CHAKAVEH-PC'. (Microsoft.SqlServer.Smo)
For help, click: go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1539+)&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.ConnectionInfo)
Database 'verb' cannot be upgraded because it is read-only or has read-only files. Make the database or files writeable, and rerun recovery. (Microsoft SQL Server, Error: 3415)
For help, click: go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=3415&LinkId=20476
2- for the "WSD" DB
Attach database failed for Server 'CHAKAVEH-PC'. (Microsoft.SqlServer.Smo)
For help, click: go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1539+)&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.ConnectionInfo)
Unable to open the physical file "C:\DB\WSD.mdf". Operating system error 5: "5(Access is denied.)". (Microsoft SQL Server, Error: 5120)
For help, click: go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=5120&LinkId=20476
Can you please help me?
Arian
PS I can creat new DBs with no problems now