Why can't I browse deeper into the folder, I still have some folders there: alt text http://img168.imageshack.us/img168/3056/mdf.jpg
In the 'Object Explorer' window, right-click on the 'Databases' folder and select 'Attach...' The 'Attach Databases' window will open; inside that window click 'Add...' and then navigate to your . MDF file and click 'OK'. Click 'OK' once more to finish attaching the database and you are done.
There are mainly two methods to attach SQL MDF file without LDF manually. Attach MDF File Without LDF file by Using SSMS: You can attach your SQL MDF file without LDF by following underlying steps. In Attach Databases Windows, Click on Add button to import MDF file in SQL server.
Expand Databases, right-click the database from which to add the files, and then click Properties. In the Database Properties dialog box, select the Files page. To add a data or transaction log file, click Add.
The mdf and ldf can be set for each Microsoft SQL database, by right-clicking on the database, in Microsoft SQL Server Management Studio and selecting Properties. In the Database Properties Select Files. In this window, the current settings for the mdf and ldf are displayed.
Your SQL Server service account likely does not have access to the folder you're attempting to browse. The ideal solution (from a security perspective) would be to move the file to another, non user-specific location. However, what you're trying to do can be done.
C:\Documents and Settings\user\Desktop
, you'll have to do this on user
and Desktop
).To alter the permissions on a folder or file, right-click and select "Properties", then the "Security" tab. You can add additional permissions by clicking "Add..." and locating the user that you want to explicitly grant (allow) or deny permissions to.
I had a mdf file on my desktop but couldn't access it either due to not being able to browse deeper.
I solved it by going to
start > all programs > Microsoft SQL Server 2008 R2 > Sql Server Configuration Manager
within the Sql configuration manager I went to SQL Server Services and double clicked on the instance running > Log On > change built-in account to 'Local System'. Mine was set to network services but as soon as a changed it to local system I could access my desktop and all my user files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With