Forum Replies Created

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

  • RE: Remove leading zeros and add spaces at the end

    Declare @MyStr char(20)

    Set @MyStr = '00004567890'

    Select Convert(bigint,SubString(@MyStr, PatIndex('%[^0]%',@MyStr),Len(@MyStr) + 1 - PatIndex('%[^0]%',@MyStr)))

    What this does is to find the first non-zero character in the field and then substring from there. ...

  • RE: Creating a PDF from a Stored Procedure

    Great procedure but some work could be done to make it clearer what you are doing.  Also, where are the specs for PDF's?  That would be handy.

    Scott.

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