Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3977690
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:57:12+00:00 2026-05-20T04:57:12+00:00

I can’t find any debug options when debugging an SP in SSMS on SQL

  • 0

I can’t find any debug options when debugging an SP in SSMS on SQL 2008. Is it possible to have it break at the point when an error occurs, so I can examine where exactly the error is thrown and what the values of variables are at that point?

The error I’m trying to debug is:

Msg 8152, Level 16, State 14, Procedure xxx, Line 58
String or binary data would be truncated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T04:57:13+00:00Added an answer on May 20, 2026 at 4:57 am

    If you set a breakpoint early on you can step through until you find the error.

    As a heads-up though, you need to be looking for a case where you’re putting a string into a varchar that’s longer than the varchar allows.

    So, if you have a varcahr(5) and you try and set it to be ‘mylongtext’ you’ll get that error.


    To do this in SSMS, right click on the SP and choose EXECUTE TO > New Window. This will create the execute code for you:

    DECLARE @RC int
    DECLARE @LocationID int
    DECLARE @SiteID int
    
    -- TODO: Set parameter values here.
    
    EXECUTE @RC = [MY-DB].[dbo].[P_SELECT_RetrieveToolTips] 
       @LocationID
      ,@SiteID
    GO
    

    Move cursor to the EXECUTE statement and press F9 to add a breakpoint.

    Then press play (debug). When it stops on the breakpoint, press F11 to step into the SProc and then F10 to step along each line.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone (maybe an XSL-fan?) help me find any advantages with handling presentation of
can any one tell me how can change this java code into objective c.is
Can the Application Name passed to SQL Server (via the ADO Connection string) be
Can we do following in SQL Server 2005 query with convert function. MaxRegID =
Can't get Youtube's homepage, or any other youtube.com prefixed URL to load in an
I have a jquery bug and I've been looking for hours now, I can't
Can someone guide me on a possible solution? I don't want to use /bin/cp
Can't figure out how to do this in a pretty way : I have
Can someone help me understand why Win32 error codes don't match method signatures and
Can I set a maximum fps? Is there any way to limit fps in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.