Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax error converting the varchar value

Status
Not open for further replies.

ikim2000

MIS
May 23, 2002
22
CA
When I execute the statement below, I get an error "Syntax error converting the varchar value 'Air4Wire "

SELECT ID + CompanyName as Company from tblCustomer

The ID column is integer type and CompanyName is char type, and Air4Wire is a company name.



Thanks,
Ik
 
First cast the integer field to a Char or VarChar datatype. i.e. Cast(ID as VarChar(16))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top