In my Windows Forms c# project I try to connect to an already existing ms sql database file
(added binding Source on the form, then : bindingSource -> properties -> DataSource -> add source - > .... ) but when I pick this file it writes something like
"You dont have rights to open this file. Ask permition from the file owner or network administrator"

So, how should I temper with the file's properties to get the connection work well without warnings?

Thanks beforehand for your possible answers.

I've solved this by myself : right click on the file's properties -> and changed access property to 'common access'.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.