Results 1 to 3 of 3

Thread: SQL SERVER Question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2001
    Location
    MD
    Posts
    182

    SQL SERVER Question

    Do anybody know how to give a line feed (or carriage return) in SQL Server query or in Crystal Reports?

    I want something like below

    Select f_name + (carriage return) + l_name from employee

    If it is not possible then how to do in Crystal Report (formula)?

    Thanks for breaking ur heads for me.

  2. #2
    Member
    Join Date
    Sep 2001
    Location
    England
    Posts
    36
    SQLServer Carriage Return = Char(13)
    SQLServer Line Feed = Char(10)

    You really need to combine the both for a complete new line to be recognised in text or rtf format.

    So in your example it would look something like this:

    Select f_name + Char(13) + Char(10) + l_name from employee

    WuzZ

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Dec 2001
    Location
    MD
    Posts
    182

    Thanks it works

    Looks Simple. But didnt come in my mind.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width