- Make a web service as a middle layer, and call the web service in the tool. Web service would be a proxy to do the actual work. And the web service would use the System Account to do the work.
- Using the Application Role, I think this one is easy. At first you add a Application Role in your database which you want to modify(You need assign a password for this Application Role, and do some modification. You can do it in SQL SERVER Management Studio, and save it as script for repeating work). And then grant the permission to the object you want to insert,select,update,delete. Then you can use it in your code, like C#,VB.NET.
EXEC sp_setapprole 'Application Role Name','Password'
Add this line before you call other command in your .NET code.
No comments:
Post a Comment