How to Enable TSQL Debugging in SQL SERVER ?
Click on the menu Debug >> Start Debugging
An error will be produced "Unable to start T-SQL Debugging. Could not attach to SQL Server Process"
Here is the solution to get rid of this error
Expand the SQL Sever Management Studio
Expand the Security
Right Click on the Logins
Click on New Login
A new window will appear to define the Login
Specify the Login Name.
Specify the Server roles.
Check the sysadmin Server role and then press OK.
Now Debug your Query /SP Debug >> Start Debugging
This can also be done using TSQL.
Here is the Way to do this using TSQL
sp_addsrvrolemember 'Domain\Name', 'sysadmin'
GO
EXEC master..sp_addsrvrolemember @loginame = N'Dmain-Name\Administrator', @rolename = N'sysadmin'
GO
if you are not using any domain, then try your system name.
Thanks this article solved my problem
ReplyDeleteThanks it solved my problem too....
ReplyDeleteWorks flawlessly, thanks for the information!
ReplyDeleteThanks
ReplyDeletetons of thanks
ReplyDeleteYou are really good. Thanks Zafar..
ReplyDeleteGreat... it's work fine..!!
ReplyDeleteawasomee!!!
ReplyDeleteworks great.thanks
ReplyDeleteThanksss
ReplyDeletethanks.. for the article
ReplyDeletethanks. this worked for me too.
ReplyDeleteit doesn't work for server authentication ..
ReplyDeletehi! great article, thanks! have you tried dbforge ide for sql server? who knows hot it debugs?
ReplyDeleteThanks a lot for clear solution.
ReplyDeleteStill getting same error.
ReplyDelete