1

I have a custom solution (FARM level) which is deploying webpart to my site collection. This webpart has a textbox, which is writing to custom database (Nothing to do with content DB)

Now, while adding data to custom db, connection string is used. This string has UserName and password in web.config file

Question is, if users submit data through textbox from webpart, which account is technically adding data in that customdatabse

  1. Current logged in user OR 2. UserName from connection string?
3
  • 1
    Your db connection will always be in the context of the connection string... You could however get the logged in user and add it as part of your insert or update.
    – Bunzab
    Commented Aug 26, 2015 at 7:29
  • Ok, so logged in user doesnt need any kinda access on Database, if connection string User is doing all the stuff..right?
    – Rohit
    Commented Aug 26, 2015 at 8:42
  • That is correct
    – Bunzab
    Commented Aug 26, 2015 at 10:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.