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
Solved

Stored procedure error

Posted on 2013-11-08
2
229 Views
Last Modified: 2013-11-18
Using MS SQL Server 2008.

When i run my stored procedure i get a "divide by zero error on line 54".

How can i work out which line it is?  Should i physically count the lines in the stored procedure until i come to 54?

Is it as simple as that?

/thanks
0
Comment
Question by:soozh
2 Comments
 
LVL 11

Accepted Solution

by:
Louis01 earned 500 total points
ID: 39632855
Each "GO" restarts the line count.
Hope that helps.
If not, post your code.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 39633037
can we see the code?
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

828 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