Solved

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

Posted on 2002-04-05
4
262 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
Comment Utility
Do you have query analyzer?  
0
 

Author Comment

by:bhatul
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

762 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now