Solved

How to activate the T-Sql debugger to used from VB 6.0

Posted on 2002-04-05
4
267 Views
Last Modified: 2008-03-10
Dear Friends,
   I am using SQL as back end and VB as frontend. I have written a stored proc and I need to debug it.I tried to use the Sql debugger but ot vain. I got the message to install some dll and try. I am using win 2k and Sql 7.
Anybody can contribute?
0
Comment
Question by:bhatul
  • 2
4 Comments
 
LVL 6

Expert Comment

by:curtis591
ID: 6921599
Do you have query analyzer?  
0
 

Author Comment

by:bhatul
ID: 6923579
I do have querry Analyser but the problem is parameters are
build at run time. Okay still those parameters can be extracted from VB. Then again how can I step throgh the Procedure. If it is possible through querry analyser please let me know. Thanks
bhatul
0
 
LVL 6

Expert Comment

by:curtis591
ID: 6923784
There is no way that you step through it one step at a time like in Visual Basic.  When I am debugging the procedures I copy the stored procedure into my query analyzer and then I just execute it section be section with some extra select and print statements inside to return results along the way.  It would be neat to have a debugger like that,  I am sure it will come.
0
 

Accepted Solution

by:
ajay_karol earned 100 total points
ID: 6927353
Follow the following steps:

1. Check your DCOM settings using DCOMCNFG

Following setting should be in place
DCOMCNFG

 Application Tab
    SQLLDBREG
      Identity Tab
         The interactive user

 Default Security Tab
    Default Access Permissions
        Edit Default Button
           Everyone (or domain\account and System)

2. Missing or unregistered DLLs

ON THE CLIENT

Make sure following file is present and registered:
c:\program files\microsoft sql server\mssql\80\tools\binn, then register it:
regsvr32 sdiclnt.dll

Make sure following files are present and register them as shown:

c:\program files\common files\microsoft shared\SQL Debugging:
sqldbg.dll
sqldbreg.exe

then, register the files:

regsvr32 sqldbg.dll
sqldbreg /RegServer

ON THE SERVER:

Make sure c:\program files\common files\microsoft shared\SQL Debugging\sqldbg.dll is there and registered

Copy file mssdi98.dll from \x86\other\sdi to where sqlservr.exe resides (e.g. c:\program files\microsoft sql server\mssql\binn)


After that restart the SQL Server Service.




0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question