Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rafnas T PRank #280 · 8.8K reputationPosted Jul 5, 2017, 10:22 PM EDT
Abhilash J ARank #1,243 · 1.4K reputationPosted Jul 5, 2017, 7:38 AM EDT
Jyoti JodhaRank #1,408 · 1.2K reputationPosted Jul 5, 2017, 8:18 PM EDT
Jyoti JodhaRank #1,408 · 1.2K reputationPosted Jul 5, 2017, 8:43 PM EDT
Unable to apply a change while debugging. Source file 'C:\Users\pc\AppData\Local\Temp\.NETFramework,Version=v4.5.AssemblyAttributes.cs' was reloaded. You must restart the debugging session.
Jyoti JodhaRank #1,408 · 1.2K reputationPosted Jul 5, 2017, 10:35 PM EDT
Rafnas T P
Abhilash J ARank #1,243 · 1.4K reputationPosted Jul 5, 2017, 11:11 PM EDT
When you attach a DB, it can't have the same name as an existing file: the reasons for that are obvious.
When you attach a DB, it must be in a folder to which the SQL agent has full access - it does not run under your user id, so it can't access your "private" user files.
When you attach a DB, it has to be located on the same computer as the SQL instance you are attaching to: you cannot specify a path to a different physical computer (as there is no guarantee to SQL that the remote location will be available when it needs it).
So look at your connection string, and work out which of those is relevant.