Converting int to char

Results 1 to 2 of 2

Thread: Converting int to char

  1. #1
    Join Date
    Dec 1969

    Default Converting int to char

    How can I convert an integer variable to char so that i can concatenate it with another char variable.- In SQL server 7.I tried to use STR but didn't work. Please help.

  2. #2
    Join Date
    Dec 1969

    Default RE: Converting int to char

    In a sproc you can use cast(myVariable as varchar(length))<BR><BR>On a ASP page you can do CStr(myVariable)<BR>

Posting Permissions

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