Advertisement

12.18.2006 at 06:37AM PST, ID: 22096569
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

Unable to Debug Stored Procedure with Visual Studio 2005 and Microsoft SQL Server 2005 (Visual Studio 2005 SQL server 2005 Unable to debug Stored Procedure)

Asked by kevinscheidt in Microsoft Visual Interdev

Tags: , , , ,

I am unable to debug on a stored procedure when running my website in Debug Mode.  

In VS 2005, I have a Solution: GLAdjustments containing the following:
          a SQL database Project: GLAdjustments_SQL   {GLSQL}
          a WebSite Project (c:\inetpub\wwwroot\apps\GLAdjustments) {GLWeb}
          and a Business Layer Project (Windows Class? Library Project) GLAdjustments_Business {GLBiz}


GLSQL only contains scripts used to create tables, procedures, modifications, etc.    GLWeb contains only presentation layer items and objects.  GLBiz contains all business and data layer connections.   I've set debugging on GLBiz to Enable SQL Debugging.

From within GLWeb, i click F5 and start debugging.  I F10/f11 and what not to get to my code (as follows) and break on the first line.  I then step through my procedure in an attempt to enter the stored proc.  Is this possible?  I can right click on the stored procedure from server explorer and "Step into" the script to execute it.  I need, however, to be able to view it while i'm running the website and see what is going on.

Can you recommend a 3rd party solution if this is not possible with visual studio.

thanks.




=========================================================================================================
        Dim sqlConn As New SqlConnection(dbConn_GLAdjustment)  'Conn String established elsewhere, new conn for ease of testing/debugging.
        Dim sqlCmd As New SqlCommand  

        With sqlCmd 'set command options
            .CommandType = Data.CommandType.StoredProcedure
            .CommandText = "GLAdjustments_GetAdjustments"

            .Parameters.Add(New SqlParameter("@Business_Unit", Business_Unit_Selected))

            .Connection = sqlConn
        End With

        Dim da As New SqlDataAdapter()
        da.SelectCommand = sqlCmd
        Dim DS As New xsdAdjustments
        da.TableMappings.Add("Table", DS.Adjustments.TableName.ToString())

        da.Fill(DS)

        Return DS
Start Free Trial
[+][-]01.19.2007 at 11:11PM PST, ID: 18355146

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Interdev
Tags: stored, 2005, debug, studio, visual
Sign Up Now!
Solution Provided By: damey
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.30.2007 at 04:25PM PDT, ID: 19184388

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.15.2007 at 03:46PM PDT, ID: 19296053

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.20.2007 at 06:36PM PDT, ID: 19329868

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42