I'm attempting to attach an mdf file to an instance of SQL Server running on Amazon's RDS service. Using Microsoft SQL Server Management Studio 2016, I follow the following steps:
- After connecting to the amazon instance, I right click on the
Databases
directory and selectAttach
. - Up comes the
Attach Databases
dialogue - I click the Add button to select the local .mdf
- I get the following error message:
Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&LinkId=20476
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
The EXECUTE permission was denied on the object 'xp_fixeddrives', database 'mssqlsystemresource', schema 'sys'. The EXECUTE permission was denied on the object 'xp_fixeddrives', database 'mssqlsystemresource', schema 'sys'. The EXECUTE permission was denied on the object 'xp_fixeddrives', database 'mssqlsystemresource', schema 'sys'. The EXECUTE permission was denied on the object 'xp_fixeddrives', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)
I've seen this error message on several forums but always when trying to modify the database (at this point I believe I'm only bringing up a file browser to locate the mdf). I've also tried running it as admin but no luck. I'm quite new to SQL Server and am much more at home in a Linux environment, so I wouldn't rule out something obvious. Any help would be appreciated.