Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to replace the connection string with that file path
Posted
Comments
sp_suresh 11-Sep-13 0:43am    
pl elaborate me what you want to do? Do you want only path where Sqlite database ?Also you are creating sqlite database in that folder ?If you want path you can get path but if u r creating db then you must have permission for that folder to read/write..

1 solution

If you mean you want to create a file within the application folder (or a folder below that) that it is a very bad idea. Access to Application folders is restricted, and likely to become more so. In addition, it is more likely that a file will be backed up if it is under a "normal" data folder.

Consider using a different folder altogether - this can help: Where should I store my data?[^]

The connection string can then reference that file (preferably via a config file of some sort, depending on how you do your config files)
 
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