leading blanks

  • i think you jsut need to wrap the Tiutle column with the isnull function:

    select RIGHT(' '+CONVERT(VARCHAR,ISNULL(Title,'')),40) AS Title

    from ADDRESS;

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • Hi there, try this:

    SELECT ISNULL(RIGHT(' '+CONVERT(VARCHAR,Title),40) , REPLICATE (' ',40))

    Tell us if that worked for you!

  • thanks a lot guys! Both solutions are working.

    regards,

    Garvin

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

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