Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2002-04-05
4
Medium Priority
?
274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 300 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
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

722 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