I am using ASP.NET pages with a MSSQL back-end server. I've set everything up so that the ASP.NET pages use integrated authentication for the IUSR_machine account, and I've created this account under SQL Enterprise Manager.
Everything works when it comes to the web application reading data from the database. However, writing data doesn't quite work as planned. If I give the IUSR account db_owner permissions on the database, data can be written to the database without problems.
As soon as I remove this permission (all that's left is public, db_datareader, and db_datawriter), I can't write to the database from the web application.
Here is what's weird.. without db_owner, if I remove the db_datareader permission, I get an error immediately when the web application tries to read from the server. Once I grant db_datareader, the error is gone. However, there are NO errors when it comes to trying to write to the database; the web application does not throw an exception, but no data is written to the database. I'm starting to wonder if the default permissions assigned to the db_datawriter permission are messed up?
Anyone have any ideas?
Everything works when it comes to the web application reading data from the database. However, writing data doesn't quite work as planned. If I give the IUSR account db_owner permissions on the database, data can be written to the database without problems.
As soon as I remove this permission (all that's left is public, db_datareader, and db_datawriter), I can't write to the database from the web application.
Here is what's weird.. without db_owner, if I remove the db_datareader permission, I get an error immediately when the web application tries to read from the server. Once I grant db_datareader, the error is gone. However, there are NO errors when it comes to trying to write to the database; the web application does not throw an exception, but no data is written to the database. I'm starting to wonder if the default permissions assigned to the db_datawriter permission are messed up?
Anyone have any ideas?