problems with attaching a DataBase to SQL 2008 in win 7
Hello,
I had Windows XP, Microsoft visual studio.net2005 and SQL Server 2008 installed on my PC.
All of my projects files, folders and data bases have always been on the G drive.
some days ago, I installed Win7(64 bit), Microsoft visual studio.net2008 and SQL Server 2008 on the C drive and I have a big problem now :(
I cant attach any of the data bases to SQL! This is the error I get any time I try to attach a DB:
Code:
Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'G:\AI\dataBase\myWord\myWords.mdf'. (Microsoft SQL Server, Error: 5123)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.3042&EvtSrc=MSSQLServer&EvtID=5123&LinkId=20476
------------------------------
Can you tell me, how I can solve the problem?
Tnx Arian