Debugging sql 2005 stored procedures with Visual Studio 2005

  • I'm trying to debug SQL Server 2005 stored procedures with Visual Studio 2005. According to Microsoft specifications the user of the connection has to be sysadmin. Doing this the debug works correctly, but I want to debug without have administration permissions or without be sysadmin. Is it possible? Have any way to do this?

    Thanks

  • Go into the master database, and give your user execution rights to sp_enable_sql_debug.

  • Thanks for the response, but I tried to do this and It can't work. I obtained the same error message.

  • Also give the user to sys schema , user will need execute permission.

  • Did this ever work? I'm in the same situation now

  • I'm not sure if this works without being sysadmin. You might be able to kludge it, but after all that, why not just give sysadmin? This should only be on dev systems and you can handle issues outside of SQL Server.

  • Your right in what your saying but as always managers are asking that i reduce the number of users with sysadmin access .... thanks for the reponse I've seen a couple other posts on the web about this approach and they all seem to indicate that it doesn't work.

    My argument to microsoft would be a developer needs to debug but the DBA doesn't need them to have all the other rights associated with sysadmin ....

    I think i'll just end up granting Sysadmin rights on demand then removing them once the developer is finished debugging it isn't used that often anyway so....

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply