Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 3rd, 2007, 10:50 AM
Friend of Wrox
 
Join Date: Jul 2006
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.

Thoughts?


Thanks so much!
Rob

 
Old July 4th, 2007, 09:56 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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.

-Peter





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





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