Quantcast
Channel: SQL Server Compact Forum
Viewing all articles
Browse latest Browse all 193

sqlceengine::createDatabase() throws exception - Access to the database file is not allowed. [ File name = ]

$
0
0

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


Viewing all articles
Browse latest Browse all 193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>