+ 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

24th Jan 2018, 8:19 PM
Zaid Zakaria
Zaid Zakaria - avatar
6 Answers
+ 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.
9th Feb 2018, 1:23 AM
Natalia
Natalia - avatar
0
INSERT INTO database_table_name(field1,field2...) VALUES(value1,value2...), make sure that you entered a good database name on connection.
25th Jan 2018, 9:42 PM
Dejan FrancuzšŸ„‡
Dejan FrancuzšŸ„‡ - avatar
0
i do that but nothing happend
26th Jan 2018, 5:45 AM
Zaid Zakaria
Zaid Zakaria - avatar
0
can you screenshot your program or just write some lines
26th Jan 2018, 5:47 AM
Dejan FrancuzšŸ„‡
Dejan FrancuzšŸ„‡ - avatar
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
26th Jan 2018, 5:51 AM
Zaid Zakaria
Zaid Zakaria - avatar
0
i thing the error can be in data source and my code data source =(localdb)\v11.0 and try data source=(localdb)\mssqllocaldb
26th Jan 2018, 5:54 AM
Zaid Zakaria
Zaid Zakaria - avatar