Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 3rd, 2007, 10:50 AM
Friend of Wrox
Join Date: Jul 2006
Location: olathe, ks, USA.
Posts: 238
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to rsearing
Default Attaching a DB - can't find desktop

I am trying to attach an aspnetdb.mdf file that is located on my desktop - which is part of a site I am working on. The directory for the site is saved on my desktop (that which I am working on in VS). When I go into Management Studio and then right-click on Databases to attach my aspnetdb.mdf file, it gives me the directory, but when I click on documents & setting/robert searing nothing expands below my username--thus I cannot see my desktop. When I try typing in the path to the file, it provides an error that it doesn't exist or no permission.

I have tried right-clicking on both the desktop folder that the site resides in and the app_data folder and have added web sharing....I'm sure there is something I am not aware of....

I am just trying to attach it so I can add several tables.


Thanks so much!

Reply With Quote
  #2 (permalink)  
Old July 4th, 2007, 09:56 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

The problem is likely due to permissions. "Your" desktop is just that, Yours. Your user is the only one with files access rights to the desktop. SQL server is running under a different security identity so it has no rights to access your desktop. The easiest fix is to move the MDF file to a common location outside of any user profile. Then you shouldn't have a problem.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find Open DB Connections? Ron Howerton ASP.NET 2.0 Professional 6 April 23rd, 2008 12:29 PM
Find open DB Connection again Ron Howerton ASP.NET 2.0 Professional 0 April 23rd, 2008 10:29 AM
Compare Two MS access db file and find missing rec lawsoncobol Reporting Services 0 August 3rd, 2006 04:14 AM
Attaching Tables!!! NitinJoshi General .NET 3 January 21st, 2005 11:50 PM
Attaching a string to an e-mail woodsaj9019 Classic ASP Basics 2 May 19th, 2004 09:40 AM

All times are GMT -4. The time now is 09:06 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.