I was trying to use the Transact-SQL Debugger.
I went to Object Browser, found my stored procedure, right clicked and chosed "Debug".
The "Debug Procedure" window came up. I entered values for all variables and clicked on the Execute button. I didn't see anything happen. I could not add "Watch" to watch any local and global variables (the paness were all empty.)
All of the "step" buttons (step-over, step-into, etc.), "restart", and "stop debugging" buttons were dimmed out.
I did a search on the web. An expert pointed out that the most likely reason was that the SQL Server is running under the local system account. It should be running on a domain account. His instruction was:
1. On the SQL Server machine, right click My Computer, choose Manager.
2. Find Services, and the find the MSSQL Server services. (There is one per instance.)
3. Right-click the service, select Properites and on the second tab is log on.
I followed the instruction and made sure it was NOT running under a local account. But it is still NOT working.
The expert said that I may also have problems if SQL Server is running SP3, but my Query Analyzer is SP2. I don't know what sp? my SQL Server and Query Analyzer are on (How to get that info?). I ran a "Legacy On" anyway but still not works.
I also found on the web that TCP/IP has to be set as default through DCOMCNFG.EXE. I checked it and TCP/IP was one of the default settings.
Can anyone help me? Many thanks.
I went to Object Browser, found my stored procedure, right clicked and chosed "Debug".
The "Debug Procedure" window came up. I entered values for all variables and clicked on the Execute button. I didn't see anything happen. I could not add "Watch" to watch any local and global variables (the paness were all empty.)
All of the "step" buttons (step-over, step-into, etc.), "restart", and "stop debugging" buttons were dimmed out.
I did a search on the web. An expert pointed out that the most likely reason was that the SQL Server is running under the local system account. It should be running on a domain account. His instruction was:
1. On the SQL Server machine, right click My Computer, choose Manager.
2. Find Services, and the find the MSSQL Server services. (There is one per instance.)
3. Right-click the service, select Properites and on the second tab is log on.
I followed the instruction and made sure it was NOT running under a local account. But it is still NOT working.
The expert said that I may also have problems if SQL Server is running SP3, but my Query Analyzer is SP2. I don't know what sp? my SQL Server and Query Analyzer are on (How to get that info?). I ran a "Legacy On" anyway but still not works.
I also found on the web that TCP/IP has to be set as default through DCOMCNFG.EXE. I checked it and TCP/IP was one of the default settings.
Can anyone help me? Many thanks.