views:

46

answers:

2

ok lets assume i have a table now it has only two rows in it and i dont want anyone to add any more rows to it? it can be accessed by c sharp but it should not be openable using SQLite admin or any other db manager , is that possible??

I dont want the user to add another row outside c sharp can this be done????

triggers???

A: 

Did you see these five locking states?

Tommy
yes i did infact but how do i implement it??? does this mean i can add a row using c sharp and not add a row if i open the database using a manager???
Alfred
What manager are you using for Sqlite?
Tommy
i am using sqlite admin
Alfred
+1  A: 

What connector are you using from C#?

If you are using System.Data.SQLite from phxsoftware it supports encryption. You could use that to prevent access to the database.

EDIT: As far a i understand it you will only be able to access it through the System.Data.SQLite connector then.

feihtthief
yea i am using System.Data.SQLite , and i am using encryption . its just that im worried abt the user modifying the encrypted data outside C# and tht way no one can login :( so i thought abt hardcoring the username and paswrd into the application , what do u think??
Alfred