Smart questions
Smart answers
Smart people
Join Tek-Tips Forums
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

.NET application security accessing database

peac3 (TechnicalUser) (OP)
2 Sep 11 18:58
Hi Guys,

we will have a functionality in .NET web application of scheduling job in SQL Agent Job in MSSQL.

Unfortunately, it is only sysadmin member in MSSQL allowed to do this which is a limitation in microsoft.

Because we don't want to make every page member as a sysadmin for audit and security purposes.

The only thing I can think of is making separate the application login as a sysadmin to access the database and user login, but the problem is we won't be able to define the level access of different user?

How do you guys usually define the web application security accessing database?

Any input will be appreciated :)

 
jmeckley (Programmer)
4 Sep 11 9:02
application user != database user. you can define another connection string that uses the sysadmin account. from this connection you can schedule the job.

in the application secure the commands/pages that use the sysadmin connection to only allow certain users to access the page.

Jason Meckley
Programmer

FAQ855-7190: Database Connection Management
FAQ732-7259: Keeping the UI responsive

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close