Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello every one ..i was linking my .net project to my database that is SQL2012.

ERROR:"An error occured while attaching database,.click the hyperlink for message".
Posted
Comments
Karthik_Mahalingam 26-Jan-14 2:40am    
post full error message
phani dhar 26-Jan-14 2:44am    
are u on team viewer ?..so that i can share my screen
phani dhar 26-Jan-14 2:47am    
operating system error 5 5(access is denied.) . (microsoft sql server error 5120)

here is the error(one of the error)
Karthik_Mahalingam 26-Jan-14 3:01am    
share your id
phani dhar 26-Jan-14 3:16am    
780 445 336

Hello,
I guess you are trying to attach a .MDf file in Sql server

pls refer here http://technet.microsoft.com/en-us/library/ms190209.aspx[^]


All the Best:)
 
Share this answer
 
Comments
karthik Udhayakumar 26-Jan-14 5:22am    
Saw the error details!
This is a permission Error.
You haveto give the account of SQL Server full control of C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA
pls refer the following link
http://dba.stackexchange.com/questions/22250/sql-server-create-file-encountered-operating-system-error-5-access-is-denied
phani dhar 27-Jan-14 6:18am    
kartick ..please help with my recent question, that i posted!!!
karthik Udhayakumar 27-Jan-14 6:40am    
what is the question?
phani dhar 27-Jan-14 8:39am    
http://www.codeproject.com/Questions/716122/i-am-unable-to-print-update-the-charts-in-my-mini
 
Share this answer
 
hello karthy..

who reached my problem correctly but that solution is not much helping me.

please suggest

My software discription
OS-windows server 2012
sql-2012
Visual studio-2013

please help me
 
Share this answer
 
@karthik2528

please help me ...if u came across this sort of problem.
 
Share this answer
 
Comments
Karthik_Mahalingam 26-Jan-14 3:00am    
pls dont post you comments in solution area,
pls use Have a Question or Comment? button

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900