I am trying to return details associated with a certain email address . I am using the query below:

select emailaddress


where emailaddress ='xxx@email.com'

I am getting this error when i run it in Automation Studio:

Query failed during execution. Error: Conversion failed when converting the nvarchar value 'xxx@email.com' to data type int.

I will appreciate any pointers on this


I had mistakenly set the data type of on 'emailaddress' as number. Changing it to email sorted it out.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.