+ 1
read only sql database in c#
hi i have program in windows application c# with sql server and i can read and write on database but when i make my program setup my database change to read only and i cannot insert any data
6 ответов
+ 1
It may depend on your setup. Database access can be controlled by permissions so I'd check user and login permissions as well as role membership. Read only would suggest permissions are only granted for SELECT
Also for localdb check the file attribute, if it's not set to read only once deployed.
0
INSERT INTO database_table_name(field1,field2...) VALUES(value1,value2...), make sure that you entered a good database name on connection.
0
i do that but nothing happend
0
can you screenshot your program or just write some lines
0
my program in c# well running with no error but when i make it setup my database change to read-only and i use ado to connect my pro with sql
0
i thing the error can be in data source and my code data source =(localdb)\v11.0 and try data source=(localdb)\mssqllocaldb