IT Community - Software Programming, Web Development and Technical Support

Sql Security

This is a discussion on Sql Security within the Database Support forums, part of the Web Development category; I am learning/running/developing an SQL 2000 Server. I have one employee who is writing the stored procedures and ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Database Support

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-08-2007, 12:43 AM
vadivelanvaidyanathan vadivelanvaidyanathan is offline
D-Web Genius
 
Join Date: Feb 2007
Posts: 803
vadivelanvaidyanathan is on a distinguished road
Unhappy Sql Security

I am learning/running/developing an SQL 2000 Server. I have one employee who is writing the stored procedures and creating all of the tables, ect. He currently has permissions to datareader and datawriter. Our issue is that every time he creates a new stored procedure, he maintains ownership under his account "NAME/Domain Name"(before setting up his system we added 50+ stored procedures under the dbo account). When trying to execute these from any of the other machines in our workplace we get an error message stating that the stored procedure cannot be found. If we then go and manually change the ownership back to the dbo account the SP runs fine. I would like to know either how to stop his account from taking ownership, or to know how to allow our users to execute the stored procedures from both owners. Any suggestions??
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-09-2007, 08:51 AM
Murali Murali is offline
D-Web Master
 
Join Date: Feb 2007
Location: India-Chennai.
Posts: 386
Murali is on a distinguished road
Send a message via AIM to Murali
Default Re: Sql Security

Hi,

Why dont you try to give Execute permission for that stored procedure for your own user.

Try this,
Code:
GRANT EXECUTE ON DBO.<Objectname> TO <User>
GO
Remember onething if any other dependencies for that procedure or tables also has to be given privilege.
__________________
-Murali..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Security in PHP rekhaa PHP Programming 153 09-24-2008 07:56 AM
PHP security jegan PHP Programming 1 08-29-2007 04:52 AM
Security for ASP.net nhoj ASP and ASP.NET Programming 0 04-09-2007 09:19 AM
VB.net Security nhoj VB.NET Programming 1 04-06-2007 01:50 AM
eBay Security nhoj eCommerce 0 04-03-2007 12:00 PM


All times are GMT -7. The time now is 03:40 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0