Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, dear community,

I recently have encountered a problem : I want to modify some rows from my database that I have created using the internal tools from C# studio express 2008. Everything went fine, but when I try to run the program, it says that it cannot connect to my .sdf file because the access is denied ( error 5)

Could anybody come up with a solution?

Thank you,
SnuKies
Posted
Updated 13-Jan-15 17:12pm
v2
Comments
CHill60 13-Jan-15 18:08pm    
Where is your sdf file located?
PIEBALDconsult 13-Jan-15 20:33pm    
You'll need to find the file and give yourself access. I always have this problem when I rebuild my system.

1 solution

SDF is not a database it should be MDF or other SQL data file type, it is Visual Studio's Intellisense files: see link

http://stackoverflow.com/questions/7706984/visual-studio-2010-c-project-remove-sdf-file[^]

The most important thing you need is the connection string.
 
Share this answer
 

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