SP Group Number

  • Does anyone know how do I determine the last number used within a set of a group of stored procedures?

    For example, I have created the following Stored procedures:

    mySP;1

    mySp;2

    mySp;3

    mySp;4

    How do I determine that for the mySP procedure, there are 4 stored procedures within it?

    Thanks in advance

    Billy

  • You can use the following statement.

    select max(number) from sysobjects o, syscomments c where o.name = 'mySP' and o.id = c.id

  • thanks!

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply