Hi,
I'm getting an exception when i try to create database (.sdf) file in network share. Network share has full permission and I'm able to create a text file in that share and save some text data into it.
While creating database, sqlceengine::CreateDatabase() throws the below exception:
"exception - Access to the database file is not allowed. [ File name = ]" . The below connection string is used while creating sql ce engine object.
sqlceEngineObject = new SqlCeEngine("Data Source=" + filePath + ";encryption mode=platform default;Password=" + DBpassword);
Here filepath is full path to the network share.
What should be the problem? I can create/save text data file. But why I couldn't create a database (.sdf) file using sqlceengine::CreateDatabase()?
Thanks